@@ -102,7 +102,7 @@ impl ItemLikeVisitor<'tcx> for Collector<'tcx> {
102102 match item. value_str ( ) {
103103 Some ( s) => lib. wasm_import_module = Some ( s) ,
104104 None => {
105- let msg = "must be of the form #[link(wasm_import_module = \" ...\" )]" ;
105+ let msg = "must be of the form ` #[link(wasm_import_module = \" ...\" )]` " ;
106106 self . tcx . sess . span_err ( item. span ( ) , msg) ;
107107 }
108108 }
@@ -117,7 +117,7 @@ impl ItemLikeVisitor<'tcx> for Collector<'tcx> {
117117 let requires_name = kind_specified || lib. wasm_import_module . is_none ( ) ;
118118 if lib. name . is_none ( ) && requires_name {
119119 struct_span_err ! ( self . tcx. sess, m. span, E0459 ,
120- "#[link(...)] specified without \
120+ "` #[link(...)]` specified without \
121121 `name = \" foo\" `")
122122 . span_label ( m. span , "missing `name` argument" )
123123 . emit ( ) ;
@@ -136,7 +136,7 @@ impl Collector<'tcx> {
136136 match span {
137137 Some ( span) => {
138138 struct_span_err ! ( self . tcx. sess, span, E0454 ,
139- "#[link(name = \" \" )] given with empty name" )
139+ "` #[link(name = \" \" )]` given with empty name" )
140140 . span_label ( span, "empty name given" )
141141 . emit ( ) ;
142142 }
@@ -187,7 +187,7 @@ impl Collector<'tcx> {
187187 & format ! ( "an empty renaming target was specified for library `{}`" , name) ) ;
188188 } else if !any_duplicate {
189189 self . tcx . sess . err ( & format ! ( "renaming of the library `{}` was specified, \
190- however this crate contains no #[link(...)] \
190+ however this crate contains no ` #[link(...)]` \
191191 attributes referencing this library.", name) ) ;
192192 } else if renames. contains ( name) {
193193 self . tcx . sess . err ( & format ! ( "multiple renamings were \
0 commit comments