Skip to content

Commit e8c1c4c

Browse files
committed
Ignore overflow lint on 32-bit platform
1 parent 001cea4 commit e8c1c4c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/ui/wrapping-int-api.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// run-pass
22
// Test inherent wrapping_* methods for {i,u}{size,8,16,32,64}.
33

4+
// Don't warn about overflowing ops on 32-bit platforms
5+
#![cfg_attr(target_pointer_width = "32", allow(const_err))]
6+
47
use std::{i8, i16, i32, i64, isize};
58
use std::{u8, u16, u32, u64, usize};
69

0 commit comments

Comments
 (0)