1
Fork 0

rename: UnknownTool to UnknownToolInScopedLint

This commit is contained in:
Rejyr 2022-08-20 12:30:49 -04:00
parent 5d302d1148
commit dbe838079c
3 changed files with 5 additions and 5 deletions

View file

@ -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),