@@ -102,7 +102,7 @@ impl ItemLikeVisitor<'tcx> for Collector<'tcx> {
102
102
match item. value_str ( ) {
103
103
Some ( s) => lib. wasm_import_module = Some ( s) ,
104
104
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 = \" ...\" )]` " ;
106
106
self . tcx . sess . span_err ( item. span ( ) , msg) ;
107
107
}
108
108
}
@@ -117,7 +117,7 @@ impl ItemLikeVisitor<'tcx> for Collector<'tcx> {
117
117
let requires_name = kind_specified || lib. wasm_import_module . is_none ( ) ;
118
118
if lib. name . is_none ( ) && requires_name {
119
119
struct_span_err ! ( self . tcx. sess, m. span, E0459 ,
120
- "#[link(...)] specified without \
120
+ "` #[link(...)]` specified without \
121
121
`name = \" foo\" `")
122
122
. span_label ( m. span , "missing `name` argument" )
123
123
. emit ( ) ;
@@ -136,7 +136,7 @@ impl Collector<'tcx> {
136
136
match span {
137
137
Some ( span) => {
138
138
struct_span_err ! ( self . tcx. sess, span, E0454 ,
139
- "#[link(name = \" \" )] given with empty name" )
139
+ "` #[link(name = \" \" )]` given with empty name" )
140
140
. span_label ( span, "empty name given" )
141
141
. emit ( ) ;
142
142
}
@@ -187,7 +187,7 @@ impl Collector<'tcx> {
187
187
& format ! ( "an empty renaming target was specified for library `{}`" , name) ) ;
188
188
} else if !any_duplicate {
189
189
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(...)]` \
191
191
attributes referencing this library.", name) ) ;
192
192
} else if renames. contains ( name) {
193
193
self . tcx . sess . err ( & format ! ( "multiple renamings were \
0 commit comments