From bb6184204813a83f6e39a3141b4cb9248237c8ed Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sat, 10 Sep 2022 09:58:35 +0200 Subject: [PATCH] Remove unused tool_name. --- compiler/rustc_lint/src/levels.rs | 4 ---- compiler/rustc_middle/src/lint.rs | 2 -- 2 files changed, 6 deletions(-) diff --git a/compiler/rustc_lint/src/levels.rs b/compiler/rustc_lint/src/levels.rs index 9281d57ac64b..eef342d4b07a 100644 --- a/compiler/rustc_lint/src/levels.rs +++ b/compiler/rustc_lint/src/levels.rs @@ -692,7 +692,6 @@ fn add(&mut self, attrs: &[ast::Attribute], is_crate_node: bool, source_hir_id: .name, span: sp, reason, - tool: tool_name, }; for &id in *ids { if self.check_gated_lint(id, attr.span) { @@ -710,7 +709,6 @@ fn add(&mut self, attrs: &[ast::Attribute], is_crate_node: bool, source_hir_id: name: Symbol::intern(complete_name), span: sp, reason, - tool: tool_name, }; for &id in ids { if self.check_gated_lint(id, attr.span) { @@ -754,7 +752,6 @@ fn add(&mut self, attrs: &[ast::Attribute], is_crate_node: bool, source_hir_id: name: Symbol::intern(&new_lint_name), span: sp, reason, - tool: tool_name, }; for id in ids { self.insert_spec(*id, (level, src)); @@ -845,7 +842,6 @@ fn add(&mut self, attrs: &[ast::Attribute], is_crate_node: bool, source_hir_id: name: Symbol::intern(&new_name), span: sp, reason, - tool: tool_name, }; for &id in ids { if self.check_gated_lint(id, attr.span) { diff --git a/compiler/rustc_middle/src/lint.rs b/compiler/rustc_middle/src/lint.rs index c43a4b7a42ee..4cb5ef791777 100644 --- a/compiler/rustc_middle/src/lint.rs +++ b/compiler/rustc_middle/src/lint.rs @@ -27,8 +27,6 @@ pub enum LintLevelSource { span: Span, /// RFC 2383 reason reason: Option, - /// The lint tool. (e.g. rustdoc, clippy) - tool: Option, }, /// Lint level was set by a command-line flag.