Correct Key impl for HirId.

This commit is contained in:
Camille GILLOT 2022-09-10 11:55:10 +02:00
parent 1fcc440391
commit 42a92eb54b

View file

@ -552,11 +552,11 @@ fn query_crate_is_local(&self) -> bool {
}
fn default_span(&self, tcx: TyCtxt<'_>) -> Span {
self.owner.default_span(tcx)
tcx.hir().span(*self)
}
#[inline(always)]
fn key_as_def_id(&self) -> Option<DefId> {
Some(self.owner.to_def_id())
None
}
}