Skip to content

Commit 215905c

Browse files
committed
Wrap write_mir_fn call in with_no_trimmed_paths!()
1 parent 8afa50c commit 215905c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/base.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ pub(crate) fn codegen_fn<'tcx>(
2626
let mir = tcx.instance_mir(instance.def);
2727
let _mir_guard = crate::PrintOnPanic(|| {
2828
let mut buf = Vec::new();
29-
rustc_middle::mir::pretty::write_mir_fn(tcx, mir, &mut |_, _| Ok(()), &mut buf).unwrap();
29+
with_no_trimmed_paths!({
30+
rustc_middle::mir::pretty::write_mir_fn(tcx, mir, &mut |_, _| Ok(()), &mut buf)
31+
.unwrap();
32+
});
3033
String::from_utf8_lossy(&buf).into_owned()
3134
});
3235

0 commit comments

Comments
 (0)