From 6e76599f5f22c471cf0743518e59e64048243aef Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sat, 10 Sep 2022 11:55:10 +0200 Subject: [PATCH] Correct Key impl for HirId. --- compiler/rustc_query_impl/src/keys.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_query_impl/src/keys.rs b/compiler/rustc_query_impl/src/keys.rs index b6cf79b828b3..cdbf734cdbe1 100644 --- a/compiler/rustc_query_impl/src/keys.rs +++ b/compiler/rustc_query_impl/src/keys.rs @@ -565,11 +565,11 @@ impl Key for HirId { } 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 { - Some(self.owner.to_def_id()) + None } }