Skip to content

Commit

Permalink
Ignore overflow lint on 32-bit platform
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleywiser committed Jan 1, 2020
1 parent 001cea4 commit e8c1c4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/ui/wrapping-int-api.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// run-pass
// Test inherent wrapping_* methods for {i,u}{size,8,16,32,64}.

// Don't warn about overflowing ops on 32-bit platforms
#![cfg_attr(target_pointer_width = "32", allow(const_err))]

use std::{i8, i16, i32, i64, isize};
use std::{u8, u16, u32, u64, usize};

Expand Down

0 comments on commit e8c1c4c

Please sign in to comment.