Skip to content

Commit ec99b88

Browse files
committed
Auto merge of #102091 - RalfJung:const_err, r=oli-obk
make const_err a hard error This lint has been deny-by-default with future incompat wording since [Rust 1.51](rust-lang/rust#80394) and the stable release of this week starts showing it in cargo's future compat reports. I can't wait to finally get rid of at least some of the mess in our const-err-reporting-code. ;) r? `@oli-obk` Fixes rust-lang/rust#71800 Fixes rust-lang/rust#100114
2 parents 7b13a03 + 68785ad commit ec99b88

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

core/tests/num/wrapping.rs

-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ wrapping_test!(test_wrapping_u64, u64, u64::MIN, u64::MAX);
7575
wrapping_test!(test_wrapping_u128, u128, u128::MIN, u128::MAX);
7676
wrapping_test!(test_wrapping_usize, usize, usize::MIN, usize::MAX);
7777

78-
// Don't warn about overflowing ops on 32-bit platforms
79-
#[cfg_attr(target_pointer_width = "32", allow(const_err))]
8078
#[test]
8179
fn wrapping_int_api() {
8280
assert_eq!(i8::MAX.wrapping_add(1), i8::MIN);

core/tests/slice.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,6 @@ fn test_windows_zip() {
12841284
}
12851285

12861286
#[test]
1287-
#[allow(const_err)]
12881287
fn test_iter_ref_consistency() {
12891288
use std::fmt::Debug;
12901289

0 commit comments

Comments
 (0)