Encode ExpnId using ExpnHash for incr. comp.

This commit is contained in:
Camille GILLOT 2021-06-27 15:51:25 +02:00
parent 2fe37c5bd1
commit 37a13def48
6 changed files with 160 additions and 120 deletions

View file

@ -136,7 +136,7 @@ impl Borrow<Fingerprint> for DefPathHash {
/// further trouble.
#[derive(Copy, Clone, Hash, PartialEq, Eq, PartialOrd, Ord, Debug)]
#[derive(HashStable_Generic, Encodable, Decodable)]
pub struct StableCrateId(u64);
pub struct StableCrateId(pub(crate) u64);
impl StableCrateId {
pub fn to_u64(self) -> u64 {