mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Fix an ICE in CGU dumping code.
This commit is contained in:
parent
d3f416dc06
commit
1551495d32
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user