@@ -350,7 +350,7 @@ 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,
@@ -650,7 +650,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
650650 ) ,
651651
652652 // Probably temporary component of min_generic_const_args.
653- // `#[type_const] const ASSOC: usize;`
653+ // `#[type_const]` const ASSOC: usize;`
654654 gated ! (
655655 type_const, Normal , template!( Word ) , ErrorFollowing ,
656656 EncodeCrossCrate :: Yes , min_generic_const_args, experimental!( type_const) ,
@@ -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 ) ,
@@ -849,7 +849,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
849849 NameValueStr : "message"
850850 ) ,
851851 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"
853853 ) ,
854854 rustc_attr ! (
855855 rustc_confusables, Normal ,
@@ -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 ,
@@ -989,7 +988,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
989988 ) ,
990989 rustc_attr ! (
991990 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`."
993992 ) ,
994993 rustc_attr ! (
995994 rustc_coinductive, AttributeType :: Normal , template!( Word ) , WarnFollowing , EncodeCrossCrate :: No ,
@@ -1112,7 +1111,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
11121111 ) ,
11131112 rustc_attr ! (
11141113 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"
11161115 ) ,
11171116
11181117 // ==========================================================================
0 commit comments