Skip to content

Commit 07ff8ab

Browse files
committed
fixes for fallout in tests/compile-fail
1 parent c8bf5f5 commit 07ff8ab

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

src/test/compile-fail/const-eval-overflow.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![feature(negate_unsigned)]
12+
1113
#![allow(unused_imports)]
1214

1315
// Note: the relevant lint pass here runs before some of the constant

src/test/compile-fail/enum-discrim-too-small.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![feature(negate_unsigned)]
12+
1113
#[repr(u8)] //~ NOTE discriminant type specified here
1214
enum Eu8 {
1315
Au8 = 23,

src/test/compile-fail/lint-exceeding-bitshifts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![feature(negate_unsigned)]
1112
#![deny(exceeding_bitshifts)]
1213
#![allow(unused_variables)]
1314
#![allow(dead_code)]

src/test/compile-fail/lint-type-limits.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![feature(negate_unsigned)]
1112
#![allow(dead_code)]
1213

1314
// compile-flags: -D unused-comparisons

0 commit comments

Comments
 (0)