Skip to content

Commit 0f11354

Browse files
committed
Auto merge of #60172 - varkor:tidy-double-trailing-newline, r=kennytm
Disallow double trailing newlines in tidy This wasn't done previously in #47064 (comment) as it affected too many files, but I think it's best to fix it now so that the number of files with double trailing newlines doesn't keep increasing. r? kennytm
2 parents 3bee49f + f571b95 commit 0f11354

File tree

239 files changed

+5
-248
lines changed

Some content is hidden

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

239 files changed

+5
-248
lines changed

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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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-

0 commit comments

Comments
 (0)