diff options
| author | est31 <MTest31@outlook.com> | 2017-01-08 03:57:27 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-01-12 23:53:02 +0100 |
| commit | 0bcd3b2e7903ef3664176133544fe11af6fcdfb3 (patch) | |
| tree | 2a889d0772b7607df8d1e1db936e975e4a08e80c | |
| parent | a13cecacb4f3ffd6faae2080046078ff53748815 (diff) | |
| download | rust-0bcd3b2e7903ef3664176133544fe11af6fcdfb3.tar.gz rust-0bcd3b2e7903ef3664176133544fe11af6fcdfb3.zip | |
Add gate-test- to some already existing tests
| -rw-r--r-- | src/test/compile-fail/gated-attr-literals.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/gated-naked_functions.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/never-disabled.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/unadjusted-unstable.rs | 2 | ||||
| -rw-r--r-- | src/tools/tidy/src/features.rs | 2 |
5 files changed, 9 insertions, 1 deletions
diff --git a/src/test/compile-fail/gated-attr-literals.rs b/src/test/compile-fail/gated-attr-literals.rs index f3132d5593e..04abc44caec 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 ceb475e1192..5eb41181027 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 11b9f412957..fb6b34fcbb6 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 501f4451ed8..2c23050085d 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 290a1d9facb..15763778d92 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 {}. ", |
