@@ -682,7 +682,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
682
682
sub,
683
683
} ) ;
684
684
} else {
685
- self . emit_spanned_lint (
685
+ self . emit_span_lint (
686
686
FORBIDDEN_LINT_GROUPS ,
687
687
src. span ( ) . into ( ) ,
688
688
OverruledAttributeLint {
@@ -925,7 +925,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
925
925
}
926
926
Err ( ( Some ( ids) , ref new_lint_name) ) => {
927
927
let lint = builtin:: RENAMED_AND_REMOVED_LINTS ;
928
- self . emit_spanned_lint (
928
+ self . emit_span_lint (
929
929
lint,
930
930
sp. into ( ) ,
931
931
DeprecatedLintName {
@@ -976,13 +976,13 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
976
976
RenamedLintSuggestion :: WithSpan { suggestion : sp, replace } ;
977
977
let name = tool_ident. map ( |tool| format ! ( "{tool}::{name}" ) ) . unwrap_or ( name) ;
978
978
let lint = RenamedLint { name : name. as_str ( ) , suggestion } ;
979
- self . emit_spanned_lint ( RENAMED_AND_REMOVED_LINTS , sp. into ( ) , lint) ;
979
+ self . emit_span_lint ( RENAMED_AND_REMOVED_LINTS , sp. into ( ) , lint) ;
980
980
}
981
981
982
982
CheckLintNameResult :: Removed ( ref reason) => {
983
983
let name = tool_ident. map ( |tool| format ! ( "{tool}::{name}" ) ) . unwrap_or ( name) ;
984
984
let lint = RemovedLint { name : name. as_str ( ) , reason } ;
985
- self . emit_spanned_lint ( RENAMED_AND_REMOVED_LINTS , sp. into ( ) , lint) ;
985
+ self . emit_span_lint ( RENAMED_AND_REMOVED_LINTS , sp. into ( ) , lint) ;
986
986
}
987
987
988
988
CheckLintNameResult :: NoLint ( suggestion) => {
@@ -995,7 +995,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
995
995
UnknownLintSuggestion :: WithSpan { suggestion : sp, replace, from_rustc }
996
996
} ) ;
997
997
let lint = UnknownLint { name, suggestion } ;
998
- self . emit_spanned_lint ( UNKNOWN_LINTS , sp. into ( ) , lint) ;
998
+ self . emit_span_lint ( UNKNOWN_LINTS , sp. into ( ) , lint) ;
999
999
}
1000
1000
}
1001
1001
// If this lint was renamed, apply the new lint instead of ignoring the attribute.
@@ -1041,7 +1041,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
1041
1041
continue ;
1042
1042
} ;
1043
1043
1044
- self . emit_spanned_lint (
1044
+ self . emit_span_lint (
1045
1045
UNUSED_ATTRIBUTES ,
1046
1046
lint_attr_span. into ( ) ,
1047
1047
IgnoredUnlessCrateSpecified { level : level. as_str ( ) , name : lint_attr_name } ,
@@ -1111,7 +1111,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
1111
1111
}
1112
1112
1113
1113
#[ track_caller]
1114
- pub fn emit_spanned_lint (
1114
+ pub fn emit_span_lint (
1115
1115
& self ,
1116
1116
lint : & ' static Lint ,
1117
1117
span : MultiSpan ,
0 commit comments