diff options
| author | Rejyr <jerrylwang123@gmail.com> | 2022-08-20 12:30:49 -0400 |
|---|---|---|
| committer | Rejyr <jerrylwang123@gmail.com> | 2022-08-22 08:24:14 -0400 |
| commit | dbe838079ca9ec3ea76e196cccd68754fe1bbd70 (patch) | |
| tree | ee09fdb8b729890e5628e58258f4671e419b8396 /compiler/rustc_lint | |
| parent | 5d302d11483a7313742d24e024928a37268ed4bd (diff) | |
| download | rust-dbe838079ca9ec3ea76e196cccd68754fe1bbd70.tar.gz rust-dbe838079ca9ec3ea76e196cccd68754fe1bbd70.zip | |
rename: `UnknownTool` to `UnknownToolInScopedLint`
Diffstat (limited to 'compiler/rustc_lint')
| -rw-r--r-- | compiler/rustc_lint/src/errors.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_lint/src/levels.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_lint/src/errors.rs b/compiler/rustc_lint/src/errors.rs index 569f68bd5e5..0f8b8e174d8 100644 --- a/compiler/rustc_lint/src/errors.rs +++ b/compiler/rustc_lint/src/errors.rs @@ -61,8 +61,8 @@ pub enum MalformedAttributeSub { } #[derive(SessionDiagnostic)] -#[error(lint::unknown_tool, code = "E0710")] -pub struct UnknownTool { +#[error(lint::unknown_tool_in_scoped_lint, code = "E0710")] +pub struct UnknownToolInScopedLint { #[primary_span] pub span: Option<Span>, pub tool_name: Symbol, diff --git a/compiler/rustc_lint/src/levels.rs b/compiler/rustc_lint/src/levels.rs index 2bafe64c139..41d89229009 100644 --- a/compiler/rustc_lint/src/levels.rs +++ b/compiler/rustc_lint/src/levels.rs @@ -28,7 +28,7 @@ use tracing::debug; use crate::errors::{ MalformedAttribute, MalformedAttributeSub, OverruledAttribute, OverruledAttributeSub, - UnknownTool, + UnknownToolInScopedLint, }; fn lint_levels(tcx: TyCtxt<'_>, (): ()) -> LintLevelMap { @@ -510,7 +510,7 @@ impl<'s> LintLevelsBuilder<'s> { } &CheckLintNameResult::NoTool => { - sess.emit_err(UnknownTool { + sess.emit_err(UnknownToolInScopedLint { span: tool_ident.map(|ident| ident.span), tool_name: tool_name.unwrap(), lint_name: pprust::path_to_string(&meta_item.path), |
