Add trailing newlines to files which have no trailing newlines.

This commit is contained in:
kennytm
2017-12-30 02:25:40 +08:00
parent 35681fbc76
commit 4daaee900f
23 changed files with 23 additions and 23 deletions

View File

@@ -148,4 +148,4 @@ fn check_cow_clone_from() {
let c2: Cow<str> = Cow::Owned(s); let c2: Cow<str> = Cow::Owned(s);
c1.clone_from(&c2); c1.clone_from(&c2);
assert!(c1.into_owned().capacity() >= 25); assert!(c1.into_owned().capacity() >= 25);
} }

View File

@@ -67,4 +67,4 @@ fn test_range_inclusive() {
r = RangeInclusive { start: 1, end: -1 }; r = RangeInclusive { start: 1, end: -1 };
assert_eq!(r.size_hint(), (0, Some(0))); assert_eq!(r.size_hint(), (0, Some(0)));
assert_eq!(r.next(), None); assert_eq!(r.next(), None);
} }

View File

@@ -241,4 +241,4 @@ impl<T: Decodable> Decodable for Arc<[T]> {
Ok(vec.into()) Ok(vec.into())
}) })
} }
} }

View File

@@ -19,4 +19,4 @@ fn main() {
match x { //~ ERROR E0004 match x { //~ ERROR E0004
Terminator::TalkToMyHand => {} Terminator::TalkToMyHand => {}
} }
} }

View File

@@ -20,4 +20,4 @@ fn panic_fmt() -> ! {
loop {} loop {}
} }
fn main() {} fn main() {}

View File

@@ -58,4 +58,4 @@ fn main() {
{ const X: u32 = 4294967296. as u32; force(X); } //~ ERROR constant evaluation error { 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: u128 = 1e40 as u128; force(X); } //~ ERROR constant evaluation error
{ const X: i128 = 1e40 as i128; force(X); } //~ ERROR constant evaluation error { const X: i128 = 1e40 as i128; force(X); } //~ ERROR constant evaluation error
} }

View File

@@ -20,4 +20,4 @@ pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
Foo::<'a, 'b>::xmute(u) //~ ERROR lifetime bound not satisfied Foo::<'a, 'b>::xmute(u) //~ ERROR lifetime bound not satisfied
} }
fn main() {} fn main() {}

View File

@@ -27,4 +27,4 @@ fn foo() {
fn main() { fn main() {
foo(); foo();
} }

View File

@@ -15,4 +15,4 @@ fn foo() -> [u8; 1024] {
return x; return x;
} }
fn main() { } fn main() { }

View File

@@ -18,4 +18,4 @@ macro_rules! test_macro {
fn main() { fn main() {
test_macro!(String,); test_macro!(String,);
} }

View File

@@ -102,4 +102,4 @@ pub fn main() {
} }
#[cfg(not(target_arch = "x86_64"))] #[cfg(not(target_arch = "x86_64"))]
pub fn main() {} pub fn main() {}

View File

@@ -11,4 +11,4 @@
#[repr(u8)] #[repr(u8)]
pub enum E { pub enum E {
B = 1 as u8, B = 1 as u8,
} }

View File

@@ -12,4 +12,4 @@
fn main() { fn main() {
for ref mut _a in std::iter::once(true) {} for ref mut _a in std::iter::once(true) {}
} }

View File

@@ -16,4 +16,4 @@ fn main() {
let a = String::new(); let a = String::new();
a.len() a.len()
}; };
} }

View File

@@ -27,4 +27,4 @@ fn main() {
yield; yield;
} }
}; };
} }

View File

@@ -20,4 +20,4 @@ fn bar<'a>() {
}; };
} }
fn main() {} fn main() {}

View File

@@ -18,4 +18,4 @@ pub trait LineFormatter<'a> {
} }
} }
fn main() {} fn main() {}

View File

@@ -15,4 +15,4 @@ struct Foo;
fn main() { fn main() {
let _ = Foo; let _ = Foo;
} }

View File

@@ -37,4 +37,4 @@ pub static TEST7: bool = true;
#[linkage = "weak_odr"] #[linkage = "weak_odr"]
pub static TEST8: bool = true; pub static TEST8: bool = true;
fn main() {} fn main() {}

View File

@@ -48,4 +48,4 @@ pub struct Handle;
impl Beta for Handle { impl Beta for Handle {
type Event = (); type Event = ();
} }

View File

@@ -44,4 +44,4 @@ pub mod unix_only {
impl ArmOnly for super::Portable { impl ArmOnly for super::Portable {
fn unix_and_arm_only_function() {} fn unix_and_arm_only_function() {}
} }
} }

View File

@@ -17,4 +17,4 @@ enum Bar<'x> { //~ ERROR lifetime name `'x` only used once
Variant(&'x u32) Variant(&'x u32)
} }
fn main() { } fn main() { }

View File

@@ -13,4 +13,4 @@ fn deref<'x>(v: &'x u32) -> u32 { //~ ERROR lifetime name `'x` only used once
*v *v
} }
fn main() {} fn main() {}