rustc_lint: Reuse the set of registered tools from resolver
This commit is contained in:
parent
82f613ee3b
commit
245d559a90
@ -580,7 +580,7 @@ fn get_lint_group_and_level_or_lint(
|
||||
) -> Option<(String, &'static str)> {
|
||||
let result = cx
|
||||
.lint_store
|
||||
.check_lint_name(cx.sess(), lint_name, Some(sym::clippy), &[]);
|
||||
.check_lint_name(lint_name, Some(sym::clippy), &[]);
|
||||
if let CheckLintNameResult::Tool(Ok(lint_lst)) = result {
|
||||
if let Some(group) = get_lint_group(cx, lint_lst[0]) {
|
||||
if EXCLUDED_LINT_GROUPS.contains(&group.as_str()) {
|
||||
|
Loading…
Reference in New Issue
Block a user