Skip to content

Commit

Permalink
Add new Deinit statement kind
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobDegen committed Apr 11, 2022
1 parent 0155a63 commit 62d912e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clippy_utils/src/qualify_min_const_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ fn check_statement<'tcx>(

StatementKind::FakeRead(box (_, place)) => check_place(tcx, *place, span, body),
// just an assignment
StatementKind::SetDiscriminant { place, .. } => check_place(tcx, **place, span, body),
StatementKind::SetDiscriminant { place, .. } | StatementKind::Deinit(place) =>
check_place(tcx, **place, span, body),

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

0 comments on commit 62d912e

Please sign in to comment.