Skip to content

Commit 0bf704a

Browse files
committed
Run cargo fmt on ir.rs
1 parent d33f924 commit 0bf704a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

crates/codegen/src/ir.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -785,16 +785,20 @@ impl CodeInfo {
785785
let eh = block.instructions[i].except_handler;
786786

787787
// slot[start_idx] → BUILD_LIST 0
788-
block.instructions[start_idx].instr =
789-
Instruction::BuildList { count: Arg::marker() }.into();
788+
block.instructions[start_idx].instr = Instruction::BuildList {
789+
count: Arg::marker(),
790+
}
791+
.into();
790792
block.instructions[start_idx].arg = OpArg::new(0);
791793
block.instructions[start_idx].location = folded_loc;
792794
block.instructions[start_idx].end_location = end_loc;
793795
block.instructions[start_idx].except_handler = eh;
794796

795797
// slot[start_idx+1] → LOAD_CONST (tuple)
796-
block.instructions[start_idx + 1].instr =
797-
Instruction::LoadConst { consti: Arg::marker() }.into();
798+
block.instructions[start_idx + 1].instr = Instruction::LoadConst {
799+
consti: Arg::marker(),
800+
}
801+
.into();
798802
block.instructions[start_idx + 1].arg = OpArg::new(const_idx as u32);
799803
block.instructions[start_idx + 1].location = folded_loc;
800804
block.instructions[start_idx + 1].end_location = end_loc;
@@ -807,8 +811,7 @@ impl CodeInfo {
807811
}
808812

809813
// slot[i] (was BUILD_LIST) → LIST_EXTEND 1
810-
block.instructions[i].instr =
811-
Instruction::ListExtend { i: Arg::marker() }.into();
814+
block.instructions[i].instr = Instruction::ListExtend { i: Arg::marker() }.into();
812815
block.instructions[i].arg = OpArg::new(1);
813816

814817
i += 1;

0 commit comments

Comments
 (0)