about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2017-06-23 09:43:28 -0400
committerPaul Woolcock <paul@woolcock.us>2017-06-24 12:08:16 -0400
commit8e5a3023c9ef299be6a617bca55ad16d12ce1036 (patch)
treea8de93fbddd240023ef3353477a22bf5f612943f
parent7ad95378128bb267885ea17001af32388d451523 (diff)
downloadrust-8e5a3023c9ef299be6a617bca55ad16d12ce1036.tar.gz
rust-8e5a3023c9ef299be6a617bca55ad16d12ce1036.zip
Add a feature gate for the `#[allow_fail]` attribute
-rw-r--r--src/libsyntax/feature_gate.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 07db5b83331..74bf19b841e 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -354,6 +354,9 @@ declare_features! (
 
     // rustc internal
     (active, abi_thiscall, "1.19.0", None),
+
+    // Allows a test to fail without failing the whole suite
+    (active, allow_fail, "1.19.0", Some(42219)),
 );
 
 declare_features! (
@@ -534,7 +537,6 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
     ("derive", Normal, Ungated),
     ("should_panic", Normal, Ungated),
     ("ignore", Normal, Ungated),
-    ("allow_fail", Normal, Ungated),
     ("no_implicit_prelude", Normal, Ungated),
     ("reexport_test_harness_main", Normal, Ungated),
     ("link_args", Normal, Ungated),
@@ -813,6 +815,11 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
                                              "used internally by rustc",
                                              cfg_fn!(rustc_attrs))),
 
+    ("allow_fail", Normal, Gated(Stability::Unstable,
+                                 "allow_fail",
+                                 "allow_fail attribute is currently unstable",
+                                 cfg_fn!(allow_fail))),
+
     // Crate level attributes
     ("crate_name", CrateLevel, Ungated),
     ("crate_type", CrateLevel, Ungated),