Skip to content

Commit 6d59933

Browse files
committed
Auto merge of #60168 - varkor:tidy-leading-newline, r=alexcrichton
Add a tidy check for leading newlines This is fairly uncommon, but it can slip through when refactoring (as evidenced by the files with leading newlines here).
2 parents c21fbfe + 0964955 commit 6d59933

File tree

12 files changed

+14
-16
lines changed

12 files changed

+14
-16
lines changed

src/rustc/rustc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
fn main() {
32
// Pull in jemalloc when enabled.
43
//

src/test/incremental/change_name_of_static_in_fn.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// revisions:rpass1 rpass2 rpass3
32

43
// See issue #57692.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
pub fn foo() {
32
println!("bar");
43
}

src/test/run-make-fulldeps/lto-dylib-dep/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
extern crate a_dylib;
32

43
fn main() {

src/test/run-pass/coherence/auxiliary/re_rebalance_coherence_lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
pub trait Backend{}
1+
pub trait Backend {}
32
pub trait SupportsDefaultKeyword {}
43

54
impl SupportsDefaultKeyword for Postgres {}

src/test/ui/coherence/auxiliary/re_rebalance_coherence_lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
pub trait Backend{}
1+
pub trait Backend {}
32
pub trait SupportsDefaultKeyword {}
43

54
impl SupportsDefaultKeyword for Postgres {}

src/test/ui/e0119/conflict-with-std.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
use std::marker::PhantomData;
32
use std::convert::{TryFrom, AsRef};
43

src/test/ui/e0119/conflict-with-std.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0119]: conflicting implementations of trait `std::convert::AsRef<Q>` for type `std::boxed::Box<Q>`:
2-
--> $DIR/conflict-with-std.rs:6:1
2+
--> $DIR/conflict-with-std.rs:5:1
33
|
44
LL | impl AsRef<Q> for Box<Q> {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | impl AsRef<Q> for Box<Q> {
99
where T: ?Sized;
1010

1111
error[E0119]: conflicting implementations of trait `std::convert::From<S>` for type `S`:
12-
--> $DIR/conflict-with-std.rs:13:1
12+
--> $DIR/conflict-with-std.rs:12:1
1313
|
1414
LL | impl From<S> for S {
1515
| ^^^^^^^^^^^^^^^^^^
@@ -18,7 +18,7 @@ LL | impl From<S> for S {
1818
- impl<T> std::convert::From<T> for T;
1919

2020
error[E0119]: conflicting implementations of trait `std::convert::TryFrom<X>` for type `X`:
21-
--> $DIR/conflict-with-std.rs:20:1
21+
--> $DIR/conflict-with-std.rs:19:1
2222
|
2323
LL | impl TryFrom<X> for X {
2424
| ^^^^^^^^^^^^^^^^^^^^^

src/test/ui/feature-gates/auxiliary/re_rebalance_coherence_lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
pub trait Backend{}
1+
pub trait Backend {}
32
pub trait SupportsDefaultKeyword {}
43

54
impl SupportsDefaultKeyword for Postgres {}

src/test/ui/mod-subitem-as-enum-variant.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
mod Mod {
32
pub struct FakeVariant<T>(pub T);
43
}

0 commit comments

Comments
 (0)