@@ -7,7 +7,7 @@ use rustc_hir as hir;
77use rustc_hir:: def_id:: DefId ;
88use rustc_middle:: mir:: {
99 Body , CastKind , NullOp , Operand , Place , ProjectionElem , Rvalue , Statement , StatementKind , Terminator ,
10- TerminatorKind ,
10+ TerminatorKind , NonDivergingIntrinsic
1111} ;
1212use rustc_middle:: ty:: subst:: GenericArgKind ;
1313use rustc_middle:: ty:: { self , adjustment:: PointerCast , Ty , TyCtxt } ;
@@ -211,15 +211,19 @@ fn check_statement<'tcx>(
211211 StatementKind :: SetDiscriminant { place, .. } | StatementKind :: Deinit ( place) => {
212212 check_place ( tcx, * * place, span, body)
213213 } ,
214- StatementKind :: Assume ( box op) => {
214+
215+ StatementKind :: Intrinsic ( box NonDivergingIntrinsic :: Assume ( op) ) => {
215216 check_operand ( tcx, op, span, body)
216217 } ,
217218
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+ ) ) => {
219222 check_operand ( tcx, dst, span, body) ?;
220223 check_operand ( tcx, src, span, body) ?;
221224 check_operand ( tcx, count, span, body)
222225 } ,
226+
223227 // These are all NOPs
224228 StatementKind :: StorageLive ( _)
225229 | StatementKind :: StorageDead ( _)
0 commit comments