diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-03-19 16:54:51 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-03-20 12:14:05 +0100 |
| commit | 215905cdc8accbc8abe26da8650d6959e86cf9e0 (patch) | |
| tree | 12090ec446e40c2a4e56750f9f96d81e12713b92 | |
| parent | 8afa50c4825b0e6494be9d731da28669e716564e (diff) | |
| download | rust-215905cdc8accbc8abe26da8650d6959e86cf9e0.tar.gz rust-215905cdc8accbc8abe26da8650d6959e86cf9e0.zip | |
Wrap write_mir_fn call in with_no_trimmed_paths!()
| -rw-r--r-- | src/base.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/base.rs b/src/base.rs index fe5d80b2a92..a9ff710c91e 100644 --- a/src/base.rs +++ b/src/base.rs @@ -26,7 +26,10 @@ pub(crate) fn codegen_fn<'tcx>( let mir = tcx.instance_mir(instance.def); let _mir_guard = crate::PrintOnPanic(|| { let mut buf = Vec::new(); - rustc_middle::mir::pretty::write_mir_fn(tcx, mir, &mut |_, _| Ok(()), &mut buf).unwrap(); + with_no_trimmed_paths!({ + rustc_middle::mir::pretty::write_mir_fn(tcx, mir, &mut |_, _| Ok(()), &mut buf) + .unwrap(); + }); String::from_utf8_lossy(&buf).into_owned() }); |
