@@ -328,7 +328,7 @@ impl UnsafeCode {
328
328
cx. struct_span_lint ( UNSAFE_CODE , span, decorate) ;
329
329
}
330
330
331
- fn report_overriden_symbol_name ( & self , cx : & EarlyContext < ' _ > , span : Span , msg : & str ) {
331
+ fn report_overridden_symbol_name ( & self , cx : & EarlyContext < ' _ > , span : Span , msg : & str ) {
332
332
self . report_unsafe ( cx, span, |lint| {
333
333
lint. build ( msg)
334
334
. note (
@@ -380,14 +380,14 @@ impl EarlyLintPass for UnsafeCode {
380
380
381
381
ast:: ItemKind :: Fn ( ..) => {
382
382
if let Some ( attr) = cx. sess ( ) . find_by_name ( & it. attrs , sym:: no_mangle) {
383
- self . report_overriden_symbol_name (
383
+ self . report_overridden_symbol_name (
384
384
cx,
385
385
attr. span ,
386
386
"declaration of a `no_mangle` function" ,
387
387
) ;
388
388
}
389
389
if let Some ( attr) = cx. sess ( ) . find_by_name ( & it. attrs , sym:: export_name) {
390
- self . report_overriden_symbol_name (
390
+ self . report_overridden_symbol_name (
391
391
cx,
392
392
attr. span ,
393
393
"declaration of a function with `export_name`" ,
@@ -397,14 +397,14 @@ impl EarlyLintPass for UnsafeCode {
397
397
398
398
ast:: ItemKind :: Static ( ..) => {
399
399
if let Some ( attr) = cx. sess ( ) . find_by_name ( & it. attrs , sym:: no_mangle) {
400
- self . report_overriden_symbol_name (
400
+ self . report_overridden_symbol_name (
401
401
cx,
402
402
attr. span ,
403
403
"declaration of a `no_mangle` static" ,
404
404
) ;
405
405
}
406
406
if let Some ( attr) = cx. sess ( ) . find_by_name ( & it. attrs , sym:: export_name) {
407
- self . report_overriden_symbol_name (
407
+ self . report_overridden_symbol_name (
408
408
cx,
409
409
attr. span ,
410
410
"declaration of a static with `export_name`" ,
@@ -419,14 +419,14 @@ impl EarlyLintPass for UnsafeCode {
419
419
fn check_impl_item ( & mut self , cx : & EarlyContext < ' _ > , it : & ast:: AssocItem ) {
420
420
if let ast:: AssocItemKind :: Fn ( ..) = it. kind {
421
421
if let Some ( attr) = cx. sess ( ) . find_by_name ( & it. attrs , sym:: no_mangle) {
422
- self . report_overriden_symbol_name (
422
+ self . report_overridden_symbol_name (
423
423
cx,
424
424
attr. span ,
425
425
"declaration of a `no_mangle` method" ,
426
426
) ;
427
427
}
428
428
if let Some ( attr) = cx. sess ( ) . find_by_name ( & it. attrs , sym:: export_name) {
429
- self . report_overriden_symbol_name (
429
+ self . report_overridden_symbol_name (
430
430
cx,
431
431
attr. span ,
432
432
"declaration of a method with `export_name`" ,
0 commit comments