Skip to content

Commit 5fe0851

Browse files
committed
Allow more lints, mainly overflowing_literals for cases that only arose on 32-bit.
1 parent dc124e4 commit 5fe0851

File tree

8 files changed

+11
-0
lines changed

8 files changed

+11
-0
lines changed

src/test/ui/run-pass/array-slice-vec/box-of-array-of-drop-1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(overflowing_literals)]
1213

1314
// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
1415
// destructor.

src/test/ui/run-pass/array-slice-vec/box-of-array-of-drop-2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(overflowing_literals)]
1213

1314
// Test that we cleanup dynamic sized Box<[D]> properly when D has a
1415
// destructor.

src/test/ui/run-pass/array-slice-vec/nested-vec-3.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(overflowing_literals)]
1213

1314
// ignore-emscripten no threads support
1415

src/test/ui/run-pass/consts/const-fn-val.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// run-pass
1212
#![allow(non_upper_case_globals)]
13+
#![allow(overflowing_literals)]
1314

1415
fn foo() -> isize {
1516
return 0xca7f000d;

src/test/ui/run-pass/deriving/deriving-hash.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#![allow(deprecated)]
1313
#![allow(non_camel_case_types)]
1414
#![allow(non_snake_case)]
15+
#![allow(overflowing_literals)]
1516

1617
use std::hash::{Hash, SipHasher, Hasher};
1718
use std::mem::size_of;

src/test/ui/run-pass/simd/simd-target-feature-mixup.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// run-pass
1212
#![allow(stable_features)]
13+
#![allow(overflowing_literals)]
1314

1415
// ignore-emscripten
1516

src/test/ui/run-pass/structs-enums/enum-discrim-autosizing.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(overflowing_literals)]
13+
1214
use std::mem::size_of;
1315

1416
enum Ei8 {

src/test/ui/run-pass/structs-enums/enum-discrim-width-stuff.rs

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(overflowing_literals)]
13+
#![allow(dead_code)]
14+
1215
macro_rules! check {
1316
($m:ident, $t:ty, $v:expr) => {{
1417
mod $m {

0 commit comments

Comments
 (0)