Skip to content

Commit

Permalink
Allow more lints, mainly overflowing_literals for cases that only aro…
Browse files Browse the repository at this point in the history
…se on 32-bit.
  • Loading branch information
pnkfelix committed Sep 6, 2018
1 parent dc124e4 commit 5fe0851
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(overflowing_literals)]

// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
// destructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(overflowing_literals)]

// Test that we cleanup dynamic sized Box<[D]> properly when D has a
// destructor.
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/array-slice-vec/nested-vec-3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(overflowing_literals)]

// ignore-emscripten no threads support

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/consts/const-fn-val.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

// run-pass
#![allow(non_upper_case_globals)]
#![allow(overflowing_literals)]

fn foo() -> isize {
return 0xca7f000d;
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/deriving/deriving-hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#![allow(deprecated)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(overflowing_literals)]

use std::hash::{Hash, SipHasher, Hasher};
use std::mem::size_of;
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/simd/simd-target-feature-mixup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

// run-pass
#![allow(stable_features)]
#![allow(overflowing_literals)]

// ignore-emscripten

Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/structs-enums/enum-discrim-autosizing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
// except according to those terms.

// run-pass
#![allow(overflowing_literals)]

use std::mem::size_of;

enum Ei8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
// except according to those terms.

// run-pass
#![allow(overflowing_literals)]
#![allow(dead_code)]

macro_rules! check {
($m:ident, $t:ty, $v:expr) => {{
mod $m {
Expand Down

0 comments on commit 5fe0851

Please sign in to comment.