fix ICE in Definitions::create_def
This commit is contained in:
parent
e5a7d8f945
commit
d9f28b7b70
2 changed files with 8 additions and 3 deletions
|
@ -1459,11 +1459,11 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
};
|
||||
|
||||
format!(
|
||||
"{}[{}]{}",
|
||||
"{}[{:04x}]{}",
|
||||
crate_name,
|
||||
// Don't print the whole stable crate id. That's just
|
||||
// annoying in debug output.
|
||||
&(format!("{:08x}", stable_crate_id.to_u64()))[..4],
|
||||
stable_crate_id.to_u64() >> 8 * 6,
|
||||
self.def_path(def_id).to_string_no_crate_verbose()
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue