diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-09-10 11:55:10 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-09-14 19:06:48 +0200 |
| commit | 42a92eb54bd94985966eaaf0b7377679a78de835 (patch) | |
| tree | e293215a84f8bba95acd6f3e75f471b6c2451410 | |
| parent | 1fcc4403916d13e12eba755b1234b8e6114ee9e3 (diff) | |
| download | rust-42a92eb54bd94985966eaaf0b7377679a78de835.tar.gz rust-42a92eb54bd94985966eaaf0b7377679a78de835.zip | |
Correct Key impl for HirId.
| -rw-r--r-- | compiler/rustc_query_impl/src/keys.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_query_impl/src/keys.rs b/compiler/rustc_query_impl/src/keys.rs index ea2d10cd14b..31de83ee141 100644 --- a/compiler/rustc_query_impl/src/keys.rs +++ b/compiler/rustc_query_impl/src/keys.rs @@ -552,11 +552,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<DefId> { - Some(self.owner.to_def_id()) + None } } |
