Merge pull request #20699 from lnicola/ena-fingerprint

minor: Set `WithCachedTypeInfo::stable_hash` when in-tree
This commit is contained in:
Laurențiu Nicola 2025-09-19 05:20:01 +00:00 committed by GitHub
commit 50bb3c5d82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,8 @@ impl<'db> Const<'db> {
internee: kind,
flags: flags.flags,
outer_exclusive_binder: flags.outer_exclusive_binder,
#[cfg(feature = "in-rust-tree")]
stable_hash: ena::fingerprint::Fingerprint::ZERO,
};
Const::new_(interner.db(), InternedWrapperNoDebug(cached))
}

View File

@ -227,6 +227,8 @@ impl<'db> Predicate<'db> {
internee: kind,
flags: flags.flags,
outer_exclusive_binder: flags.outer_exclusive_binder,
#[cfg(feature = "in-rust-tree")]
stable_hash: ena::fingerprint::Fingerprint::ZERO,
};
Predicate::new_(interner.db(), InternedWrapperNoDebug(cached))
}

View File

@ -60,6 +60,8 @@ impl<'db> Ty<'db> {
internee: kind,
flags: flags.flags,
outer_exclusive_binder: flags.outer_exclusive_binder,
#[cfg(feature = "in-rust-tree")]
stable_hash: ena::fingerprint::Fingerprint::ZERO,
};
Ty::new_(interner.db(), InternedWrapperNoDebug(cached))
}