@@ -328,7 +328,7 @@ impl UnsafeCode {
328328 cx. struct_span_lint ( UNSAFE_CODE , span, decorate) ;
329329 }
330330
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 ) {
332332 self . report_unsafe ( cx, span, |lint| {
333333 lint. build ( msg)
334334 . note (
@@ -380,14 +380,14 @@ impl EarlyLintPass for UnsafeCode {
380380
381381 ast:: ItemKind :: Fn ( ..) => {
382382 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 (
384384 cx,
385385 attr. span ,
386386 "declaration of a `no_mangle` function" ,
387387 ) ;
388388 }
389389 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 (
391391 cx,
392392 attr. span ,
393393 "declaration of a function with `export_name`" ,
@@ -397,14 +397,14 @@ impl EarlyLintPass for UnsafeCode {
397397
398398 ast:: ItemKind :: Static ( ..) => {
399399 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 (
401401 cx,
402402 attr. span ,
403403 "declaration of a `no_mangle` static" ,
404404 ) ;
405405 }
406406 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 (
408408 cx,
409409 attr. span ,
410410 "declaration of a static with `export_name`" ,
@@ -419,14 +419,14 @@ impl EarlyLintPass for UnsafeCode {
419419 fn check_impl_item ( & mut self , cx : & EarlyContext < ' _ > , it : & ast:: AssocItem ) {
420420 if let ast:: AssocItemKind :: Fn ( ..) = it. kind {
421421 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 (
423423 cx,
424424 attr. span ,
425425 "declaration of a `no_mangle` method" ,
426426 ) ;
427427 }
428428 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 (
430430 cx,
431431 attr. span ,
432432 "declaration of a method with `export_name`" ,
0 commit comments