Skip to content

Commit 6e76599

Browse files
committed
Correct Key impl for HirId.
1 parent 273b54d commit 6e76599

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_query_impl/src

1 file changed

+2
-2
lines changed

compiler/rustc_query_impl/src/keys.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,11 +565,11 @@ impl Key for HirId {
565565
}
566566

567567
fn default_span(&self, tcx: TyCtxt<'_>) -> Span {
568-
self.owner.default_span(tcx)
568+
tcx.hir().span(*self)
569569
}
570570

571571
#[inline(always)]
572572
fn key_as_def_id(&self) -> Option<DefId> {
573-
Some(self.owner.to_def_id())
573+
None
574574
}
575575
}

0 commit comments

Comments
 (0)