Skip to content

Commit

Permalink
Rollup merge of rust-lang#108856 - Zeegomo:remove-drop-and-rep, r=tmi…
Browse files Browse the repository at this point in the history
…asko

Remove DropAndReplace terminator

rust-lang#107844 made DropAndReplace unused, let's remove it completely from the codebase.
  • Loading branch information
matthiaskrgr authored Mar 8, 2023
2 parents 5331d05 + 5619fd5 commit d9fdac5
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 d9fdac5

Please sign in to comment.