1
Fork 0

Remove double trailing newlines

This commit is contained in:
varkor 2019-04-22 16:55:33 +01:00
parent c21fbfe7e3
commit 7f0f0e31ec
232 changed files with 2 additions and 240 deletions

View file

@ -26,4 +26,3 @@ abi="$(echo "${details}" | awk '{print($2)}')"
echo no | avdmanager create avd \ echo no | avdmanager create avd \
-n "$abi-$api" \ -n "$abi-$api" \
-k "system-images;android-$api;default;$abi" -k "system-images;android-$api;default;$abi"

View file

@ -71,4 +71,3 @@ cmake ../libunwind-release_$LLVM \
hide_output make -j$(nproc) hide_output make -j$(nproc)
cp lib/libunwind.a $OUTPUT/$TARGET/lib cp lib/libunwind.a $OUTPUT/$TARGET/lib
cd - && rm -rf libunwind-build cd - && rm -rf libunwind-build

View file

@ -573,4 +573,3 @@ impl str {
pub unsafe fn from_boxed_utf8_unchecked(v: Box<[u8]>) -> Box<str> { pub unsafe fn from_boxed_utf8_unchecked(v: Box<[u8]>) -> Box<str> {
Box::from_raw(Box::into_raw(v) as *mut str) Box::from_raw(Box::into_raw(v) as *mut str)
} }

View file

@ -258,4 +258,3 @@ impl<A, B> FusedIterator for Chain<A, B>
unsafe impl<A, B> TrustedLen for Chain<A, B> unsafe impl<A, B> TrustedLen for Chain<A, B>
where A: TrustedLen, B: TrustedLen<Item=A::Item>, where A: TrustedLen, B: TrustedLen<Item=A::Item>,
{} {}

View file

@ -140,4 +140,3 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for &mut I {
(**self).is_empty() (**self).is_empty()
} }
} }

View file

@ -86,4 +86,3 @@ pub fn decode<T: DecodableFloat>(v: T) -> (/*negative?*/ bool, FullDecoded) {
}; };
(sign < 0, decoded) (sign < 0, decoded)
} }

View file

@ -100,4 +100,3 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*const U> for *const T {}
// *mut T -> *mut U // *mut T -> *mut U
#[unstable(feature = "dispatch_from_dyn", issue = "0")] #[unstable(feature = "dispatch_from_dyn", issue = "0")]
impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*mut U> for *mut T {} impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*mut U> for *mut T {}

View file

@ -236,4 +236,3 @@ fn test_fmt() {
assert_eq!(format!("{:?}", Big::from_u64(0x12345)), "0x1_23_45"); assert_eq!(format!("{:?}", Big::from_u64(0x12345)), "0x1_23_45");
assert_eq!(format!("{:?}", Big::from_u64(0x123456)), "0x12_34_56"); assert_eq!(format!("{:?}", Big::from_u64(0x123456)), "0x12_34_56");
} }

View file

@ -47,4 +47,3 @@ fn test_estimate_scaling_factor() {
assert_almost_eq!(estimate_scaling_factor(1, i as i16), expected as i16); assert_almost_eq!(estimate_scaling_factor(1, i as i16), expected as i16);
} }
} }

View file

@ -1107,4 +1107,3 @@ pub fn to_exact_fixed_str_test<F>(mut f_: F)
format!("0.0000000000000000000099999999999999994515327145420957165172950370\ format!("0.0000000000000000000099999999999999994515327145420957165172950370\
2787392447107715776066783064379706047475337982177734375{:0>79881}", "")); 2787392447107715776066783064379706047475337982177734375{:0>79881}", ""));
} }

View file

@ -152,4 +152,3 @@ fn exact_f64_random_equivalence_test() {
|d, buf| fallback(d, buf, i16::MIN), k, 1_000); |d, buf| fallback(d, buf, i16::MIN), k, 1_000);
} }
} }

View file

@ -62,4 +62,3 @@ fn test_to_exact_exp_str() {
fn test_to_exact_fixed_str() { fn test_to_exact_fixed_str() {
to_exact_fixed_str_test(format_exact); to_exact_fixed_str_test(format_exact);
} }

View file

@ -64,4 +64,3 @@ fn test_to_exact_exp_str() {
fn test_to_exact_fixed_str() { fn test_to_exact_fixed_str() {
to_exact_fixed_str_test(format_exact); to_exact_fixed_str_test(format_exact);
} }

View file

@ -435,4 +435,3 @@ pub fn hash_stable_trait_impls<'a, 'gcx, W>(
} }
} }
} }

View file

@ -435,4 +435,3 @@ impl<'hir> HashStable<StableHashingContext<'hir>> for attr::OptimizeAttr {
mem::discriminant(self).hash_stable(hcx, hasher); mem::discriminant(self).hash_stable(hcx, hasher);
} }
} }

View file

@ -109,4 +109,3 @@ impl<'a, 'gcx, 'tcx> NiceRegionError<'a, 'gcx, 'tcx> {
None None
} }
} }

View file

@ -444,4 +444,3 @@ impl ut::UnifyKey for ty::TyVid {
fn from_index(i: u32) -> ty::TyVid { ty::TyVid { index: i } } fn from_index(i: u32) -> ty::TyVid { ty::TyVid { index: i } }
fn tag() -> &'static str { "TyVid" } fn tag() -> &'static str { "TyVid" }
} }

View file

@ -509,4 +509,3 @@ macro_rules! EnumTypeFoldableImpl {
) )
}; };
} }

View file

@ -104,4 +104,3 @@ impl<'a, 'gcx, 'tcx> RegionRelations<'a, 'gcx, 'tcx> {
self.free_regions.lub_free_regions(self.tcx, r_a, r_b) self.free_regions.lub_free_regions(self.tcx, r_a, r_b)
} }
} }

View file

@ -71,4 +71,3 @@ impl SearchPath {
SearchPath { kind, dir, files } SearchPath { kind, dir, files }
} }
} }

View file

@ -118,4 +118,3 @@ impl<'a, 'gcx, 'tcx> DefIdForest {
ret ret
} }
} }

View file

@ -203,4 +203,3 @@ impl<'a, 'gcx, 'tcx> TyS<'tcx> {
} }
} }
} }

View file

@ -145,4 +145,3 @@ pub(super) fn emit_va_arg(
} }
} }
} }

View file

@ -502,4 +502,3 @@ impl<'cg, 'cx, 'tcx, 'gcx> InvalidationGenerator<'cx, 'tcx, 'gcx> {
} }
} }
} }

View file

@ -92,4 +92,3 @@ impl<'tcx> RegionInferenceContext<'tcx> {
Ok(()) Ok(())
} }
} }

View file

@ -116,4 +116,3 @@ impl MetadataExt for Metadata {
self.as_inner().as_inner().st_blocks as u64 self.as_inner().as_inner().st_blocks as u64
} }
} }

View file

@ -217,4 +217,3 @@ mod arch {
__unused: [c_long; 3], __unused: [c_long; 3],
} }
} }

View file

@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
self.as_inner().as_inner().st_flags as u32 self.as_inner().as_inner().st_flags as u32
} }
} }

View file

@ -131,4 +131,3 @@ impl MetadataExt for Metadata {
self.as_inner().as_inner().st_lspare as u32 self.as_inner().as_inner().st_lspare as u32
} }
} }

View file

@ -141,4 +141,3 @@ impl MetadataExt for Metadata {
self.as_inner().as_inner().st_lspare as u32 self.as_inner().as_inner().st_lspare as u32
} }
} }

View file

@ -141,4 +141,3 @@ impl MetadataExt for Metadata {
self.as_inner().as_inner().st_lspare as u32 self.as_inner().as_inner().st_lspare as u32
} }
} }

View file

@ -147,4 +147,3 @@ impl MetadataExt for Metadata {
[qspare[0] as u64, qspare[1] as u64] [qspare[0] as u64, qspare[1] as u64]
} }
} }

View file

@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
self.as_inner().as_inner().st_flags as u32 self.as_inner().as_inner().st_flags as u32
} }
} }

View file

@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
self.as_inner().as_inner().st_flags as u32 self.as_inner().as_inner().st_flags as u32
} }
} }

View file

@ -241,4 +241,3 @@ fn output_fileline(w: &mut dyn Write,
w.write_all(b"\n") w.write_all(b"\n")
} }

View file

@ -1162,4 +1162,3 @@ error: foo
"#); "#);
} }

View file

@ -24,4 +24,3 @@ pub unsafe extern "ptx-kernel" fn top_kernel(a: *const u32, b: *mut u32) {
// Verify that no extra function definitions are here. // Verify that no extra function definitions are here.
// CHECK-NOT: .func // CHECK-NOT: .func
// CHECK-NOT: .entry // CHECK-NOT: .entry

View file

@ -24,4 +24,3 @@ pub fn exported_but_not_generic(x: i32) -> i64 {
fn not_exported_and_not_generic(x: u32) -> u64 { fn not_exported_and_not_generic(x: u32) -> u64 {
x as u64 x as u64
} }

View file

@ -24,4 +24,3 @@ pub fn exported_but_not_generic(x: i32) -> i64 {
fn not_exported_and_not_generic(x: u32) -> u64 { fn not_exported_and_not_generic(x: u32) -> u64 {
x as u64 x as u64
} }

View file

@ -28,4 +28,3 @@ pub fn check_unlikely(x: i32, y: i32) -> Option<i32> {
} }
} }
} }

View file

@ -14,4 +14,3 @@ pub fn foo() {
// CHECK: @bar() unnamed_addr #0 // CHECK: @bar() unnamed_addr #0
// CHECK: attributes #0 = { {{.*}}nounwind{{.*}} } // CHECK: attributes #0 = { {{.*}}nounwind{{.*}} }
} }

View file

@ -152,4 +152,3 @@ pub fn pkd2_nested_pair(pair1: &mut Packed2NestedPair, pair2: &mut Packed2Nested
// CHECK: call void @llvm.memcpy.{{.*}}(i8* align 2 %{{.*}}, i8* align 2 %{{.*}}, i{{[0-9]+}} 8, i1 false) // CHECK: call void @llvm.memcpy.{{.*}}(i8* align 2 %{{.*}}, i8* align 2 %{{.*}}, i{{[0-9]+}} 8, i1 false)
*pair2 = *pair1; *pair2 = *pair1;
} }

View file

@ -73,4 +73,3 @@ pub union UnionBool { b:bool }
#[no_mangle] #[no_mangle]
pub fn test_UnionBool(b: UnionBool) -> bool { unsafe { b.b } } pub fn test_UnionBool(b: UnionBool) -> bool { unsafe { b.b } }
// CHECK: %0 = trunc i8 %b to i1 // CHECK: %0 = trunc i8 %b to i1

View file

@ -25,4 +25,3 @@ fn main() {
} }
fn zzz() {()} fn zzz() {()}

View file

@ -156,4 +156,3 @@ fn diverge() -> ! {
} }
fn some_predicate() -> bool { true || false } fn some_predicate() -> bool { true || false }

View file

@ -1,4 +1,3 @@
#![crate_type="rlib"] #![crate_type="rlib"]
pub static A : u32 = 32; pub static A : u32 = 32;

View file

@ -1,4 +1,3 @@
#![crate_type="rlib"] #![crate_type="rlib"]
pub static B: u32 = 32; pub static B: u32 = 32;

View file

@ -61,4 +61,3 @@ pub fn body_exported_to_metadata_because_of_generic() -> u32 {
pub fn body_exported_to_metadata_because_of_generic() -> u32 { pub fn body_exported_to_metadata_because_of_generic() -> u32 {
2 2
} }

View file

@ -25,4 +25,3 @@ fn main() {
let x: Arc<FooX> = Arc::new(FooX { x: 22 }); let x: Arc<FooX> = Arc::new(FooX { x: 22 });
let y: Arc<FooX> = x; let y: Arc<FooX> = x;
} }

View file

@ -21,4 +21,3 @@ pub mod x {
#[cfg(cfail1)] #[cfg(cfail1)]
pub fn bar() { } // remove this unrelated fn in cfail2, which should not affect `x::method` pub fn bar() { } // remove this unrelated fn in cfail2, which should not affect `x::method`

View file

@ -1,4 +1,3 @@
#![crate_type="rlib"] #![crate_type="rlib"]
pub type X = u32; pub type X = u32;

View file

@ -21,4 +21,3 @@ fn main() {
b: 3, b: 3,
}; };
} }

View file

@ -12,4 +12,3 @@ fn foo(x: !) -> ! {
fn main() { fn main() {
foo(panic!("wowzers!")) foo(panic!("wowzers!"))
} }

View file

@ -8,4 +8,3 @@ fn main() {
let x: ! = panic!(); let x: ! = panic!();
let y: u32 = x as u32; let y: u32 = x as u32;
} }

View file

@ -21,4 +21,3 @@ impl Foo for Blah {
fn main() { fn main() {
Blah.smeg(); Blah.smeg();
} }

View file

@ -15,4 +15,3 @@ impl PartialEq<!> for Wub {
fn main() { fn main() {
let _ = Wub == panic!("oh no!"); let _ = Wub == panic!("oh no!");
} }

View file

@ -3,4 +3,3 @@ trait Foo { }
trait Bar { } trait Bar { }
impl<'a> Foo for Bar + 'a { } impl<'a> Foo for Bar + 'a { }

View file

@ -3,4 +3,3 @@ extern void a(void);
void b(void) { void b(void) {
a(); a();
} }

View file

@ -19,4 +19,3 @@ fn c() {
fn d() { fn d() {
assert!(false); assert!(false);
} }

View file

@ -10,4 +10,3 @@ extern {
pub fn foo2() -> i32 { pub fn foo2() -> i32 {
unsafe { foo() } unsafe { foo() }
} }

View file

@ -5,4 +5,3 @@ int main() {
overflow(); overflow();
return 0; return 0;
} }

View file

@ -15,4 +15,3 @@ pub fn trait_impl_test_function() {
use stable_symbol_names1::*; use stable_symbol_names1::*;
Bar::generic_method::<Bar>(); Bar::generic_method::<Bar>();
} }

View file

@ -1,4 +1,3 @@
#![windows_subsystem = "console"] #![windows_subsystem = "console"]
fn main() {} fn main() {}

View file

@ -6,4 +6,3 @@
pub fn main() { pub fn main() {
unsafe { asm!(concat!("", "")) }; unsafe { asm!(concat!("", "")) };
} }

View file

@ -56,4 +56,3 @@ fn main() {
bar(&[]); bar(&[]);
} }

View file

@ -11,4 +11,3 @@ fn main() {
assert_eq!(CELL.get(), v); assert_eq!(CELL.get(), v);
} }

View file

@ -27,4 +27,3 @@ pub struct Empty;
#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord, #[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord,
Debug, Copy)] Debug, Copy)]
pub struct AlsoEmpty {} pub struct AlsoEmpty {}

View file

@ -10,4 +10,3 @@ fn main() {
assert!(Bar::Qux < Bar::Quux(42)); assert!(Bar::Qux < Bar::Quux(42));
} }

View file

@ -13,4 +13,3 @@ pub fn main() {
let _ = mem::discriminant(&10); let _ = mem::discriminant(&10);
let _ = mem::discriminant(&"test"); let _ = mem::discriminant(&"test");
} }

View file

@ -4,4 +4,3 @@
fn main() { fn main() {
println!("hello!"); println!("hello!");
} }

View file

@ -23,4 +23,3 @@ fn main() {
println!("! is {}", <!>::stringify_type()); println!("! is {}", <!>::stringify_type());
println!("None is {}", maybe_stringify(None::<!>)); println!("None is {}", maybe_stringify(None::<!>));
} }

View file

@ -7,4 +7,3 @@ fn main() {
assert!(match 'x' { 'a' ... 'z' => true, _ => false }); assert!(match 'x' { 'a' ... 'z' => true, _ => false });
assert!(match 'x' { 'a' ..= 'z' => true, _ => false }); assert!(match 'x' { 'a' ..= 'z' => true, _ => false });
} }

View file

@ -22,4 +22,3 @@ fn main() {
k, v, output); k, v, output);
} }
} }

View file

@ -8,4 +8,3 @@ pub const C5: &'static usize = &C4;
pub static S1: usize = 3; pub static S1: usize = 3;
pub static S2: atomic::AtomicUsize = atomic::AtomicUsize::new(0); pub static S2: atomic::AtomicUsize = atomic::AtomicUsize::new(0);

View file

@ -8,4 +8,3 @@ fn main() {assert_eq!(b"", b"\
assert_eq!(b"\n", b" assert_eq!(b"\n", b"
"); ");
} }

View file

@ -54,4 +54,3 @@ impl GitConnect {
Ok(out) Ok(out)
} }
} }

View file

@ -12,4 +12,3 @@ fn main() {
let t = test as fn (i32); let t = test as fn (i32);
t(0i32); t(0i32);
} }

View file

@ -30,4 +30,3 @@ fn main() {
}).join().unwrap(); }).join().unwrap();
} }
} }

View file

@ -8,4 +8,3 @@
mod issue_24687_mbcs_in_comments; mod issue_24687_mbcs_in_comments;
pub use issue_24687_mbcs_in_comments::D; pub use issue_24687_mbcs_in_comments::D;

View file

@ -2,4 +2,3 @@
use super::*; use super::*;
pub struct S; pub struct S;

View file

@ -4,4 +4,3 @@ use super::*;
use super::B::S; use super::B::S;
pub struct T { i: i32 } pub struct T { i: i32 }

View file

@ -3,4 +3,3 @@ pub mod B;
pub mod C; pub mod C;
pub use self::C::T; pub use self::C::T;

View file

@ -2,4 +2,3 @@
mod A; mod A;
use self::A::*; use self::A::*;

View file

@ -23,4 +23,3 @@ mod A {
use A::*; use A::*;
fn main() {} fn main() {}

View file

@ -19,4 +19,3 @@ fn main() {
let x = MyRc { _ptr: &iter, _boo: PhantomData }; let x = MyRc { _ptr: &iter, _boo: PhantomData };
let _y: MyRc<Iterator<Item=&u32>> = x; let _y: MyRc<Iterator<Item=&u32>> = x;
} }

View file

@ -18,4 +18,3 @@ fn main() {
foo.data[0].1.set(Some(&foo.data[1])); foo.data[0].1.set(Some(&foo.data[1]));
foo.data[1].1.set(Some(&foo.data[0])); foo.data[1].1.set(Some(&foo.data[0]));
} }

View file

@ -27,4 +27,3 @@ fn main() {
foo.data[0].1.set(Some(&foo.data[1])); foo.data[0].1.set(Some(&foo.data[1]));
foo.data[1].1.set(Some(&foo.data[0])); foo.data[1].1.set(Some(&foo.data[0]));
} }

View file

@ -8,4 +8,3 @@ fn main() {
() => Some(0), () => Some(0),
} {} } {}
} }

View file

@ -17,4 +17,3 @@ fn main() {
_ => {} _ => {}
} }
} }

View file

@ -3,4 +3,3 @@
fn main() { fn main() {
println!("{}", { macro_rules! x { ($(t:tt)*) => {} } 33 }); println!("{}", { macro_rules! x { ($(t:tt)*) => {} } 33 });
} }

View file

@ -8,4 +8,3 @@ struct builder;
fn main() { fn main() {
} }

View file

@ -10,4 +10,3 @@ extern crate link_cfg_works_transitive_dylib;
extern {} extern {}
fn main() {} fn main() {}

View file

@ -5,4 +5,3 @@
use std::option; use std::option;
fn main() {} fn main() {}

View file

@ -275,4 +275,3 @@ fn main() {
test_24189(); test_24189();
test_51477(); test_51477();
} }

View file

@ -181,4 +181,3 @@ macro_rules! follow_meta {
} }
fn main() {} fn main() {}

View file

@ -20,4 +20,3 @@ fn main() {
define_f!(concat!("exported_", "f")); define_f!(concat!("exported_", "f"));
m!(stringify!(foo)); m!(stringify!(foo));
} }

View file

@ -23,4 +23,3 @@ enum_number!(Change {
fn main() { fn main() {
if let Some(Change::Down) = foo(-1) {} else { panic!() } if let Some(Change::Down) = foo(-1) {} else { panic!() }
} }

View file

@ -32,4 +32,3 @@ fn main(){
assert_eq!(mir(), (STRUCT, TUPLE1, TUPLE2, PAIR_NEWTYPE)); assert_eq!(mir(), (STRUCT, TUPLE1, TUPLE2, PAIR_NEWTYPE));
test_promoted_newtype_str_ref(); test_promoted_newtype_str_ref();
} }

View file

@ -16,4 +16,3 @@ fn main() {
}, },
} }
} }

View file

@ -9,4 +9,3 @@ fn main() {
_ => &v[..], _ => &v[..],
}; };
} }

Some files were not shown because too many files have changed in this diff Show more