1
Fork 0

refactor: use shorthand fields

This commit is contained in:
teresy 2018-11-06 15:05:44 -05:00
parent 1dceaddfbe
commit eca11b99a7
57 changed files with 68 additions and 68 deletions

View file

@ -495,7 +495,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
let target = self.patch.new_block(BasicBlockData {
statements: vec![assign],
terminator: Some(Terminator {
kind: TerminatorKind::Goto { target: target },
kind: TerminatorKind::Goto { target },
..*terminator
}),
is_cleanup: false,