Skip to content

Commit bb61842

Browse files
committed
Remove unused tool_name.
1 parent ad09abc commit bb61842

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

compiler/rustc_lint/src/levels.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
692692
.name,
693693
span: sp,
694694
reason,
695-
tool: tool_name,
696695
};
697696
for &id in *ids {
698697
if self.check_gated_lint(id, attr.span) {
@@ -710,7 +709,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
710709
name: Symbol::intern(complete_name),
711710
span: sp,
712711
reason,
713-
tool: tool_name,
714712
};
715713
for &id in ids {
716714
if self.check_gated_lint(id, attr.span) {
@@ -754,7 +752,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
754752
name: Symbol::intern(&new_lint_name),
755753
span: sp,
756754
reason,
757-
tool: tool_name,
758755
};
759756
for id in ids {
760757
self.insert_spec(*id, (level, src));
@@ -845,7 +842,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
845842
name: Symbol::intern(&new_name),
846843
span: sp,
847844
reason,
848-
tool: tool_name,
849845
};
850846
for &id in ids {
851847
if self.check_gated_lint(id, attr.span) {

compiler/rustc_middle/src/lint.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ pub enum LintLevelSource {
2727
span: Span,
2828
/// RFC 2383 reason
2929
reason: Option<Symbol>,
30-
/// The lint tool. (e.g. rustdoc, clippy)
31-
tool: Option<Symbol>,
3230
},
3331

3432
/// Lint level was set by a command-line flag.

0 commit comments

Comments
 (0)