Skip to content

Commit af3e342

Browse files
committed
Rename LintLevelsBuilder::emit_spanned_lint as LintLevelsBuilder::emit_span_lint.
1 parent 8197991 commit af3e342

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

compiler/rustc_lint/src/levels.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
682682
sub,
683683
});
684684
} else {
685-
self.emit_spanned_lint(
685+
self.emit_span_lint(
686686
FORBIDDEN_LINT_GROUPS,
687687
src.span().into(),
688688
OverruledAttributeLint {
@@ -925,7 +925,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
925925
}
926926
Err((Some(ids), ref new_lint_name)) => {
927927
let lint = builtin::RENAMED_AND_REMOVED_LINTS;
928-
self.emit_spanned_lint(
928+
self.emit_span_lint(
929929
lint,
930930
sp.into(),
931931
DeprecatedLintName {
@@ -976,13 +976,13 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
976976
RenamedLintSuggestion::WithSpan { suggestion: sp, replace };
977977
let name = tool_ident.map(|tool| format!("{tool}::{name}")).unwrap_or(name);
978978
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);
980980
}
981981

982982
CheckLintNameResult::Removed(ref reason) => {
983983
let name = tool_ident.map(|tool| format!("{tool}::{name}")).unwrap_or(name);
984984
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);
986986
}
987987

988988
CheckLintNameResult::NoLint(suggestion) => {
@@ -995,7 +995,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
995995
UnknownLintSuggestion::WithSpan { suggestion: sp, replace, from_rustc }
996996
});
997997
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);
999999
}
10001000
}
10011001
// 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> {
10411041
continue;
10421042
};
10431043

1044-
self.emit_spanned_lint(
1044+
self.emit_span_lint(
10451045
UNUSED_ATTRIBUTES,
10461046
lint_attr_span.into(),
10471047
IgnoredUnlessCrateSpecified { level: level.as_str(), name: lint_attr_name },
@@ -1111,7 +1111,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
11111111
}
11121112

11131113
#[track_caller]
1114-
pub fn emit_spanned_lint(
1114+
pub fn emit_span_lint(
11151115
&self,
11161116
lint: &'static Lint,
11171117
span: MultiSpan,

0 commit comments

Comments
 (0)