@@ -350,14 +350,14 @@ macro_rules! rustc_attr {
350350 } ,
351351 }
352352 } ;
353- ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $( $note: expr) ? $( , ) ?) => {
353+ ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $( $note: expr) , ? $( , ) ?) => {
354354 rustc_attr!(
355355 $attr,
356356 $typ,
357357 $tpl,
358358 $duplicates,
359359 $encode_cross_crate,
360- [ $( $note) ?]
360+ [ $( $note) , ?]
361361 )
362362 } ;
363363}
@@ -705,7 +705,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
705705 rustc_attr ! (
706706 rustc_deprecated_safe_2024, Normal , template!( List : r#"audit_that = "...""# ) ,
707707 ErrorFollowing , EncodeCrossCrate :: Yes ,
708- "`#[rustc_deprecated_safe_2024] is used to declare functions unsafe across the edition 2024 boundary" ,
708+ "`#[rustc_deprecated_safe_2024]` is used to declare functions unsafe across the edition 2024 boundary" ,
709709 ) ,
710710 rustc_attr ! (
711711 rustc_pub_transparent, Normal , template!( Word ) ,
@@ -912,8 +912,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
912912 // Do not const-check this function's body. It will always get replaced during CTFE.
913913 rustc_attr ! (
914914 rustc_do_not_const_check, Normal , template!( Word ) , WarnFollowing ,
915- EncodeCrossCrate :: Yes , "`#[rustc_do_not_const_check] skips const-check for this function's body.\
916- It will always get replaced during CTFE",
915+ EncodeCrossCrate :: Yes , "`#[rustc_do_not_const_check] skips const-check for this function's body" ,
917916 ) ,
918917 rustc_attr ! (
919918 rustc_const_panic_str, Normal , template!( Word ) , WarnFollowing ,
0 commit comments