1
Fork 0

fix ICE in Definitions::create_def

This commit is contained in:
Goldstein 2022-07-16 21:30:17 +03:00
parent e5a7d8f945
commit d9f28b7b70
No known key found for this signature in database
GPG key ID: DE6031ABA0BB269A
2 changed files with 8 additions and 3 deletions

View file

@ -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()
)
}