X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_span%2Fsrc%2Fdef_id.rs;h=cdda052f529067a27f4c82d49c04bef4a8d7df6e;hb=fabefe3f313f3aec7f2172ced923d1fa9708d0b2;hp=7c5e1427d1ed72e9e7a8f45ad2c2e70cb8eef90e;hpb=d6e79ab9c859cb06da0798f24ac31e1e33c932d3;p=rust.git diff --git a/compiler/rustc_span/src/def_id.rs b/compiler/rustc_span/src/def_id.rs index 7c5e1427d1e..cdda052f529 100644 --- a/compiler/rustc_span/src/def_id.rs +++ b/compiler/rustc_span/src/def_id.rs @@ -119,6 +119,12 @@ pub fn new(stable_crate_id: StableCrateId, local_hash: u64) -> DefPathHash { } } +impl Default for DefPathHash { + fn default() -> Self { + DefPathHash(Fingerprint::ZERO) + } +} + impl Borrow for DefPathHash { #[inline] fn borrow(&self) -> &Fingerprint {