about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-05-18 14:45:52 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-05-19 08:48:28 +1000
commit1551495d3221b6162b96a14fc5cdb45f2783ed3c (patch)
treef8a576f56dce5adb7c3dc249c77c2ba88d33211f
parentd3f416dc063fc478c7250873246cb2d4136d8c42 (diff)
downloadrust-1551495d3221b6162b96a14fc5cdb45f2783ed3c.tar.gz
rust-1551495d3221b6162b96a14fc5cdb45f2783ed3c.zip
Fix an ICE in CGU dumping code.
-rw-r--r--compiler/rustc_monomorphize/src/partitioning/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning/mod.rs b/compiler/rustc_monomorphize/src/partitioning/mod.rs
index c10180ee3f4..eae3585febf 100644
--- a/compiler/rustc_monomorphize/src/partitioning/mod.rs
+++ b/compiler/rustc_monomorphize/src/partitioning/mod.rs
@@ -365,14 +365,14 @@ where
                 let symbol_hash_start = symbol_name.rfind('h');
                 let symbol_hash = symbol_hash_start.map_or("<no hash>", |i| &symbol_name[i..]);
 
-                let _ = writeln!(
+                let _ = with_no_trimmed_paths!(writeln!(
                     s,
                     " - {} [{:?}] [{}] estimated size {}",
                     mono_item,
                     linkage,
                     symbol_hash,
                     mono_item.size_estimate(tcx)
-                );
+                ));
             }
 
             let _ = writeln!(s);