Skip to content

Commit 0c9e00b

Browse files
committed
Fix dis fmt
1 parent 63d0724 commit 0c9e00b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/compiler-core/src/bytecode.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,8 @@ impl Instruction {
18261826
DeleteAttr { idx } => w!(DeleteAttr, name = idx),
18271827
LoadConst { idx } => fmt_const("LoadConst", arg, f, idx),
18281828
UnaryOperation { op } => w!(UnaryOperation, ?op),
1829-
BinaryOp { op } => write!(f, "BINARY_OP {}", op.get(arg)),
1829+
BinaryOp { op } => write!(f, "{:pad$}({})", "BINARY_OP", op.get(arg)),
1830+
18301831
BinarySubscript => w!(BinarySubscript),
18311832
LoadAttr { idx } => w!(LoadAttr, name = idx),
18321833
CompareOperation { op } => w!(CompareOperation, ?op),

0 commit comments

Comments
 (0)