Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
dirty workaround for rust-lang/rust#70344
Browse files Browse the repository at this point in the history
  • Loading branch information
floriangru committed Apr 1, 2020
1 parent fda60fa commit 7a4803c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/hacspec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Hacspec {
// Paths of len 1 correspond to items inside the crate, except when used in imports
return;
};
span_lint(cx, HACSPEC, path.span, &format!("[HACSPEC] Unauthorized item {}", path))
span_lint(cx, HACSPEC, path.span, &format!("[HACSPEC] Unauthorized item {:?}", path));
}

fn check_mod(&mut self, cx: &LateContext<'a, 'tcx>, m: &'tcx Mod<'tcx>, span: Span, _: HirId) {
Expand All @@ -93,7 +93,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Hacspec {
if allowed_path(&path.segments) {
continue;
};
span_lint(cx, HACSPEC, item.span, &format!("Unauthorized item {}", path))
span_lint(cx, HACSPEC, item.span, &format!("Unauthorized item {:?}", path))
}
}
}
Expand Down

0 comments on commit 7a4803c

Please sign in to comment.