Skip to content

Commit 4daaee9

Browse files
committed
Add trailing newlines to files which have no trailing newlines.
1 parent 35681fb commit 4daaee9

23 files changed

+23
-23
lines changed

src/liballoc/tests/cow_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ fn check_cow_clone_from() {
148148
let c2: Cow<str> = Cow::Owned(s);
149149
c1.clone_from(&c2);
150150
assert!(c1.into_owned().capacity() >= 25);
151-
}
151+
}

src/libcore/tests/ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ fn test_range_inclusive() {
6767
r = RangeInclusive { start: 1, end: -1 };
6868
assert_eq!(r.size_hint(), (0, Some(0)));
6969
assert_eq!(r.next(), None);
70-
}
70+
}

src/libserialize/collection_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,4 @@ impl<T: Decodable> Decodable for Arc<[T]> {
241241
Ok(vec.into())
242242
})
243243
}
244-
}
244+
}

src/test/compile-fail/E0004.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ fn main() {
1919
match x { //~ ERROR E0004
2020
Terminator::TalkToMyHand => {}
2121
}
22-
}
22+
}

src/test/compile-fail/duplicate_entry_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ fn panic_fmt() -> ! {
2020
loop {}
2121
}
2222

23-
fn main() {}
23+
fn main() {}

src/test/compile-fail/float-int-invalid-const-cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ fn main() {
5858
{ const X: u32 = 4294967296. as u32; force(X); } //~ ERROR constant evaluation error
5959
{ const X: u128 = 1e40 as u128; force(X); } //~ ERROR constant evaluation error
6060
{ const X: i128 = 1e40 as i128; force(X); } //~ ERROR constant evaluation error
61-
}
61+
}

src/test/compile-fail/issue-28848.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
2020
Foo::<'a, 'b>::xmute(u) //~ ERROR lifetime bound not satisfied
2121
}
2222

23-
fn main() {}
23+
fn main() {}

src/test/compile-fail/useless_comment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ fn foo() {
2727

2828
fn main() {
2929
foo();
30-
}
30+
}

src/test/mir-opt/return_an_array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ fn foo() -> [u8; 1024] {
1515
return x;
1616
}
1717

18-
fn main() { }
18+
fn main() { }

src/test/parse-fail/issue-37113.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ macro_rules! test_macro {
1818

1919
fn main() {
2020
test_macro!(String,);
21-
}
21+
}

0 commit comments

Comments
 (0)