From 07ff8ab8855b4d5ce0d547cfe3b1bf03e5f427eb Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Thu, 2 Apr 2015 01:43:54 +0200 Subject: [PATCH] fixes for fallout in tests/compile-fail --- src/test/compile-fail/const-eval-overflow.rs | 2 ++ src/test/compile-fail/enum-discrim-too-small.rs | 2 ++ src/test/compile-fail/lint-exceeding-bitshifts.rs | 1 + src/test/compile-fail/lint-type-limits.rs | 1 + 4 files changed, 6 insertions(+) diff --git a/src/test/compile-fail/const-eval-overflow.rs b/src/test/compile-fail/const-eval-overflow.rs index f647c43e1375..fb8726f900d0 100644 --- a/src/test/compile-fail/const-eval-overflow.rs +++ b/src/test/compile-fail/const-eval-overflow.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(negate_unsigned)] + #![allow(unused_imports)] // Note: the relevant lint pass here runs before some of the constant diff --git a/src/test/compile-fail/enum-discrim-too-small.rs b/src/test/compile-fail/enum-discrim-too-small.rs index 1d7794336a09..cdf7d026d5ee 100644 --- a/src/test/compile-fail/enum-discrim-too-small.rs +++ b/src/test/compile-fail/enum-discrim-too-small.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(negate_unsigned)] + #[repr(u8)] //~ NOTE discriminant type specified here enum Eu8 { Au8 = 23, diff --git a/src/test/compile-fail/lint-exceeding-bitshifts.rs b/src/test/compile-fail/lint-exceeding-bitshifts.rs index 171dedd5b2e5..1894064fd843 100644 --- a/src/test/compile-fail/lint-exceeding-bitshifts.rs +++ b/src/test/compile-fail/lint-exceeding-bitshifts.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(negate_unsigned)] #![deny(exceeding_bitshifts)] #![allow(unused_variables)] #![allow(dead_code)] diff --git a/src/test/compile-fail/lint-type-limits.rs b/src/test/compile-fail/lint-type-limits.rs index f36c726c8750..2ccfb5cd5201 100644 --- a/src/test/compile-fail/lint-type-limits.rs +++ b/src/test/compile-fail/lint-type-limits.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(negate_unsigned)] #![allow(dead_code)] // compile-flags: -D unused-comparisons