From e8c1c4cd5bc0d370f59d0399ae2458e872a51622 Mon Sep 17 00:00:00 2001 From: Wesley Wiser Date: Wed, 1 Jan 2020 12:30:17 -0500 Subject: [PATCH] Ignore overflow lint on 32-bit platform --- src/test/ui/wrapping-int-api.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/ui/wrapping-int-api.rs b/src/test/ui/wrapping-int-api.rs index 2a5baad8b786f..ecdd742fb4e08 100644 --- a/src/test/ui/wrapping-int-api.rs +++ b/src/test/ui/wrapping-int-api.rs @@ -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};