diff options
| author | Bryan Garza <1396101+bryangarza@users.noreply.github.com> | 2023-01-04 04:29:27 +0000 |
|---|---|---|
| committer | Bryan Garza <1396101+bryangarza@users.noreply.github.com> | 2023-01-23 23:56:22 +0000 |
| commit | aae331d610f318cd2d472c39f1e09b02d4f83d81 (patch) | |
| tree | d7f47630a7c997570e8040bf8860a49d9ddd1d28 | |
| parent | 999d19d8aa39422e16c55598aef25c2fa56e0540 (diff) | |
| download | rust-aae331d610f318cd2d472c39f1e09b02d4f83d81.tar.gz rust-aae331d610f318cd2d472c39f1e09b02d4f83d81.zip | |
During MirBorrowck, ignore ConstEvalCounter
| -rw-r--r-- | compiler/rustc_borrowck/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_borrowck/src/lib.rs b/compiler/rustc_borrowck/src/lib.rs index 8f8fae2c630..bc81abe4005 100644 --- a/compiler/rustc_borrowck/src/lib.rs +++ b/compiler/rustc_borrowck/src/lib.rs @@ -609,7 +609,8 @@ impl<'cx, 'tcx> rustc_mir_dataflow::ResultsVisitor<'cx, 'tcx> for MirBorrowckCtx StatementKind::AscribeUserType(..) // Doesn't have any language semantics | StatementKind::Coverage(..) - // Does not actually affect borrowck + // These do not actually affect borrowck + | StatementKind::ConstEvalCounter | StatementKind::StorageLive(..) => {} StatementKind::StorageDead(local) => { self.access_place( @@ -620,8 +621,7 @@ impl<'cx, 'tcx> rustc_mir_dataflow::ResultsVisitor<'cx, 'tcx> for MirBorrowckCtx flow_state, ); } - StatementKind::ConstEvalCounter - | StatementKind::Nop + StatementKind::Nop | StatementKind::Retag { .. } | StatementKind::Deinit(..) | StatementKind::SetDiscriminant { .. } => { |
