@@ -7,7 +7,7 @@ use rustc_hir as hir;
7
7
use rustc_hir:: def_id:: DefId ;
8
8
use rustc_middle:: mir:: {
9
9
Body , CastKind , NullOp , Operand , Place , ProjectionElem , Rvalue , Statement , StatementKind , Terminator ,
10
- TerminatorKind ,
10
+ TerminatorKind , NonDivergingIntrinsic
11
11
} ;
12
12
use rustc_middle:: ty:: subst:: GenericArgKind ;
13
13
use rustc_middle:: ty:: { self , adjustment:: PointerCast , Ty , TyCtxt } ;
@@ -211,15 +211,19 @@ fn check_statement<'tcx>(
211
211
StatementKind :: SetDiscriminant { place, .. } | StatementKind :: Deinit ( place) => {
212
212
check_place ( tcx, * * place, span, body)
213
213
} ,
214
- StatementKind :: Assume ( box op) => {
214
+
215
+ StatementKind :: Intrinsic ( box NonDivergingIntrinsic :: Assume ( op) ) => {
215
216
check_operand ( tcx, op, span, body)
216
217
} ,
217
218
218
- StatementKind :: CopyNonOverlapping ( box rustc_middle:: mir:: CopyNonOverlapping { dst, src, count } ) => {
219
+ StatementKind :: Intrinsic ( box NonDivergingIntrinsic :: CopyNonOverlapping (
220
+ rustc_middle:: mir:: CopyNonOverlapping { dst, src, count } ,
221
+ ) ) => {
219
222
check_operand ( tcx, dst, span, body) ?;
220
223
check_operand ( tcx, src, span, body) ?;
221
224
check_operand ( tcx, count, span, body)
222
225
} ,
226
+
223
227
// These are all NOPs
224
228
StatementKind :: StorageLive ( _)
225
229
| StatementKind :: StorageDead ( _)
0 commit comments