1
Fork 0

Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko

Remove DropAndReplace terminator

#107844 made DropAndReplace unused, let's remove it completely from the codebase.
This commit is contained in:
Matthias Krüger 2023-03-08 21:26:51 +01:00 committed by GitHub
commit 4e84fbf8a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 33 additions and 344 deletions

View file

@ -59,14 +59,6 @@ impl<'tcx, 'body> ParseCtxt<'tcx, 'body> {
unwind: None,
})
},
@call("mir_drop_and_replace", args) => {
Ok(TerminatorKind::DropAndReplace {
place: self.parse_place(args[0])?,
value: self.parse_operand(args[1])?,
target: self.parse_block(args[2])?,
unwind: None,
})
},
@call("mir_call", args) => {
let destination = self.parse_place(args[0])?;
let target = self.parse_block(args[1])?;