1
Fork 0

Remove box syntax from rustc_mir_dataflow and rustc_mir_transform

This commit is contained in:
est31 2022-05-22 16:39:32 +02:00
parent 4bb4dc4672
commit 99603ef074
4 changed files with 5 additions and 6 deletions

View file

@ -192,12 +192,12 @@ impl<'tcx> InstCombineContext<'tcx, '_> {
statements.push(Statement {
source_info: terminator.source_info,
kind: StatementKind::Assign(box (
kind: StatementKind::Assign(Box::new((
destination_place,
Rvalue::Use(Operand::Copy(
arg_place.project_deeper(&[ProjectionElem::Deref], self.tcx),
)),
)),
))),
});
terminator.kind = TerminatorKind::Goto { target: destination_block };
}