@@ -469,8 +469,9 @@ declare_features! (
469469 // Integer match exhaustiveness checking
470470 ( active, exhaustive_integer_patterns, "1.30.0" , Some ( 50907 ) , None ) ,
471471
472- // #[panic_implementation]
472+ // RFC 2070: #[panic_implementation] / #[panic_handler ]
473473 ( active, panic_implementation, "1.28.0" , Some ( 44489 ) , None ) ,
474+ ( active, panic_handler, "1.30.0" , Some ( 44489 ) , None ) ,
474475
475476 // #[doc(keyword = "...")]
476477 ( active, doc_keyword, "1.28.0" , Some ( 51315 ) , None ) ,
@@ -1109,11 +1110,20 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
11091110 "infer 'static lifetime requirements" ,
11101111 cfg_fn ! ( infer_static_outlives_requirements) ) ) ,
11111112
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+
11121122 // 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 ) ) ) ,
11171127
11181128 ( "alloc_error_handler" , Normal , Gated ( Stability :: Unstable ,
11191129 "alloc_error_handler" ,
0 commit comments