rustc_metadata: Encode/decode DefPathHash
es without an Option
This commit is contained in:
parent
c60cc43985
commit
f4e2b954a1
5 changed files with 20 additions and 11 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue