From 0bcd3b2e7903ef3664176133544fe11af6fcdfb3 Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 8 Jan 2017 03:57:27 +0100 Subject: [PATCH] Add gate-test- to some already existing tests --- src/test/compile-fail/gated-attr-literals.rs | 2 ++ src/test/compile-fail/gated-naked_functions.rs | 2 ++ src/test/compile-fail/never-disabled.rs | 2 ++ src/test/compile-fail/unadjusted-unstable.rs | 2 ++ src/tools/tidy/src/features.rs | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/test/compile-fail/gated-attr-literals.rs b/src/test/compile-fail/gated-attr-literals.rs index f3132d5593e6..04abc44caecd 100644 --- a/src/test/compile-fail/gated-attr-literals.rs +++ b/src/test/compile-fail/gated-attr-literals.rs @@ -10,6 +10,8 @@ // Check that literals in attributes don't parse without the feature gate. +// gate-test-attr_literals + #![feature(rustc_attrs)] #![allow(dead_code)] #![allow(unused_variables)] diff --git a/src/test/compile-fail/gated-naked_functions.rs b/src/test/compile-fail/gated-naked_functions.rs index ceb475e11921..5eb411810276 100644 --- a/src/test/compile-fail/gated-naked_functions.rs +++ b/src/test/compile-fail/gated-naked_functions.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// gate-test-naked_functions + #[naked] //~^ the `#[naked]` attribute is an experimental feature fn naked() {} diff --git a/src/test/compile-fail/never-disabled.rs b/src/test/compile-fail/never-disabled.rs index 11b9f412957e..fb6b34fcbb67 100644 --- a/src/test/compile-fail/never-disabled.rs +++ b/src/test/compile-fail/never-disabled.rs @@ -10,6 +10,8 @@ // Test that ! errors when used in illegal positions with feature(never_type) disabled +// gate-test-never_type + trait Foo { type Wub; } diff --git a/src/test/compile-fail/unadjusted-unstable.rs b/src/test/compile-fail/unadjusted-unstable.rs index 501f4451ed8d..2c23050085d8 100644 --- a/src/test/compile-fail/unadjusted-unstable.rs +++ b/src/test/compile-fail/unadjusted-unstable.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// gate-test-abi_unadjusted + extern "unadjusted" fn foo() { //~^ ERROR: unadjusted ABI is an implementation detail and perma-unstable } diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs index 290a1d9facb3..15763778d924 100644 --- a/src/tools/tidy/src/features.rs +++ b/src/tools/tidy/src/features.rs @@ -166,7 +166,7 @@ pub fn check(path: &Path, bad: &mut bool) { .count(); // FIXME get this number down to zero. - let gate_untested_expected = 98; + let gate_untested_expected = 94; if gate_untested != gate_untested_expected { print!("Expected {} gate untested features, but found {}. ",