Remove unused tool_name.

This commit is contained in:
Camille GILLOT
2022-09-10 09:58:35 +02:00
parent ad09abc194
commit bb61842048
2 changed files with 0 additions and 6 deletions
-4
View File
@@ -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) {
-2
View File
@@ -27,8 +27,6 @@ pub enum LintLevelSource {
span: Span,
/// RFC 2383 reason
reason: Option<Symbol>,
/// The lint tool. (e.g. rustdoc, clippy)
tool: Option<Symbol>,
},
/// Lint level was set by a command-line flag.