Remove unused tool_name.
This commit is contained in:
parent
3cb1811e45
commit
107170b9c3
2 changed files with 0 additions and 6 deletions
|
@ -621,7 +621,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
|
||||||
.name,
|
.name,
|
||||||
span: sp,
|
span: sp,
|
||||||
reason,
|
reason,
|
||||||
tool: tool_name,
|
|
||||||
};
|
};
|
||||||
for &id in *ids {
|
for &id in *ids {
|
||||||
if self.check_gated_lint(id, attr.span) {
|
if self.check_gated_lint(id, attr.span) {
|
||||||
|
@ -639,7 +638,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
|
||||||
name: Symbol::intern(complete_name),
|
name: Symbol::intern(complete_name),
|
||||||
span: sp,
|
span: sp,
|
||||||
reason,
|
reason,
|
||||||
tool: tool_name,
|
|
||||||
};
|
};
|
||||||
for &id in ids {
|
for &id in ids {
|
||||||
if self.check_gated_lint(id, attr.span) {
|
if self.check_gated_lint(id, attr.span) {
|
||||||
|
@ -681,7 +679,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
|
||||||
name: Symbol::intern(&new_lint_name),
|
name: Symbol::intern(&new_lint_name),
|
||||||
span: sp,
|
span: sp,
|
||||||
reason,
|
reason,
|
||||||
tool: tool_name,
|
|
||||||
};
|
};
|
||||||
for id in ids {
|
for id in ids {
|
||||||
self.insert_spec(*id, (level, src));
|
self.insert_spec(*id, (level, src));
|
||||||
|
@ -779,7 +776,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
|
||||||
name: Symbol::intern(&new_name),
|
name: Symbol::intern(&new_name),
|
||||||
span: sp,
|
span: sp,
|
||||||
reason,
|
reason,
|
||||||
tool: tool_name,
|
|
||||||
};
|
};
|
||||||
for &id in ids {
|
for &id in ids {
|
||||||
if self.check_gated_lint(id, attr.span) {
|
if self.check_gated_lint(id, attr.span) {
|
||||||
|
|
|
@ -30,8 +30,6 @@ pub enum LintLevelSource {
|
||||||
span: Span,
|
span: Span,
|
||||||
/// RFC 2383 reason
|
/// RFC 2383 reason
|
||||||
reason: Option<Symbol>,
|
reason: Option<Symbol>,
|
||||||
/// The lint tool. (e.g. rustdoc, clippy)
|
|
||||||
tool: Option<Symbol>,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/// Lint level was set by a command-line flag.
|
/// Lint level was set by a command-line flag.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue