mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
During MirBorrowck, ignore ConstEvalCounter
This commit is contained in:
@@ -609,7 +609,8 @@ fn visit_statement_before_primary_effect(
|
||||
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 @@ fn visit_statement_before_primary_effect(
|
||||
flow_state,
|
||||
);
|
||||
}
|
||||
StatementKind::ConstEvalCounter
|
||||
| StatementKind::Nop
|
||||
StatementKind::Nop
|
||||
| StatementKind::Retag { .. }
|
||||
| StatementKind::Deinit(..)
|
||||
| StatementKind::SetDiscriminant { .. } => {
|
||||
|
||||
Reference in New Issue
Block a user