Skip to content

Commit 107170b

Browse files
committed
Remove unused tool_name.
1 parent 3cb1811 commit 107170b

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
@@ -621,7 +621,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
621621
.name,
622622
span: sp,
623623
reason,
624-
tool: tool_name,
625624
};
626625
for &id in *ids {
627626
if self.check_gated_lint(id, attr.span) {
@@ -639,7 +638,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
639638
name: Symbol::intern(complete_name),
640639
span: sp,
641640
reason,
642-
tool: tool_name,
643641
};
644642
for &id in ids {
645643
if self.check_gated_lint(id, attr.span) {
@@ -681,7 +679,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
681679
name: Symbol::intern(&new_lint_name),
682680
span: sp,
683681
reason,
684-
tool: tool_name,
685682
};
686683
for id in ids {
687684
self.insert_spec(*id, (level, src));
@@ -779,7 +776,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
779776
name: Symbol::intern(&new_name),
780777
span: sp,
781778
reason,
782-
tool: tool_name,
783779
};
784780
for &id in ids {
785781
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
@@ -30,8 +30,6 @@ pub enum LintLevelSource {
3030
span: Span,
3131
/// RFC 2383 reason
3232
reason: Option<Symbol>,
33-
/// The lint tool. (e.g. rustdoc, clippy)
34-
tool: Option<Symbol>,
3533
},
3634

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

0 commit comments

Comments
 (0)