@@ -72,14 +72,14 @@ impl<'cx, 'tcx> Visitor<'tcx> for InvalidationGenerator<'cx, 'tcx> {
72
72
self . consume_operand ( location, dst) ;
73
73
self . consume_operand ( location, count) ;
74
74
}
75
- StatementKind :: Nop
75
+ // Only relevant for mir typeck
76
+ StatementKind :: AscribeUserType ( ..)
77
+ // Doesn't have any language semantics
76
78
| StatementKind :: Coverage ( ..)
77
- | StatementKind :: AscribeUserType ( ..)
78
- | StatementKind :: Retag { .. }
79
- | StatementKind :: StorageLive ( ..) => {
80
- // `Nop`, `AscribeUserType`, `Retag`, and `StorageLive` are irrelevant
81
- // to borrow check.
82
- }
79
+ // Takes a `bool` argument, and has no return value, thus being irrelevant for borrowck
80
+ | StatementKind :: Assume ( ..)
81
+ // Does not actually affect borrowck
82
+ | StatementKind :: StorageLive ( ..) => { }
83
83
StatementKind :: StorageDead ( local) => {
84
84
self . access_place (
85
85
location,
@@ -88,7 +88,10 @@ impl<'cx, 'tcx> Visitor<'tcx> for InvalidationGenerator<'cx, 'tcx> {
88
88
LocalMutationIsAllowed :: Yes ,
89
89
) ;
90
90
}
91
- StatementKind :: Deinit ( ..) | StatementKind :: SetDiscriminant { .. } => {
91
+ StatementKind :: Nop
92
+ | StatementKind :: Retag { .. }
93
+ | StatementKind :: Deinit ( ..)
94
+ | StatementKind :: SetDiscriminant { .. } => {
92
95
bug ! ( "Statement not allowed in this MIR phase" )
93
96
}
94
97
}
0 commit comments