mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
Remove double trailing newlines
This commit is contained in:
parent
c21fbfe7e3
commit
7f0f0e31ec
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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>,
|
||||
{}
|
||||
|
||||
|
@ -140,4 +140,3 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for &mut I {
|
||||
(**self).is_empty()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -86,4 +86,3 @@ pub fn decode<T: DecodableFloat>(v: T) -> (/*negative?*/ bool, FullDecoded) {
|
||||
};
|
||||
(sign < 0, decoded)
|
||||
}
|
||||
|
||||
|
@ -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 {}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
@ -47,4 +47,3 @@ fn test_estimate_scaling_factor() {
|
||||
assert_almost_eq!(estimate_scaling_factor(1, i as i16), expected as i16);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1107,4 +1107,3 @@ pub fn to_exact_fixed_str_test<F>(mut f_: F)
|
||||
format!("0.0000000000000000000099999999999999994515327145420957165172950370\
|
||||
2787392447107715776066783064379706047475337982177734375{:0>79881}", ""));
|
||||
}
|
||||
|
||||
|
@ -152,4 +152,3 @@ fn exact_f64_random_equivalence_test() {
|
||||
|d, buf| fallback(d, buf, i16::MIN), k, 1_000);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,4 +62,3 @@ fn test_to_exact_exp_str() {
|
||||
fn test_to_exact_fixed_str() {
|
||||
to_exact_fixed_str_test(format_exact);
|
||||
}
|
||||
|
||||
|
@ -64,4 +64,3 @@ fn test_to_exact_exp_str() {
|
||||
fn test_to_exact_fixed_str() {
|
||||
to_exact_fixed_str_test(format_exact);
|
||||
}
|
||||
|
||||
|
@ -435,4 +435,3 @@ pub fn hash_stable_trait_impls<'a, 'gcx, W>(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -435,4 +435,3 @@ impl<'hir> HashStable<StableHashingContext<'hir>> for attr::OptimizeAttr {
|
||||
mem::discriminant(self).hash_stable(hcx, hasher);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,4 +109,3 @@ impl<'a, 'gcx, 'tcx> NiceRegionError<'a, 'gcx, 'tcx> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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" }
|
||||
}
|
||||
|
||||
|
@ -509,4 +509,3 @@ macro_rules! EnumTypeFoldableImpl {
|
||||
)
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -104,4 +104,3 @@ impl<'a, 'gcx, 'tcx> RegionRelations<'a, 'gcx, 'tcx> {
|
||||
self.free_regions.lub_free_regions(self.tcx, r_a, r_b)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,4 +71,3 @@ impl SearchPath {
|
||||
SearchPath { kind, dir, files }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -118,4 +118,3 @@ impl<'a, 'gcx, 'tcx> DefIdForest {
|
||||
ret
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -203,4 +203,3 @@ impl<'a, 'gcx, 'tcx> TyS<'tcx> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -145,4 +145,3 @@ pub(super) fn emit_va_arg(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -502,4 +502,3 @@ impl<'cg, 'cx, 'tcx, 'gcx> InvalidationGenerator<'cx, 'tcx, 'gcx> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -92,4 +92,3 @@ impl<'tcx> RegionInferenceContext<'tcx> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -116,4 +116,3 @@ impl MetadataExt for Metadata {
|
||||
self.as_inner().as_inner().st_blocks as u64
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -217,4 +217,3 @@ mod arch {
|
||||
__unused: [c_long; 3],
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
|
||||
self.as_inner().as_inner().st_flags as u32
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -131,4 +131,3 @@ impl MetadataExt for Metadata {
|
||||
self.as_inner().as_inner().st_lspare as u32
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -141,4 +141,3 @@ impl MetadataExt for Metadata {
|
||||
self.as_inner().as_inner().st_lspare as u32
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -141,4 +141,3 @@ impl MetadataExt for Metadata {
|
||||
self.as_inner().as_inner().st_lspare as u32
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -147,4 +147,3 @@ impl MetadataExt for Metadata {
|
||||
[qspare[0] as u64, qspare[1] as u64]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
|
||||
self.as_inner().as_inner().st_flags as u32
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
|
||||
self.as_inner().as_inner().st_flags as u32
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -241,4 +241,3 @@ fn output_fileline(w: &mut dyn Write,
|
||||
|
||||
w.write_all(b"\n")
|
||||
}
|
||||
|
||||
|
@ -1162,4 +1162,3 @@ error: foo
|
||||
|
||||
"#);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -28,4 +28,3 @@ pub fn check_unlikely(x: i32, y: i32) -> Option<i32> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,4 +14,3 @@ pub fn foo() {
|
||||
// CHECK: @bar() unnamed_addr #0
|
||||
// CHECK: attributes #0 = { {{.*}}nounwind{{.*}} }
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -25,4 +25,3 @@ fn main() {
|
||||
}
|
||||
|
||||
fn zzz() {()}
|
||||
|
||||
|
@ -156,4 +156,3 @@ fn diverge() -> ! {
|
||||
}
|
||||
|
||||
fn some_predicate() -> bool { true || false }
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#![crate_type="rlib"]
|
||||
|
||||
pub static A : u32 = 32;
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#![crate_type="rlib"]
|
||||
|
||||
pub static B: u32 = 32;
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -25,4 +25,3 @@ fn main() {
|
||||
let x: Arc<FooX> = Arc::new(FooX { x: 22 });
|
||||
let y: Arc<FooX> = x;
|
||||
}
|
||||
|
||||
|
@ -21,4 +21,3 @@ pub mod x {
|
||||
|
||||
#[cfg(cfail1)]
|
||||
pub fn bar() { } // remove this unrelated fn in cfail2, which should not affect `x::method`
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#![crate_type="rlib"]
|
||||
|
||||
pub type X = u32;
|
||||
|
||||
|
@ -21,4 +21,3 @@ fn main() {
|
||||
b: 3,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -12,4 +12,3 @@ fn foo(x: !) -> ! {
|
||||
fn main() {
|
||||
foo(panic!("wowzers!"))
|
||||
}
|
||||
|
||||
|
@ -8,4 +8,3 @@ fn main() {
|
||||
let x: ! = panic!();
|
||||
let y: u32 = x as u32;
|
||||
}
|
||||
|
||||
|
@ -21,4 +21,3 @@ impl Foo for Blah {
|
||||
fn main() {
|
||||
Blah.smeg();
|
||||
}
|
||||
|
||||
|
@ -15,4 +15,3 @@ impl PartialEq<!> for Wub {
|
||||
fn main() {
|
||||
let _ = Wub == panic!("oh no!");
|
||||
}
|
||||
|
||||
|
@ -3,4 +3,3 @@ trait Foo { }
|
||||
trait Bar { }
|
||||
|
||||
impl<'a> Foo for Bar + 'a { }
|
||||
|
||||
|
@ -3,4 +3,3 @@ extern void a(void);
|
||||
void b(void) {
|
||||
a();
|
||||
}
|
||||
|
||||
|
@ -19,4 +19,3 @@ fn c() {
|
||||
fn d() {
|
||||
assert!(false);
|
||||
}
|
||||
|
||||
|
@ -10,4 +10,3 @@ extern {
|
||||
pub fn foo2() -> i32 {
|
||||
unsafe { foo() }
|
||||
}
|
||||
|
||||
|
@ -5,4 +5,3 @@ int main() {
|
||||
overflow();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -15,4 +15,3 @@ pub fn trait_impl_test_function() {
|
||||
use stable_symbol_names1::*;
|
||||
Bar::generic_method::<Bar>();
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#![windows_subsystem = "console"]
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
@ -6,4 +6,3 @@
|
||||
pub fn main() {
|
||||
unsafe { asm!(concat!("", "")) };
|
||||
}
|
||||
|
||||
|
@ -56,4 +56,3 @@ fn main() {
|
||||
|
||||
bar(&[]);
|
||||
}
|
||||
|
||||
|
@ -11,4 +11,3 @@ fn main() {
|
||||
|
||||
assert_eq!(CELL.get(), v);
|
||||
}
|
||||
|
||||
|
@ -27,4 +27,3 @@ pub struct Empty;
|
||||
#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord,
|
||||
Debug, Copy)]
|
||||
pub struct AlsoEmpty {}
|
||||
|
||||
|
@ -10,4 +10,3 @@ fn main() {
|
||||
|
||||
assert!(Bar::Qux < Bar::Quux(42));
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,3 @@ pub fn main() {
|
||||
let _ = mem::discriminant(&10);
|
||||
let _ = mem::discriminant(&"test");
|
||||
}
|
||||
|
||||
|
@ -4,4 +4,3 @@
|
||||
fn main() {
|
||||
println!("hello!");
|
||||
}
|
||||
|
||||
|
@ -23,4 +23,3 @@ fn main() {
|
||||
println!("! is {}", <!>::stringify_type());
|
||||
println!("None is {}", maybe_stringify(None::<!>));
|
||||
}
|
||||
|
||||
|
@ -7,4 +7,3 @@ fn main() {
|
||||
assert!(match 'x' { 'a' ... 'z' => true, _ => false });
|
||||
assert!(match 'x' { 'a' ..= 'z' => true, _ => false });
|
||||
}
|
||||
|
||||
|
@ -22,4 +22,3 @@ fn main() {
|
||||
k, v, output);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,4 +8,3 @@ pub const C5: &'static usize = &C4;
|
||||
|
||||
pub static S1: usize = 3;
|
||||
pub static S2: atomic::AtomicUsize = atomic::AtomicUsize::new(0);
|
||||
|
||||
|
@ -8,4 +8,3 @@ fn main() {assert_eq!(b"", b"\
|
||||
assert_eq!(b"\n", b"
|
||||
");
|
||||
}
|
||||
|
||||
|
@ -54,4 +54,3 @@ impl GitConnect {
|
||||
Ok(out)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -12,4 +12,3 @@ fn main() {
|
||||
let t = test as fn (i32);
|
||||
t(0i32);
|
||||
}
|
||||
|
||||
|
@ -30,4 +30,3 @@ fn main() {
|
||||
}).join().unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,4 +8,3 @@
|
||||
mod issue_24687_mbcs_in_comments;
|
||||
|
||||
pub use issue_24687_mbcs_in_comments::D;
|
||||
|
||||
|
@ -2,4 +2,3 @@
|
||||
use super::*;
|
||||
|
||||
pub struct S;
|
||||
|
||||
|
@ -4,4 +4,3 @@ use super::*;
|
||||
use super::B::S;
|
||||
|
||||
pub struct T { i: i32 }
|
||||
|
||||
|
@ -3,4 +3,3 @@ pub mod B;
|
||||
pub mod C;
|
||||
|
||||
pub use self::C::T;
|
||||
|
||||
|
@ -2,4 +2,3 @@
|
||||
mod A;
|
||||
|
||||
use self::A::*;
|
||||
|
||||
|
@ -23,4 +23,3 @@ mod A {
|
||||
use A::*;
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
@ -19,4 +19,3 @@ fn main() {
|
||||
let x = MyRc { _ptr: &iter, _boo: PhantomData };
|
||||
let _y: MyRc<Iterator<Item=&u32>> = x;
|
||||
}
|
||||
|
||||
|
@ -18,4 +18,3 @@ fn main() {
|
||||
foo.data[0].1.set(Some(&foo.data[1]));
|
||||
foo.data[1].1.set(Some(&foo.data[0]));
|
||||
}
|
||||
|
||||
|
@ -27,4 +27,3 @@ fn main() {
|
||||
foo.data[0].1.set(Some(&foo.data[1]));
|
||||
foo.data[1].1.set(Some(&foo.data[0]));
|
||||
}
|
||||
|
||||
|
@ -8,4 +8,3 @@ fn main() {
|
||||
() => Some(0),
|
||||
} {}
|
||||
}
|
||||
|
||||
|
@ -17,4 +17,3 @@ fn main() {
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3,4 +3,3 @@
|
||||
fn main() {
|
||||
println!("{}", { macro_rules! x { ($(t:tt)*) => {} } 33 });
|
||||
}
|
||||
|
||||
|
@ -8,4 +8,3 @@ struct builder;
|
||||
fn main() {
|
||||
|
||||
}
|
||||
|
||||
|
@ -10,4 +10,3 @@ extern crate link_cfg_works_transitive_dylib;
|
||||
extern {}
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
@ -5,4 +5,3 @@
|
||||
use std::option;
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
@ -275,4 +275,3 @@ fn main() {
|
||||
test_24189();
|
||||
test_51477();
|
||||
}
|
||||
|
||||
|
@ -181,4 +181,3 @@ macro_rules! follow_meta {
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
@ -20,4 +20,3 @@ fn main() {
|
||||
define_f!(concat!("exported_", "f"));
|
||||
m!(stringify!(foo));
|
||||
}
|
||||
|
||||
|
@ -23,4 +23,3 @@ enum_number!(Change {
|
||||
fn main() {
|
||||
if let Some(Change::Down) = foo(-1) {} else { panic!() }
|
||||
}
|
||||
|
||||
|
@ -32,4 +32,3 @@ fn main(){
|
||||
assert_eq!(mir(), (STRUCT, TUPLE1, TUPLE2, PAIR_NEWTYPE));
|
||||
test_promoted_newtype_str_ref();
|
||||
}
|
||||
|
||||
|
@ -16,4 +16,3 @@ fn main() {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,4 +9,3 @@ fn main() {
|
||||
_ => &v[..],
|
||||
};
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user