We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fcc440 commit 42a92ebCopy full SHA for 42a92eb
1 file changed
compiler/rustc_query_impl/src/keys.rs
@@ -552,11 +552,11 @@ impl Key for HirId {
552
}
553
554
fn default_span(&self, tcx: TyCtxt<'_>) -> Span {
555
- self.owner.default_span(tcx)
+ tcx.hir().span(*self)
556
557
558
#[inline(always)]
559
fn key_as_def_id(&self) -> Option<DefId> {
560
- Some(self.owner.to_def_id())
+ None
561
562
0 commit comments