@@ -469,8 +469,9 @@ declare_features! (
469
469
// Integer match exhaustiveness checking
470
470
( active, exhaustive_integer_patterns, "1.30.0" , Some ( 50907 ) , None ) ,
471
471
472
- // #[panic_implementation]
472
+ // RFC 2070: #[panic_implementation] / #[panic_handler ]
473
473
( active, panic_implementation, "1.28.0" , Some ( 44489 ) , None ) ,
474
+ ( active, panic_handler, "1.30.0" , Some ( 44489 ) , None ) ,
474
475
475
476
// #[doc(keyword = "...")]
476
477
( active, doc_keyword, "1.28.0" , Some ( 51315 ) , None ) ,
@@ -1109,11 +1110,20 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
1109
1110
"infer 'static lifetime requirements" ,
1110
1111
cfg_fn ! ( infer_static_outlives_requirements) ) ) ,
1111
1112
1113
+ // RFC 2070 (deprecated attribute name)
1114
+ ( "panic_implementation" ,
1115
+ Normal ,
1116
+ Gated ( Stability :: Deprecated ( "https://github.com/rust-lang/rust/issues/44489\
1117
+ #issuecomment-415140224") ,
1118
+ "panic_implementation" ,
1119
+ "This attribute was renamed to `panic_handler`" ,
1120
+ cfg_fn ! ( panic_implementation) ) ) ,
1121
+
1112
1122
// RFC 2070
1113
- ( "panic_implementation " , Normal , Gated ( Stability :: Unstable ,
1114
- "panic_implementation ",
1115
- "#[panic_implementation ] is an unstable feature" ,
1116
- cfg_fn ! ( panic_implementation ) ) ) ,
1123
+ ( "panic_handler " , Normal , Gated ( Stability :: Unstable ,
1124
+ "panic_handler ",
1125
+ "#[panic_handler ] is an unstable feature" ,
1126
+ cfg_fn ! ( panic_handler ) ) ) ,
1117
1127
1118
1128
( "alloc_error_handler" , Normal , Gated ( Stability :: Unstable ,
1119
1129
"alloc_error_handler" ,
0 commit comments