Revert "Revert "Merge CrateDisambiguator into StableCrateId""
This reverts commit 8176ab8bc1
.
This commit is contained in:
parent
9a27044f42
commit
489ad8b8b5
28 changed files with 116 additions and 193 deletions
|
@ -127,7 +127,10 @@ impl<'tcx> SaveContext<'tcx> {
|
|||
num: n.as_u32(),
|
||||
id: GlobalCrateId {
|
||||
name: self.tcx.crate_name(n).to_string(),
|
||||
disambiguator: self.tcx.crate_disambiguator(n).to_fingerprint().as_value(),
|
||||
disambiguator: (
|
||||
self.tcx.def_path_hash(n.as_def_id()).stable_crate_id().to_u64(),
|
||||
0,
|
||||
),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue