Skip to content

Commit dbe8380

Browse files
committed
rename: UnknownTool to UnknownToolInScopedLint
1 parent 5d302d1 commit dbe8380

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler/rustc_error_messages/locales/en-US/lint.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,5 +412,5 @@ lint_reason_must_be_string_literal = reason must be a string literal
412412
413413
lint_reason_must_come_last = reason in lint attribute must come last
414414
415-
lint_unknown_tool = unknown tool name `{$tool_name}` found in scoped lint: `{$tool_name}::{$lint_name}`
415+
lint_unknown_tool_in_scoped_lint = unknown tool name `{$tool_name}` found in scoped lint: `{$tool_name}::{$lint_name}`
416416
.help = add `#![register_tool({$tool_name})]` to the crate root

compiler/rustc_lint/src/errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ pub enum MalformedAttributeSub {
6161
}
6262

6363
#[derive(SessionDiagnostic)]
64-
#[error(lint::unknown_tool, code = "E0710")]
65-
pub struct UnknownTool {
64+
#[error(lint::unknown_tool_in_scoped_lint, code = "E0710")]
65+
pub struct UnknownToolInScopedLint {
6666
#[primary_span]
6767
pub span: Option<Span>,
6868
pub tool_name: Symbol,

compiler/rustc_lint/src/levels.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use tracing::debug;
2828

2929
use crate::errors::{
3030
MalformedAttribute, MalformedAttributeSub, OverruledAttribute, OverruledAttributeSub,
31-
UnknownTool,
31+
UnknownToolInScopedLint,
3232
};
3333

3434
fn lint_levels(tcx: TyCtxt<'_>, (): ()) -> LintLevelMap {
@@ -510,7 +510,7 @@ impl<'s> LintLevelsBuilder<'s> {
510510
}
511511

512512
&CheckLintNameResult::NoTool => {
513-
sess.emit_err(UnknownTool {
513+
sess.emit_err(UnknownToolInScopedLint {
514514
span: tool_ident.map(|ident| ident.span),
515515
tool_name: tool_name.unwrap(),
516516
lint_name: pprust::path_to_string(&meta_item.path),

0 commit comments

Comments
 (0)