mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
Remove unused tool_name.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user