mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Lower the assume intrinsic to a MIR statement
This commit is contained in:
parent
ce339b219a
commit
e1b3483ee8
1 changed files with 3 additions and 0 deletions
|
@ -211,6 +211,9 @@ fn check_statement<'tcx>(
|
|||
StatementKind::SetDiscriminant { place, .. } | StatementKind::Deinit(place) => {
|
||||
check_place(tcx, **place, span, body)
|
||||
},
|
||||
StatementKind::Assume(box op) => {
|
||||
check_operand(tcx, op, span, body)
|
||||
},
|
||||
|
||||
StatementKind::CopyNonOverlapping(box rustc_middle::mir::CopyNonOverlapping { dst, src, count }) => {
|
||||
check_operand(tcx, dst, span, body)?;
|
||||
|
|
Loading…
Reference in a new issue