Skip to content

Commit aae331d

Browse files
committed
During MirBorrowck, ignore ConstEvalCounter
1 parent 999d19d commit aae331d

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_borrowck/src

1 file changed

+3
-3
lines changed

compiler/rustc_borrowck/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,8 @@ impl<'cx, 'tcx> rustc_mir_dataflow::ResultsVisitor<'cx, 'tcx> for MirBorrowckCtx
609609
StatementKind::AscribeUserType(..)
610610
// Doesn't have any language semantics
611611
| StatementKind::Coverage(..)
612-
// Does not actually affect borrowck
612+
// These do not actually affect borrowck
613+
| StatementKind::ConstEvalCounter
613614
| StatementKind::StorageLive(..) => {}
614615
StatementKind::StorageDead(local) => {
615616
self.access_place(
@@ -620,8 +621,7 @@ impl<'cx, 'tcx> rustc_mir_dataflow::ResultsVisitor<'cx, 'tcx> for MirBorrowckCtx
620621
flow_state,
621622
);
622623
}
623-
StatementKind::ConstEvalCounter
624-
| StatementKind::Nop
624+
StatementKind::Nop
625625
| StatementKind::Retag { .. }
626626
| StatementKind::Deinit(..)
627627
| StatementKind::SetDiscriminant { .. } => {

0 commit comments

Comments
 (0)