@@ -354,6 +354,9 @@ declare_features! (
354
354
355
355
// rustc internal
356
356
( 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 ) ) ,
357
360
) ;
358
361
359
362
declare_features ! (
@@ -534,7 +537,6 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
534
537
( "derive" , Normal , Ungated ) ,
535
538
( "should_panic" , Normal , Ungated ) ,
536
539
( "ignore" , Normal , Ungated ) ,
537
- ( "allow_fail" , Normal , Ungated ) ,
538
540
( "no_implicit_prelude" , Normal , Ungated ) ,
539
541
( "reexport_test_harness_main" , Normal , Ungated ) ,
540
542
( "link_args" , Normal , Ungated ) ,
@@ -813,6 +815,11 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
813
815
"used internally by rustc" ,
814
816
cfg_fn ! ( rustc_attrs) ) ) ,
815
817
818
+ ( "allow_fail" , Normal , Gated ( Stability :: Unstable ,
819
+ "allow_fail" ,
820
+ "allow_fail attribute is currently unstable" ,
821
+ cfg_fn ! ( allow_fail) ) ) ,
822
+
816
823
// Crate level attributes
817
824
( "crate_name" , CrateLevel , Ungated ) ,
818
825
( "crate_type" , CrateLevel , Ungated ) ,
0 commit comments