Skip to content

Commit 62d912e

Browse files
committed
Add new Deinit statement kind
1 parent 0155a63 commit 62d912e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ fn check_statement<'tcx>(
211211

212212
StatementKind::FakeRead(box (_, place)) => check_place(tcx, *place, span, body),
213213
// just an assignment
214-
StatementKind::SetDiscriminant { place, .. } => check_place(tcx, **place, span, body),
214+
StatementKind::SetDiscriminant { place, .. } | StatementKind::Deinit(place) =>
215+
check_place(tcx, **place, span, body),
215216

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

0 commit comments

Comments
 (0)