@@ -472,8 +472,9 @@ declare_features! (
472472 // Integer match exhaustiveness checking
473473 ( active, exhaustive_integer_patterns, "1.30.0" , Some ( 50907 ) , None ) ,
474474
475- // #[panic_implementation]
475+ // RFC 2070: #[panic_implementation] / #[panic_handler ]
476476 ( active, panic_implementation, "1.28.0" , Some ( 44489 ) , None ) ,
477+ ( active, panic_handler, "1.30.0" , Some ( 44489 ) , None ) ,
477478
478479 // #[doc(keyword = "...")]
479480 ( active, doc_keyword, "1.28.0" , Some ( 51315 ) , None ) ,
@@ -1104,11 +1105,18 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
11041105 "infer 'static lifetime requirements" ,
11051106 cfg_fn ! ( infer_static_outlives_requirements) ) ) ,
11061107
1108+ // RFC 2070 (deprecated attribute name)
1109+ ( "panic_implementation" ,
1110+ Normal , Gated ( Stability :: Deprecated ( "https://github.com/rust-lang/rust/issues/44489#issuecomment-415140224" ) ,
1111+ "panic_implementation" ,
1112+ "This attribute was renamed to `panic_handler`" ,
1113+ cfg_fn ! ( panic_implementation) ) ) ,
1114+
11071115 // RFC 2070
1108- ( "panic_implementation " , Normal , Gated ( Stability :: Unstable ,
1109- "panic_implementation ",
1110- "#[panic_implementation ] is an unstable feature" ,
1111- cfg_fn ! ( panic_implementation ) ) ) ,
1116+ ( "panic_handler " , Normal , Gated ( Stability :: Unstable ,
1117+ "panic_handler ",
1118+ "#[panic_handler ] is an unstable feature" ,
1119+ cfg_fn ! ( panic_handler ) ) ) ,
11121120
11131121 ( "alloc_error_handler" , Normal , Gated ( Stability :: Unstable ,
11141122 "alloc_error_handler" ,
0 commit comments