Remove StatementKind::Deinit.

This commit is contained in:
Camille Gillot 2025-10-10 01:48:09 +00:00
parent f6336bc8e4
commit 15575602da

View file

@ -232,7 +232,7 @@ fn check_statement<'tcx>(
StatementKind::FakeRead(box (_, place)) => check_place(cx, *place, span, body, msrv),
// just an assignment
StatementKind::SetDiscriminant { place, .. } | StatementKind::Deinit(place) => {
StatementKind::SetDiscriminant { place, .. } => {
check_place(cx, **place, span, body, msrv)
},