Skip to content

Commit 245d559

Browse files
committed
rustc_lint: Reuse the set of registered tools from resolver
1 parent 82f613e commit 245d559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/internal_lints/metadata_collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ fn get_lint_group_and_level_or_lint(
580580
) -> Option<(String, &'static str)> {
581581
let result = cx
582582
.lint_store
583-
.check_lint_name(cx.sess(), lint_name, Some(sym::clippy), &[]);
583+
.check_lint_name(lint_name, Some(sym::clippy), &[]);
584584
if let CheckLintNameResult::Tool(Ok(lint_lst)) = result {
585585
if let Some(group) = get_lint_group(cx, lint_lst[0]) {
586586
if EXCLUDED_LINT_GROUPS.contains(&group.as_str()) {

0 commit comments

Comments
 (0)