about summary refs log tree commit diff
diff options
context:
space:
mode:
authorColm Seale <colm.seale@gmail.com>2017-01-22 16:35:15 +0000
committerColm Seale <colm.seale@gmail.com>2017-01-22 16:58:23 +0000
commitddb602721354f5c6501aae9d3558699987710e2c (patch)
treeb5ea393d4ec21c0065d78e93eb0a11c5777143fc
parent3ddc27025229c01bd1aeab9da3ebe34e3046da58 (diff)
downloadrust-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.rs2
-rw-r--r--src/test/compile-fail/attr-on-generic-formals-are-visited.rs2
-rw-r--r--src/test/compile-fail/gated-attr-literals.rs1
-rw-r--r--src/test/compile-fail/macro-with-seps-err-msg.rs2
-rw-r--r--src/test/compile-fail/struct-path-self-feature-gate.rs2
-rw-r--r--src/test/compile-fail/type-parameter-invalid-lint.rs2
-rw-r--r--src/tools/tidy/src/features.rs6
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![
         "abi_ptx", "simd", "macro_reexport",
-        "more_struct_aliases", "static_recursion", "reflect",
-        "quote", "cfg_target_has_atomic", "custom_attribute",
-        "default_type_parameter_fallback",
-        "use_extern_macros", "staged_api", "const_indexing",
+        "static_recursion", "reflect", "quote",
+        "cfg_target_has_atomic", "staged_api", "const_indexing",
         "unboxed_closures", "stmt_expr_attributes",
         "cfg_target_thread_local", "unwind_attributes",
         "inclusive_range_syntax", "proc_macro"