mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 00:53:31 +00:00
Run rustfmt
This commit is contained in:
parent
f74d9db7f4
commit
2456b355f2
1 changed files with 1 additions and 4 deletions
|
@ -180,10 +180,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LintWithoutLintPass {
|
||||||
// not able to capture the error.
|
// not able to capture the error.
|
||||||
// Therefore, we need to climb the macro expansion tree and find the
|
// Therefore, we need to climb the macro expansion tree and find the
|
||||||
// actual span that invoked `declare_tool_lint!`:
|
// actual span that invoked `declare_tool_lint!`:
|
||||||
let lint_span = lint_span
|
let lint_span = lint_span.ctxt().outer_expn_data().call_site;
|
||||||
.ctxt()
|
|
||||||
.outer_expn_data()
|
|
||||||
.call_site;
|
|
||||||
|
|
||||||
if !self.registered_lints.contains(lint_name) {
|
if !self.registered_lints.contains(lint_name) {
|
||||||
span_lint(
|
span_lint(
|
||||||
|
|
Loading…
Reference in a new issue