1
Fork 0

rustc_metadata: Encode/decode DefPathHashes without an Option

This commit is contained in:
Vadim Petrochenkov 2023-02-05 18:53:47 +04:00
parent c60cc43985
commit f4e2b954a1
5 changed files with 20 additions and 11 deletions

View file

@ -119,6 +119,12 @@ impl DefPathHash {
}
}
impl Default for DefPathHash {
fn default() -> Self {
DefPathHash(Fingerprint::ZERO)
}
}
impl Borrow<Fingerprint> for DefPathHash {
#[inline]
fn borrow(&self) -> &Fingerprint {