Skip to content

Commit 68785ad

Browse files
committed
make const_err a hard error
1 parent d027f6e commit 68785ad

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

core/tests/num/wrapping.rs

Lines changed: 0 additions & 2 deletions
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

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