diff options
| author | Colm Seale <colm.seale@gmail.com> | 2017-01-22 16:35:15 +0000 |
|---|---|---|
| committer | Colm Seale <colm.seale@gmail.com> | 2017-01-22 16:58:23 +0000 |
| commit | ddb602721354f5c6501aae9d3558699987710e2c (patch) | |
| tree | b5ea393d4ec21c0065d78e93eb0a11c5777143fc | |
| parent | 3ddc27025229c01bd1aeab9da3ebe34e3046da58 (diff) | |
| download | rust-ddb602721354f5c6501aae9d3558699987710e2c.tar.gz rust-ddb602721354f5c6501aae9d3558699987710e2c.zip | |
[Gate Tests] - marking feature tests
Removal of the lang feature gate tests whitelist #39059 r? @est31
| -rw-r--r-- | src/test/compile-fail/attr-literals.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/attr-on-generic-formals-are-visited.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/gated-attr-literals.rs | 1 | ||||
| -rw-r--r-- | src/test/compile-fail/macro-with-seps-err-msg.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/struct-path-self-feature-gate.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/type-parameter-invalid-lint.rs | 2 | ||||
| -rw-r--r-- | src/tools/tidy/src/features.rs | 6 |
7 files changed, 13 insertions, 4 deletions
diff --git a/src/test/compile-fail/attr-literals.rs b/src/test/compile-fail/attr-literals.rs index b5428803517..e77fde845ae 100644 --- a/src/test/compile-fail/attr-literals.rs +++ b/src/test/compile-fail/attr-literals.rs @@ -10,6 +10,8 @@ // Check that literals in attributes parse just fine. +// gate-test-custom_attribute + #![feature(rustc_attrs, attr_literals)] #![allow(dead_code)] #![allow(unused_variables)] diff --git a/src/test/compile-fail/attr-on-generic-formals-are-visited.rs b/src/test/compile-fail/attr-on-generic-formals-are-visited.rs index c902cfdd756..0d89c52d885 100644 --- a/src/test/compile-fail/attr-on-generic-formals-are-visited.rs +++ b/src/test/compile-fail/attr-on-generic-formals-are-visited.rs @@ -15,6 +15,8 @@ // checking feature-gating of the attributes themselves, not the // capability to parse such attributes in that context. +// gate-test-custom_attribute + #![feature(generic_param_attrs)] #![allow(dead_code)] diff --git a/src/test/compile-fail/gated-attr-literals.rs b/src/test/compile-fail/gated-attr-literals.rs index 04abc44caec..b500bfc3c21 100644 --- a/src/test/compile-fail/gated-attr-literals.rs +++ b/src/test/compile-fail/gated-attr-literals.rs @@ -11,6 +11,7 @@ // Check that literals in attributes don't parse without the feature gate. // gate-test-attr_literals +// gate-test-custom_attribute #![feature(rustc_attrs)] #![allow(dead_code)] diff --git a/src/test/compile-fail/macro-with-seps-err-msg.rs b/src/test/compile-fail/macro-with-seps-err-msg.rs index d5fc9a510f0..6cc682bde99 100644 --- a/src/test/compile-fail/macro-with-seps-err-msg.rs +++ b/src/test/compile-fail/macro-with-seps-err-msg.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// gate-test-use_extern_macros + fn main() { globnar::brotz!(); //~ ERROR non-ident macro paths are experimental ::foo!(); //~ ERROR non-ident macro paths are experimental diff --git a/src/test/compile-fail/struct-path-self-feature-gate.rs b/src/test/compile-fail/struct-path-self-feature-gate.rs index a2050182a7e..c40d0574955 100644 --- a/src/test/compile-fail/struct-path-self-feature-gate.rs +++ b/src/test/compile-fail/struct-path-self-feature-gate.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// gate-test-more_struct_aliases + struct S; trait Tr { diff --git a/src/test/compile-fail/type-parameter-invalid-lint.rs b/src/test/compile-fail/type-parameter-invalid-lint.rs index b99ef925804..a2c8116c9ba 100644 --- a/src/test/compile-fail/type-parameter-invalid-lint.rs +++ b/src/test/compile-fail/type-parameter-invalid-lint.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// gate-test-default_type_parameter_fallback + #![deny(future_incompatible)] #![allow(dead_code)] diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs index 9e365456a6c..f540dc3d3e6 100644 --- a/src/tools/tidy/src/features.rs +++ b/src/tools/tidy/src/features.rs @@ -166,10 +166,8 @@ pub fn check(path: &Path, bad: &mut bool) { // FIXME get this whitelist empty. let whitelist = vec