@@ -350,14 +350,14 @@ macro_rules! rustc_attr {
350
350
} ,
351
351
}
352
352
} ;
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) , ? $( , ) ?) => {
354
354
rustc_attr!(
355
355
$attr,
356
356
$typ,
357
357
$tpl,
358
358
$duplicates,
359
359
$encode_cross_crate,
360
- [ $( $note) ?]
360
+ [ $( $note) , ?]
361
361
)
362
362
} ;
363
363
}
@@ -705,7 +705,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
705
705
rustc_attr ! (
706
706
rustc_deprecated_safe_2024, Normal , template!( List : r#"audit_that = "...""# ) ,
707
707
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" ,
709
709
) ,
710
710
rustc_attr ! (
711
711
rustc_pub_transparent, Normal , template!( Word ) ,
@@ -912,8 +912,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
912
912
// Do not const-check this function's body. It will always get replaced during CTFE.
913
913
rustc_attr ! (
914
914
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" ,
917
916
) ,
918
917
rustc_attr ! (
919
918
rustc_const_panic_str, Normal , template!( Word ) , WarnFollowing ,
0 commit comments