]> git.lizzy.rs Git - rust.git/commitdiff
[Gate Tests] - marking feature tests
authorColm Seale <colm.seale@gmail.com>
Sun, 22 Jan 2017 16:35:15 +0000 (16:35 +0000)
committerColm Seale <colm.seale@gmail.com>
Sun, 22 Jan 2017 16:58:23 +0000 (16:58 +0000)
Removal of the lang feature gate tests whitelist #39059

r? @est31

src/test/compile-fail/attr-literals.rs
src/test/compile-fail/attr-on-generic-formals-are-visited.rs
src/test/compile-fail/gated-attr-literals.rs
src/test/compile-fail/macro-with-seps-err-msg.rs
src/test/compile-fail/struct-path-self-feature-gate.rs
src/test/compile-fail/type-parameter-invalid-lint.rs
src/tools/tidy/src/features.rs

index b54288035175d33c9a477d8279841fe374ad1c62..e77fde845ae16bb3faaef0df6ac92190e18686d0 100644 (file)
@@ -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)]
index c902cfdd756df839d288ac406290b2a1f7332cec..0d89c52d885f9022a85dfffaddd905ddd7914263 100644 (file)
@@ -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)]
 
index 04abc44caecd7e8324bd636c3d69f7dfcc17d0c7..b500bfc3c21390aa3255c242544a2b951844a7f1 100644 (file)
@@ -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)]
index d5fc9a510f0db709c61d06e5f942ecb4c678051f..6cc682bde997f123ebfaa2fd78da40bc2d9aad9d 100644 (file)
@@ -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
index a2050182a7e303f80ef4dbad84cbf4cea1a12581..c40d0574955919351ab47a6747376751514b7997 100644 (file)
@@ -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 {
index b99ef9258049aa86e2e33df840b106fd884d7e75..a2c8116c9ba1c7c186057dced23a89900b232e97 100644 (file)
@@ -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)]
 
index 9e365456a6c0dbda0322f38d523ef9020f5ab814..f540dc3d3e6ad9da782f7f222d2c0fb0961ad5fb 100644 (file)
@@ -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"