Skip to content

Commit 7f0f0e3

Browse files
committed
Remove double trailing newlines
1 parent c21fbfe commit 7f0f0e3

File tree

232 files changed

+2
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+2
-240
lines changed

src/ci/docker/scripts/android-sdk.sh

-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ abi="$(echo "${details}" | awk '{print($2)}')"
2626
echo no | avdmanager create avd \
2727
-n "$abi-$api" \
2828
-k "system-images;android-$api;default;$abi"
29-

src/ci/docker/scripts/musl-toolchain.sh

-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,3 @@ cmake ../libunwind-release_$LLVM \
7171
hide_output make -j$(nproc)
7272
cp lib/libunwind.a $OUTPUT/$TARGET/lib
7373
cd - && rm -rf libunwind-build
74-

src/liballoc/str.rs

-1
Original file line numberDiff line numberDiff line change
@@ -573,4 +573,3 @@ impl str {
573573
pub unsafe fn from_boxed_utf8_unchecked(v: Box<[u8]>) -> Box<str> {
574574
Box::from_raw(Box::into_raw(v) as *mut str)
575575
}
576-

src/libcore/iter/adapters/chain.rs

-1
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,3 @@ impl<A, B> FusedIterator for Chain<A, B>
258258
unsafe impl<A, B> TrustedLen for Chain<A, B>
259259
where A: TrustedLen, B: TrustedLen<Item=A::Item>,
260260
{}
261-

src/libcore/iter/traits/exact_size.rs

-1
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,3 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for &mut I {
140140
(**self).is_empty()
141141
}
142142
}
143-

src/libcore/num/flt2dec/decoder.rs

-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,3 @@ pub fn decode<T: DecodableFloat>(v: T) -> (/*negative?*/ bool, FullDecoded) {
8686
};
8787
(sign < 0, decoded)
8888
}
89-

src/libcore/ops/unsize.rs

-1
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,3 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*const U> for *const T {}
100100
// *mut T -> *mut U
101101
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
102102
impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*mut U> for *mut T {}
103-

src/libcore/tests/num/bignum.rs

-1
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,3 @@ fn test_fmt() {
236236
assert_eq!(format!("{:?}", Big::from_u64(0x12345)), "0x1_23_45");
237237
assert_eq!(format!("{:?}", Big::from_u64(0x123456)), "0x12_34_56");
238238
}
239-

src/libcore/tests/num/flt2dec/estimator.rs

-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@ fn test_estimate_scaling_factor() {
4747
assert_almost_eq!(estimate_scaling_factor(1, i as i16), expected as i16);
4848
}
4949
}
50-

src/libcore/tests/num/flt2dec/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1107,4 +1107,3 @@ pub fn to_exact_fixed_str_test<F>(mut f_: F)
11071107
format!("0.0000000000000000000099999999999999994515327145420957165172950370\
11081108
2787392447107715776066783064379706047475337982177734375{:0>79881}", ""));
11091109
}
1110-

src/libcore/tests/num/flt2dec/random.rs

-1
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,3 @@ fn exact_f64_random_equivalence_test() {
152152
|d, buf| fallback(d, buf, i16::MIN), k, 1_000);
153153
}
154154
}
155-

src/libcore/tests/num/flt2dec/strategy/dragon.rs

-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,3 @@ fn test_to_exact_exp_str() {
6262
fn test_to_exact_fixed_str() {
6363
to_exact_fixed_str_test(format_exact);
6464
}
65-

src/libcore/tests/num/flt2dec/strategy/grisu.rs

-1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,3 @@ fn test_to_exact_exp_str() {
6464
fn test_to_exact_fixed_str() {
6565
to_exact_fixed_str_test(format_exact);
6666
}
67-

src/librustc/ich/hcx.rs

-1
Original file line numberDiff line numberDiff line change
@@ -435,4 +435,3 @@ pub fn hash_stable_trait_impls<'a, 'gcx, W>(
435435
}
436436
}
437437
}
438-

src/librustc/ich/impls_hir.rs

-1
Original file line numberDiff line numberDiff line change
@@ -435,4 +435,3 @@ impl<'hir> HashStable<StableHashingContext<'hir>> for attr::OptimizeAttr {
435435
mem::discriminant(self).hash_stable(hcx, hasher);
436436
}
437437
}
438-

src/librustc/infer/error_reporting/nice_region_error/outlives_closure.rs

-1
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,3 @@ impl<'a, 'gcx, 'tcx> NiceRegionError<'a, 'gcx, 'tcx> {
109109
None
110110
}
111111
}
112-

src/librustc/infer/type_variable.rs

-1
Original file line numberDiff line numberDiff line change
@@ -444,4 +444,3 @@ impl ut::UnifyKey for ty::TyVid {
444444
fn from_index(i: u32) -> ty::TyVid { ty::TyVid { index: i } }
445445
fn tag() -> &'static str { "TyVid" }
446446
}
447-

src/librustc/macros.rs

-1
Original file line numberDiff line numberDiff line change
@@ -509,4 +509,3 @@ macro_rules! EnumTypeFoldableImpl {
509509
)
510510
};
511511
}
512-

src/librustc/middle/free_region.rs

-1
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,3 @@ impl<'a, 'gcx, 'tcx> RegionRelations<'a, 'gcx, 'tcx> {
104104
self.free_regions.lub_free_regions(self.tcx, r_a, r_b)
105105
}
106106
}
107-

src/librustc/session/search_paths.rs

-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,3 @@ impl SearchPath {
7171
SearchPath { kind, dir, files }
7272
}
7373
}
74-

src/librustc/ty/inhabitedness/def_id_forest.rs

-1
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,3 @@ impl<'a, 'gcx, 'tcx> DefIdForest {
118118
ret
119119
}
120120
}
121-

src/librustc/ty/inhabitedness/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,3 @@ impl<'a, 'gcx, 'tcx> TyS<'tcx> {
203203
}
204204
}
205205
}
206-

src/librustc_codegen_llvm/va_arg.rs

-1
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,3 @@ pub(super) fn emit_va_arg(
145145
}
146146
}
147147
}
148-

src/librustc_mir/borrow_check/nll/invalidation.rs

-1
Original file line numberDiff line numberDiff line change
@@ -502,4 +502,3 @@ impl<'cg, 'cx, 'tcx, 'gcx> InvalidationGenerator<'cx, 'tcx, 'gcx> {
502502
}
503503
}
504504
}
505-

src/librustc_mir/borrow_check/nll/region_infer/dump_mir.rs

-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,3 @@ impl<'tcx> RegionInferenceContext<'tcx> {
9292
Ok(())
9393
}
9494
}
95-

src/libstd/os/android/fs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,3 @@ impl MetadataExt for Metadata {
116116
self.as_inner().as_inner().st_blocks as u64
117117
}
118118
}
119-

src/libstd/os/android/raw.rs

-1
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,3 @@ mod arch {
217217
__unused: [c_long; 3],
218218
}
219219
}
220-

src/libstd/os/bitrig/fs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
136136
self.as_inner().as_inner().st_flags as u32
137137
}
138138
}
139-

src/libstd/os/dragonfly/fs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,3 @@ impl MetadataExt for Metadata {
131131
self.as_inner().as_inner().st_lspare as u32
132132
}
133133
}
134-

src/libstd/os/freebsd/fs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,3 @@ impl MetadataExt for Metadata {
141141
self.as_inner().as_inner().st_lspare as u32
142142
}
143143
}
144-

src/libstd/os/ios/fs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,3 @@ impl MetadataExt for Metadata {
141141
self.as_inner().as_inner().st_lspare as u32
142142
}
143143
}
144-

src/libstd/os/macos/fs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,3 @@ impl MetadataExt for Metadata {
147147
[qspare[0] as u64, qspare[1] as u64]
148148
}
149149
}
150-

src/libstd/os/netbsd/fs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
136136
self.as_inner().as_inner().st_flags as u32
137137
}
138138
}
139-

src/libstd/os/openbsd/fs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,3 @@ impl MetadataExt for Metadata {
136136
self.as_inner().as_inner().st_flags as u32
137137
}
138138
}
139-

src/libstd/sys_common/backtrace.rs

-1
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,3 @@ fn output_fileline(w: &mut dyn Write,
241241

242242
w.write_all(b"\n")
243243
}
244-

src/libsyntax/test_snippet.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1162,4 +1162,3 @@ error: foo
11621162
11631163
"#);
11641164
}
1165-

src/test/assembly/nvptx-internalizing.rs

-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ pub unsafe extern "ptx-kernel" fn top_kernel(a: *const u32, b: *mut u32) {
2424
// Verify that no extra function definitions are here.
2525
// CHECK-NOT: .func
2626
// CHECK-NOT: .entry
27-

src/test/codegen-units/item-collection/auxiliary/cgu_generic_function.rs

-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ pub fn exported_but_not_generic(x: i32) -> i64 {
2424
fn not_exported_and_not_generic(x: u32) -> u64 {
2525
x as u64
2626
}
27-

src/test/codegen-units/partitioning/auxiliary/cgu_generic_function.rs

-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ pub fn exported_but_not_generic(x: i32) -> i64 {
2424
fn not_exported_and_not_generic(x: u32) -> u64 {
2525
x as u64
2626
}
27-

src/test/codegen/likely.rs

-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ pub fn check_unlikely(x: i32, y: i32) -> Option<i32> {
2828
}
2929
}
3030
}
31-

src/test/codegen/nounwind.rs

-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ pub fn foo() {
1414
// CHECK: @bar() unnamed_addr #0
1515
// CHECK: attributes #0 = { {{.*}}nounwind{{.*}} }
1616
}
17-

src/test/codegen/packed.rs

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

src/test/codegen/union-abi.rs

-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,3 @@ pub union UnionBool { b:bool }
7373
#[no_mangle]
7474
pub fn test_UnionBool(b: UnionBool) -> bool { unsafe { b.b } }
7575
// CHECK: %0 = trunc i8 %b to i1
76-

src/test/debuginfo/should-fail.rs

-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ fn main() {
2525
}
2626

2727
fn zzz() {()}
28-

src/test/debuginfo/unreachable-locals.rs

-1
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,3 @@ fn diverge() -> ! {
156156
}
157157

158158
fn some_predicate() -> bool { true || false }
159-
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#![crate_type="rlib"]
22

33
pub static A : u32 = 32;
4-
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#![crate_type="rlib"]
22

33
pub static B: u32 = 32;
4-

src/test/incremental/hashes/exported_vs_not.rs

-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ pub fn body_exported_to_metadata_because_of_generic() -> u32 {
6161
pub fn body_exported_to_metadata_because_of_generic() -> u32 {
6262
2
6363
}
64-

src/test/incremental/issue-39569.rs

-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ fn main() {
2525
let x: Arc<FooX> = Arc::new(FooX { x: 22 });
2626
let y: Arc<FooX> = x;
2727
}
28-

src/test/incremental/krate-inherent.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ pub mod x {
2121

2222
#[cfg(cfail1)]
2323
pub fn bar() { } // remove this unrelated fn in cfail2, which should not affect `x::method`
24-
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#![crate_type="rlib"]
22

33
pub type X = u32;
4-

src/test/incremental/span_hash_stable/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ fn main() {
2121
b: 3,
2222
};
2323
}
24-

src/test/run-fail/call-fn-never-arg.rs

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ fn foo(x: !) -> ! {
1212
fn main() {
1313
foo(panic!("wowzers!"))
1414
}
15-

src/test/run-fail/cast-never.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ fn main() {
88
let x: ! = panic!();
99
let y: u32 = x as u32;
1010
}
11-

src/test/run-fail/never-associated-type.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ impl Foo for Blah {
2121
fn main() {
2222
Blah.smeg();
2323
}
24-

src/test/run-fail/never-type-arg.rs

-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ impl PartialEq<!> for Wub {
1515
fn main() {
1616
let _ = Wub == panic!("oh no!");
1717
}
18-

src/test/run-make-fulldeps/issue-18943/foo.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ trait Foo { }
33
trait Bar { }
44

55
impl<'a> Foo for Bar + 'a { }
6-

src/test/run-make-fulldeps/issue-28595/b.c

-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ extern void a(void);
33
void b(void) {
44
a();
55
}
6-

src/test/run-make-fulldeps/libtest-json/f.rs

-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ fn c() {
1919
fn d() {
2020
assert!(false);
2121
}
22-

src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ extern {
1010
pub fn foo2() -> i32 {
1111
unsafe { foo() }
1212
}
13-

src/test/run-make-fulldeps/sanitizer-staticlib-link/program.c

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ int main() {
55
overflow();
66
return 0;
77
}
8-

src/test/run-make-fulldeps/stable-symbol-names/stable-symbol-names2.rs

-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ pub fn trait_impl_test_function() {
1515
use stable_symbol_names1::*;
1616
Bar::generic_method::<Bar>();
1717
}
18-
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#![windows_subsystem = "console"]
22

33
fn main() {}
4-

src/test/run-pass/asm-concat-src.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
pub fn main() {
77
unsafe { asm!(concat!("", "")) };
88
}
9-

src/test/run-pass/binding/empty-types-in-patterns.rs

-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ fn main() {
5656

5757
bar(&[]);
5858
}
59-

src/test/run-pass/consts/const-fn-feature-flags.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ fn main() {
1111

1212
assert_eq!(CELL.get(), v);
1313
}
14-

src/test/run-pass/deriving/auxiliary/derive-no-std.rs

-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ pub struct Empty;
2727
#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord,
2828
Debug, Copy)]
2929
pub struct AlsoEmpty {}
30-

src/test/run-pass/deriving/derive-no-std.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ fn main() {
1010

1111
assert!(Bar::Qux < Bar::Quux(42));
1212
}
13-

src/test/run-pass/discriminant_value-wrapper.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ pub fn main() {
1313
let _ = mem::discriminant(&10);
1414
let _ = mem::discriminant(&"test");
1515
}
16-

src/test/run-pass/fat-lto.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
fn main() {
55
println!("hello!");
66
}
7-

src/test/run-pass/impl-for-never.rs

-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ fn main() {
2323
println!("! is {}", <!>::stringify_type());
2424
println!("None is {}", maybe_stringify(None::<!>));
2525
}
26-

src/test/run-pass/inc-range-pat.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ fn main() {
77
assert!(match 'x' { 'a' ... 'z' => true, _ => false });
88
assert!(match 'x' { 'a' ..= 'z' => true, _ => false });
99
}
10-

src/test/run-pass/inherit-env.rs

-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ fn main() {
2222
k, v, output);
2323
}
2424
}
25-

src/test/run-pass/issues/auxiliary/issue-17718-aux.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ pub const C5: &'static usize = &C4;
88

99
pub static S1: usize = 3;
1010
pub static S2: atomic::AtomicUsize = atomic::AtomicUsize::new(0);
11-

src/test/run-pass/issues/issue-16278.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
// this file has some special \r\n endings (use xxd to see them)
55

6-
fn main() {assert_eq!(b"", b"\
6+
fn main() {assert_eq!(b"", b"\
77
");
8-
assert_eq!(b"\n", b"
8+
assert_eq!(b"\n", b"
99
");
1010
}
11-

src/test/run-pass/issues/issue-21400.rs

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ impl GitConnect {
5454
Ok(out)
5555
}
5656
}
57-

src/test/run-pass/issues/issue-23699.rs

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ fn main() {
1212
let t = test as fn (i32);
1313
t(0i32);
1414
}
15-

src/test/run-pass/issues/issue-24313.rs

-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ fn main() {
3030
}).join().unwrap();
3131
}
3232
}
33-

0 commit comments

Comments
 (0)