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

Commit 7a4803c

Browse files
committed
dirty workaround for rust-lang/rust#70344
1 parent fda60fa commit 7a4803c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/hacspec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Hacspec {
7676
// Paths of len 1 correspond to items inside the crate, except when used in imports
7777
return;
7878
};
79-
span_lint(cx, HACSPEC, path.span, &format!("[HACSPEC] Unauthorized item {}", path))
79+
span_lint(cx, HACSPEC, path.span, &format!("[HACSPEC] Unauthorized item {:?}", path));
8080
}
8181

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

0 commit comments

Comments
 (0)