mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Add new Deinit
statement kind
This commit is contained in:
parent
0155a630f0
commit
62d912e24d
1 changed files with 2 additions and 1 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Reference in a new issue