Skip to content

Commit 8e5a302

Browse files
author
Paul Woolcock
committed
Add a feature gate for the #[allow_fail] attribute
1 parent 7ad9537 commit 8e5a302

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/libsyntax/feature_gate.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ declare_features! (
354354

355355
// rustc internal
356356
(active, abi_thiscall, "1.19.0", None),
357+
358+
// Allows a test to fail without failing the whole suite
359+
(active, allow_fail, "1.19.0", Some(42219)),
357360
);
358361

359362
declare_features! (
@@ -534,7 +537,6 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
534537
("derive", Normal, Ungated),
535538
("should_panic", Normal, Ungated),
536539
("ignore", Normal, Ungated),
537-
("allow_fail", Normal, Ungated),
538540
("no_implicit_prelude", Normal, Ungated),
539541
("reexport_test_harness_main", Normal, Ungated),
540542
("link_args", Normal, Ungated),
@@ -813,6 +815,11 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
813815
"used internally by rustc",
814816
cfg_fn!(rustc_attrs))),
815817

818+
("allow_fail", Normal, Gated(Stability::Unstable,
819+
"allow_fail",
820+
"allow_fail attribute is currently unstable",
821+
cfg_fn!(allow_fail))),
822+
816823
// Crate level attributes
817824
("crate_name", CrateLevel, Ungated),
818825
("crate_type", CrateLevel, Ungated),

0 commit comments

Comments
 (0)