Skip to content

Commit

Permalink
Remove DropAndReplace terminator
Browse files Browse the repository at this point in the history
PR 107844 made DropAndReplace unused, let's remove it completely
from the codebase.
  • Loading branch information
zeegomo committed Mar 7, 2023
1 parent 64b54ef commit 5619fd5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions clippy_utils/src/qualify_min_const_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ fn check_terminator<'tcx>(
| TerminatorKind::Unreachable => Ok(()),

TerminatorKind::Drop { place, .. } => check_place(tcx, *place, span, body),
TerminatorKind::DropAndReplace { place, value, .. } => {
check_place(tcx, *place, span, body)?;
check_operand(tcx, value, span, body)
},

TerminatorKind::SwitchInt { discr, targets: _ } => check_operand(tcx, discr, span, body),

Expand Down

0 comments on commit 5619fd5

Please sign in to comment.