File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -290,14 +290,14 @@ impl EarlyLintPass for UnsafeCode {
290
290
}
291
291
292
292
ast:: ItemKind :: Fn ( ..) => {
293
- if let Some ( attr) = attr :: find_by_name ( & it. attrs , sym:: no_mangle) {
293
+ if let Some ( attr) = cx . sess ( ) . find_by_name ( & it. attrs , sym:: no_mangle) {
294
294
self . report_overriden_symbol_name (
295
295
cx,
296
296
attr. span ,
297
297
"declaration of a `no_mangle` function" ,
298
298
) ;
299
299
}
300
- if let Some ( attr) = attr :: find_by_name ( & it. attrs , sym:: export_name) {
300
+ if let Some ( attr) = cx . sess ( ) . find_by_name ( & it. attrs , sym:: export_name) {
301
301
self . report_overriden_symbol_name (
302
302
cx,
303
303
attr. span ,
@@ -307,14 +307,14 @@ impl EarlyLintPass for UnsafeCode {
307
307
}
308
308
309
309
ast:: ItemKind :: Static ( ..) => {
310
- if let Some ( attr) = attr :: find_by_name ( & it. attrs , sym:: no_mangle) {
310
+ if let Some ( attr) = cx . sess ( ) . find_by_name ( & it. attrs , sym:: no_mangle) {
311
311
self . report_overriden_symbol_name (
312
312
cx,
313
313
attr. span ,
314
314
"declaration of a `no_mangle` static" ,
315
315
) ;
316
316
}
317
- if let Some ( attr) = attr :: find_by_name ( & it. attrs , sym:: export_name) {
317
+ if let Some ( attr) = cx . sess ( ) . find_by_name ( & it. attrs , sym:: export_name) {
318
318
self . report_overriden_symbol_name (
319
319
cx,
320
320
attr. span ,
You can’t perform that action at this time.
0 commit comments