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 \
-n "$abi-$api" \
-k "system-images;android-$api;default;$abi"

View File

@ -71,4 +71,3 @@ cmake ../libunwind-release_$LLVM \
hide_output make -j$(nproc)
cp lib/libunwind.a $OUTPUT/$TARGET/lib
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> {
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>
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()
}
}

View File

@ -86,4 +86,3 @@ pub fn decode<T: DecodableFloat>(v: T) -> (/*negative?*/ bool, FullDecoded) {
};
(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
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
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(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);
}
}

View File

@ -1107,4 +1107,3 @@ pub fn to_exact_fixed_str_test<F>(mut f_: F)
format!("0.0000000000000000000099999999999999994515327145420957165172950370\
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);
}
}

View File

@ -62,4 +62,3 @@ fn test_to_exact_exp_str() {
fn test_to_exact_fixed_str() {
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() {
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);
}
}

View File

@ -109,4 +109,3 @@ impl<'a, 'gcx, 'tcx> NiceRegionError<'a, 'gcx, 'tcx> {
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 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)
}
}

View File

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

View File

@ -118,4 +118,3 @@ impl<'a, 'gcx, 'tcx> DefIdForest {
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(())
}
}

View File

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

View File

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

View File

@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
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
}
}

View File

@ -141,4 +141,3 @@ impl MetadataExt for Metadata {
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
}
}

View File

@ -147,4 +147,3 @@ impl MetadataExt for Metadata {
[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
}
}

View File

@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
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")
}

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.
// CHECK-NOT: .func
// 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 {
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 {
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: 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)
*pair2 = *pair1;
}

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,3 @@
#![crate_type="rlib"]
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 {
2
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -23,4 +23,3 @@ fn main() {
println!("! is {}", <!>::stringify_type());
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 });
}

View File

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

View File

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

View File

@ -3,9 +3,8 @@
// this file has some special \r\n endings (use xxd to see them)
fn main() {assert_eq!(b"", b"\
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)
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -19,4 +19,3 @@ fn main() {
let x = MyRc { _ptr: &iter, _boo: PhantomData };
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[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[1].1.set(Some(&foo.data[0]));
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -23,4 +23,3 @@ enum_number!(Change {
fn main() {
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));
test_promoted_newtype_str_ref();
}

View File

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

View File

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

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