Skip to content

Commit 7d88da4

Browse files
committed
fix rustc updating under our feet
1 parent 157cc9f commit 7d88da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_passes/src/check_attr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2647,7 +2647,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
26472647
}
26482648

26492649
fn check_loop_match(&self, hir_id: HirId, attr_span: Span, target: Target) {
2650-
let node_span = self.tcx.hir().span(hir_id);
2650+
let node_span = self.tcx.hir_span(hir_id);
26512651

26522652
if !matches!(target, Target::Expression) {
26532653
self.dcx().emit_err(errors::LoopMatchAttr { attr_span, node_span });
@@ -2660,7 +2660,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
26602660
}
26612661

26622662
fn check_const_continue(&self, hir_id: HirId, attr_span: Span, target: Target) {
2663-
let node_span = self.tcx.hir().span(hir_id);
2663+
let node_span = self.tcx.hir_span(hir_id);
26642664

26652665
if !matches!(target, Target::Expression) {
26662666
self.dcx().emit_err(errors::ConstContinueAttr { attr_span, node_span });

0 commit comments

Comments
 (0)