Run rustfmt

This commit is contained in:
flip1995 2019-08-16 19:05:44 +02:00
parent f74d9db7f4
commit 2456b355f2
No known key found for this signature in database
GPG key ID: 693086869D506637

View file

@ -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(