diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-09-10 11:55:10 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-10-01 16:20:08 +0200 |
| commit | 6e76599f5f22c471cf0743518e59e64048243aef (patch) | |
| tree | 79406b8be772919b3f48e66a837eaa362be21e64 /compiler/rustc_query_impl/src/keys.rs | |
| parent | 273b54d6ac8deb304b337b00483ad06193c1146a (diff) | |
| download | rust-6e76599f5f22c471cf0743518e59e64048243aef.tar.gz rust-6e76599f5f22c471cf0743518e59e64048243aef.zip | |
Correct Key impl for HirId.
Diffstat (limited to 'compiler/rustc_query_impl/src/keys.rs')
| -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 b6cf79b828b..cdbf734cdbe 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<DefId> { - Some(self.owner.to_def_id()) + None } } |
