Add trailing newlines to files which have no trailing newlines.
This commit is contained in:
parent
35681fbc76
commit
4daaee900f
@ -148,4 +148,4 @@ fn check_cow_clone_from() {
|
||||
let c2: Cow<str> = Cow::Owned(s);
|
||||
c1.clone_from(&c2);
|
||||
assert!(c1.into_owned().capacity() >= 25);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -241,4 +241,4 @@ impl<T: Decodable> Decodable for Arc<[T]> {
|
||||
Ok(vec.into())
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ fn main() {
|
||||
match x { //~ ERROR E0004
|
||||
Terminator::TalkToMyHand => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -20,4 +20,4 @@ fn panic_fmt() -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
fn main() {}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -20,4 +20,4 @@ pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
|
||||
Foo::<'a, 'b>::xmute(u) //~ ERROR lifetime bound not satisfied
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
fn main() {}
|
||||
|
@ -27,4 +27,4 @@ fn foo() {
|
||||
|
||||
fn main() {
|
||||
foo();
|
||||
}
|
||||
}
|
||||
|
@ -15,4 +15,4 @@ fn foo() -> [u8; 1024] {
|
||||
return x;
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
fn main() { }
|
||||
|
@ -18,4 +18,4 @@ macro_rules! test_macro {
|
||||
|
||||
fn main() {
|
||||
test_macro!(String,);
|
||||
}
|
||||
}
|
||||
|
@ -102,4 +102,4 @@ pub fn main() {
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "x86_64"))]
|
||||
pub fn main() {}
|
||||
pub fn main() {}
|
||||
|
@ -11,4 +11,4 @@
|
||||
#[repr(u8)]
|
||||
pub enum E {
|
||||
B = 1 as u8,
|
||||
}
|
||||
}
|
||||
|
@ -12,4 +12,4 @@
|
||||
|
||||
fn main() {
|
||||
for ref mut _a in std::iter::once(true) {}
|
||||
}
|
||||
}
|
||||
|
@ -16,4 +16,4 @@ fn main() {
|
||||
let a = String::new();
|
||||
a.len()
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ fn main() {
|
||||
yield;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -20,4 +20,4 @@ fn bar<'a>() {
|
||||
};
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
fn main() {}
|
||||
|
@ -18,4 +18,4 @@ pub trait LineFormatter<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
fn main() {}
|
||||
|
@ -15,4 +15,4 @@ struct Foo;
|
||||
|
||||
fn main() {
|
||||
let _ = Foo;
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,4 @@ pub static TEST7: bool = true;
|
||||
#[linkage = "weak_odr"]
|
||||
pub static TEST8: bool = true;
|
||||
|
||||
fn main() {}
|
||||
fn main() {}
|
||||
|
@ -48,4 +48,4 @@ pub struct Handle;
|
||||
|
||||
impl Beta for Handle {
|
||||
type Event = ();
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ pub mod unix_only {
|
||||
impl ArmOnly for super::Portable {
|
||||
fn unix_and_arm_only_function() {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,4 +17,4 @@ enum Bar<'x> { //~ ERROR lifetime name `'x` only used once
|
||||
Variant(&'x u32)
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
fn main() { }
|
||||
|
@ -13,4 +13,4 @@ fn deref<'x>(v: &'x u32) -> u32 { //~ ERROR lifetime name `'x` only used once
|
||||
*v
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
fn main() {}
|
||||
|
Loading…
Reference in New Issue
Block a user