Skip to content

Commit e1b3483

Browse files
committed
Lower the assume intrinsic to a MIR statement
1 parent ce339b2 commit e1b3483

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ fn check_statement<'tcx>(
211211
StatementKind::SetDiscriminant { place, .. } | StatementKind::Deinit(place) => {
212212
check_place(tcx, **place, span, body)
213213
},
214+
StatementKind::Assume(box op) => {
215+
check_operand(tcx, op, span, body)
216+
},
214217

215218
StatementKind::CopyNonOverlapping(box rustc_middle::mir::CopyNonOverlapping { dst, src, count }) => {
216219
check_operand(tcx, dst, span, body)?;

0 commit comments

Comments
 (0)