From 4daaee900f449a89eb1217dda3438f0f5085e5e6 Mon Sep 17 00:00:00 2001 From: kennytm Date: Sat, 30 Dec 2017 02:25:40 +0800 Subject: [PATCH] Add trailing newlines to files which have no trailing newlines. --- src/liballoc/tests/cow_str.rs | 2 +- src/libcore/tests/ops.rs | 2 +- src/libserialize/collection_impls.rs | 2 +- src/test/compile-fail/E0004.rs | 2 +- src/test/compile-fail/duplicate_entry_error.rs | 2 +- src/test/compile-fail/float-int-invalid-const-cast.rs | 2 +- src/test/compile-fail/issue-28848.rs | 2 +- src/test/compile-fail/useless_comment.rs | 2 +- src/test/mir-opt/return_an_array.rs | 2 +- src/test/parse-fail/issue-37113.rs | 2 +- src/test/run-pass/abi-sysv64-register-usage.rs | 2 +- src/test/run-pass/auxiliary/issue_42007_s.rs | 2 +- src/test/run-pass/for-loop-mut-ref-element.rs | 2 +- src/test/run-pass/generator/borrow-in-tail-expr.rs | 2 +- src/test/run-pass/generator/match-bindings.rs | 2 +- src/test/run-pass/generator/yield-subtype.rs | 2 +- src/test/run-pass/issue-22066.rs | 2 +- src/test/run-pass/issue-32292.rs | 2 +- src/test/run-pass/issue-33992.rs | 2 +- src/test/run-pass/issue-35376.rs | 2 +- src/test/rustdoc/doc-cfg.rs | 2 +- src/test/ui/in-band-lifetimes/single_use_lifetimes-4.rs | 2 +- src/test/ui/in-band-lifetimes/single_use_lifetimes.rs | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/liballoc/tests/cow_str.rs b/src/liballoc/tests/cow_str.rs index aa87ee84b3e..63939686ab7 100644 --- a/src/liballoc/tests/cow_str.rs +++ b/src/liballoc/tests/cow_str.rs @@ -148,4 +148,4 @@ fn check_cow_clone_from() { let c2: Cow = Cow::Owned(s); c1.clone_from(&c2); assert!(c1.into_owned().capacity() >= 25); -} \ No newline at end of file +} diff --git a/src/libcore/tests/ops.rs b/src/libcore/tests/ops.rs index b81b3878c9d..9d2fa1abff6 100644 --- a/src/libcore/tests/ops.rs +++ b/src/libcore/tests/ops.rs @@ -67,4 +67,4 @@ fn test_range_inclusive() { r = RangeInclusive { start: 1, end: -1 }; assert_eq!(r.size_hint(), (0, Some(0))); assert_eq!(r.next(), None); -} \ No newline at end of file +} diff --git a/src/libserialize/collection_impls.rs b/src/libserialize/collection_impls.rs index de7eebe7bf3..3a05cb7187d 100644 --- a/src/libserialize/collection_impls.rs +++ b/src/libserialize/collection_impls.rs @@ -241,4 +241,4 @@ impl Decodable for Arc<[T]> { Ok(vec.into()) }) } -} \ No newline at end of file +} diff --git a/src/test/compile-fail/E0004.rs b/src/test/compile-fail/E0004.rs index 79e53c7a29f..8df07a0c1c5 100644 --- a/src/test/compile-fail/E0004.rs +++ b/src/test/compile-fail/E0004.rs @@ -19,4 +19,4 @@ fn main() { match x { //~ ERROR E0004 Terminator::TalkToMyHand => {} } -} \ No newline at end of file +} diff --git a/src/test/compile-fail/duplicate_entry_error.rs b/src/test/compile-fail/duplicate_entry_error.rs index ad5ea291599..485519e8c3d 100644 --- a/src/test/compile-fail/duplicate_entry_error.rs +++ b/src/test/compile-fail/duplicate_entry_error.rs @@ -20,4 +20,4 @@ fn panic_fmt() -> ! { loop {} } -fn main() {} \ No newline at end of file +fn main() {} diff --git a/src/test/compile-fail/float-int-invalid-const-cast.rs b/src/test/compile-fail/float-int-invalid-const-cast.rs index 2efefd92691..1f07422e21b 100644 --- a/src/test/compile-fail/float-int-invalid-const-cast.rs +++ b/src/test/compile-fail/float-int-invalid-const-cast.rs @@ -58,4 +58,4 @@ fn main() { { const X: u32 = 4294967296. as u32; force(X); } //~ ERROR constant evaluation error { const X: u128 = 1e40 as u128; force(X); } //~ ERROR constant evaluation error { const X: i128 = 1e40 as i128; force(X); } //~ ERROR constant evaluation error -} \ No newline at end of file +} diff --git a/src/test/compile-fail/issue-28848.rs b/src/test/compile-fail/issue-28848.rs index 3d23ce0ee4e..1a06d59f0b1 100644 --- a/src/test/compile-fail/issue-28848.rs +++ b/src/test/compile-fail/issue-28848.rs @@ -20,4 +20,4 @@ pub fn foo<'a, 'b>(u: &'b ()) -> &'a () { Foo::<'a, 'b>::xmute(u) //~ ERROR lifetime bound not satisfied } -fn main() {} \ No newline at end of file +fn main() {} diff --git a/src/test/compile-fail/useless_comment.rs b/src/test/compile-fail/useless_comment.rs index a1172bb214d..90eb66728fc 100644 --- a/src/test/compile-fail/useless_comment.rs +++ b/src/test/compile-fail/useless_comment.rs @@ -27,4 +27,4 @@ fn foo() { fn main() { foo(); -} \ No newline at end of file +} diff --git a/src/test/mir-opt/return_an_array.rs b/src/test/mir-opt/return_an_array.rs index 4409f16b3f5..bfae5b94389 100644 --- a/src/test/mir-opt/return_an_array.rs +++ b/src/test/mir-opt/return_an_array.rs @@ -15,4 +15,4 @@ fn foo() -> [u8; 1024] { return x; } -fn main() { } \ No newline at end of file +fn main() { } diff --git a/src/test/parse-fail/issue-37113.rs b/src/test/parse-fail/issue-37113.rs index caf451099d7..14c6f3944bb 100644 --- a/src/test/parse-fail/issue-37113.rs +++ b/src/test/parse-fail/issue-37113.rs @@ -18,4 +18,4 @@ macro_rules! test_macro { fn main() { test_macro!(String,); -} \ No newline at end of file +} diff --git a/src/test/run-pass/abi-sysv64-register-usage.rs b/src/test/run-pass/abi-sysv64-register-usage.rs index 1cae8671266..e7013291275 100644 --- a/src/test/run-pass/abi-sysv64-register-usage.rs +++ b/src/test/run-pass/abi-sysv64-register-usage.rs @@ -102,4 +102,4 @@ pub fn main() { } #[cfg(not(target_arch = "x86_64"))] -pub fn main() {} \ No newline at end of file +pub fn main() {} diff --git a/src/test/run-pass/auxiliary/issue_42007_s.rs b/src/test/run-pass/auxiliary/issue_42007_s.rs index b965e916f98..91ad9869ed8 100644 --- a/src/test/run-pass/auxiliary/issue_42007_s.rs +++ b/src/test/run-pass/auxiliary/issue_42007_s.rs @@ -11,4 +11,4 @@ #[repr(u8)] pub enum E { B = 1 as u8, -} \ No newline at end of file +} diff --git a/src/test/run-pass/for-loop-mut-ref-element.rs b/src/test/run-pass/for-loop-mut-ref-element.rs index 14ce23b0724..556c846b0b8 100644 --- a/src/test/run-pass/for-loop-mut-ref-element.rs +++ b/src/test/run-pass/for-loop-mut-ref-element.rs @@ -12,4 +12,4 @@ fn main() { for ref mut _a in std::iter::once(true) {} -} \ No newline at end of file +} diff --git a/src/test/run-pass/generator/borrow-in-tail-expr.rs b/src/test/run-pass/generator/borrow-in-tail-expr.rs index df1a1dcebe6..486fe3c900d 100644 --- a/src/test/run-pass/generator/borrow-in-tail-expr.rs +++ b/src/test/run-pass/generator/borrow-in-tail-expr.rs @@ -16,4 +16,4 @@ fn main() { let a = String::new(); a.len() }; -} \ No newline at end of file +} diff --git a/src/test/run-pass/generator/match-bindings.rs b/src/test/run-pass/generator/match-bindings.rs index 9c6b0571e58..231aa1b42f0 100644 --- a/src/test/run-pass/generator/match-bindings.rs +++ b/src/test/run-pass/generator/match-bindings.rs @@ -27,4 +27,4 @@ fn main() { yield; } }; -} \ No newline at end of file +} diff --git a/src/test/run-pass/generator/yield-subtype.rs b/src/test/run-pass/generator/yield-subtype.rs index 5ff070f311e..5ea4b1fe93c 100644 --- a/src/test/run-pass/generator/yield-subtype.rs +++ b/src/test/run-pass/generator/yield-subtype.rs @@ -20,4 +20,4 @@ fn bar<'a>() { }; } -fn main() {} \ No newline at end of file +fn main() {} diff --git a/src/test/run-pass/issue-22066.rs b/src/test/run-pass/issue-22066.rs index 2817ef77108..c2486f0dcb4 100644 --- a/src/test/run-pass/issue-22066.rs +++ b/src/test/run-pass/issue-22066.rs @@ -18,4 +18,4 @@ pub trait LineFormatter<'a> { } } -fn main() {} \ No newline at end of file +fn main() {} diff --git a/src/test/run-pass/issue-32292.rs b/src/test/run-pass/issue-32292.rs index 3995caa32bf..ed319b1391d 100644 --- a/src/test/run-pass/issue-32292.rs +++ b/src/test/run-pass/issue-32292.rs @@ -15,4 +15,4 @@ struct Foo; fn main() { let _ = Foo; -} \ No newline at end of file +} diff --git a/src/test/run-pass/issue-33992.rs b/src/test/run-pass/issue-33992.rs index 5729469f697..98da7d46b1a 100644 --- a/src/test/run-pass/issue-33992.rs +++ b/src/test/run-pass/issue-33992.rs @@ -37,4 +37,4 @@ pub static TEST7: bool = true; #[linkage = "weak_odr"] pub static TEST8: bool = true; -fn main() {} \ No newline at end of file +fn main() {} diff --git a/src/test/run-pass/issue-35376.rs b/src/test/run-pass/issue-35376.rs index 25895cd0753..9e4eb84edc6 100644 --- a/src/test/run-pass/issue-35376.rs +++ b/src/test/run-pass/issue-35376.rs @@ -48,4 +48,4 @@ pub struct Handle; impl Beta for Handle { type Event = (); -} \ No newline at end of file +} diff --git a/src/test/rustdoc/doc-cfg.rs b/src/test/rustdoc/doc-cfg.rs index cfb37912fe7..8499e5c741e 100644 --- a/src/test/rustdoc/doc-cfg.rs +++ b/src/test/rustdoc/doc-cfg.rs @@ -44,4 +44,4 @@ pub mod unix_only { impl ArmOnly for super::Portable { fn unix_and_arm_only_function() {} } -} \ No newline at end of file +} diff --git a/src/test/ui/in-band-lifetimes/single_use_lifetimes-4.rs b/src/test/ui/in-band-lifetimes/single_use_lifetimes-4.rs index ead987a09ab..4ac8f8c0d4e 100644 --- a/src/test/ui/in-band-lifetimes/single_use_lifetimes-4.rs +++ b/src/test/ui/in-band-lifetimes/single_use_lifetimes-4.rs @@ -17,4 +17,4 @@ enum Bar<'x> { //~ ERROR lifetime name `'x` only used once Variant(&'x u32) } -fn main() { } \ No newline at end of file +fn main() { } diff --git a/src/test/ui/in-band-lifetimes/single_use_lifetimes.rs b/src/test/ui/in-band-lifetimes/single_use_lifetimes.rs index 96aaf8923f1..a97056b6240 100644 --- a/src/test/ui/in-band-lifetimes/single_use_lifetimes.rs +++ b/src/test/ui/in-band-lifetimes/single_use_lifetimes.rs @@ -13,4 +13,4 @@ fn deref<'x>(v: &'x u32) -> u32 { //~ ERROR lifetime name `'x` only used once *v } -fn main() {} \ No newline at end of file +fn main() {}