Skip to content

Commit 3aef65d

Browse files
committed
formating change to pass 'test tidy'
1 parent b8ffc96 commit 3aef65d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

compiler/rustc_mir_build/src/build/matches/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
173173

174174
let then_block = this.cfg.start_new_block();
175175
let else_block = this.cfg.start_new_block();
176-
let term =
177-
TerminatorKind::if_(operand, then_block, else_block, cold_branch);
176+
let term = TerminatorKind::if_(operand, then_block, else_block, cold_branch);
178177

179178
let source_info = this.source_info(expr_span);
180179
this.cfg.terminate(block, source_info, term);

compiler/rustc_mir_transform/src/early_otherwise_branch.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch {
191191
let false_case = eq_bb;
192192
patch.patch_terminator(
193193
parent,
194-
TerminatorKind::if_(Operand::Move(Place::from(comp_temp)), true_case, false_case, None),
194+
TerminatorKind::if_(
195+
Operand::Move(Place::from(comp_temp)),
196+
true_case,
197+
false_case,
198+
None,
199+
),
195200
);
196201

197202
// generate StorageDead for the second_discriminant_temp not in use anymore

0 commit comments

Comments
 (0)