@@ -350,7 +350,7 @@ 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,
@@ -650,7 +650,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
650
650
) ,
651
651
652
652
// Probably temporary component of min_generic_const_args.
653
- // `#[type_const] const ASSOC: usize;`
653
+ // `#[type_const]` const ASSOC: usize;`
654
654
gated ! (
655
655
type_const, Normal , template!( Word ) , ErrorFollowing ,
656
656
EncodeCrossCrate :: Yes , min_generic_const_args, experimental!( type_const) ,
@@ -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 ) ,
@@ -849,7 +849,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
849
849
NameValueStr : "message"
850
850
) ,
851
851
ErrorFollowing , EncodeCrossCrate :: Yes ,
852
- "see `#[diagnostic::on_unimplemented] for the stable equivalent of this attribute"
852
+ "see `#[diagnostic::on_unimplemented]` for the stable equivalent of this attribute"
853
853
) ,
854
854
rustc_attr ! (
855
855
rustc_confusables, Normal ,
@@ -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 ,
@@ -989,7 +988,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
989
988
) ,
990
989
rustc_attr ! (
991
990
rustc_coherence_is_core, AttributeType :: CrateLevel , template!( Word ) , ErrorFollowing , EncodeCrossCrate :: No ,
992
- "#![rustc_coherence_is_core] allows inherent methods on builtin types, only intended to be used in `core`."
991
+ "` #![rustc_coherence_is_core]` allows inherent methods on builtin types, only intended to be used in `core`."
993
992
) ,
994
993
rustc_attr ! (
995
994
rustc_coinductive, AttributeType :: Normal , template!( Word ) , WarnFollowing , EncodeCrossCrate :: No ,
@@ -1112,7 +1111,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
1112
1111
) ,
1113
1112
rustc_attr ! (
1114
1113
rustc_force_inline, Normal , template!( Word , NameValueStr : "reason" ) , WarnFollowing , EncodeCrossCrate :: Yes ,
1115
- "#[rustc_force_inline] forces a free function to be inlined"
1114
+ "` #[rustc_force_inline]` forces a free function to be inlined"
1116
1115
) ,
1117
1116
1118
1117
// ==========================================================================
0 commit comments