style: 自动格式化

This commit is contained in:
2026-10-16 17:01:17 +00:00
parent 77782f01a5
commit 8a9d09aa5d
+4 -4
View File
@@ -597,12 +597,12 @@ fn static_block_this_reads_ctor_vreg_beyond_u8() {
.filter(|i| i.op == OpCode::LOAD_VAR) .filter(|i| i.op == OpCode::LOAD_VAR)
.find(|i| matches!(i.a, Operand::Reg(_))) .find(|i| matches!(i.a, Operand::Reg(_)))
.expect("静态块 this 应发 LOAD_VAR Reg"); .expect("静态块 this 应发 LOAD_VAR Reg");
let Operand::Reg(r) = this_load.a else { let Operand::Reg(r) = this_load.a else { unreachable!() };
unreachable!()
};
assert!(r > 255, "静态块 this 的构造器 vreg 号应越过 255:{r}"); assert!(r > 255, "静态块 this 的构造器 vreg 号应越过 255:{r}");
assert!( assert!(
!ir.insts.iter().any(|i| i.op == OpCode::LOAD_VAR && matches!(i.a, Operand::This)), !ir.insts
.iter()
.any(|i| i.op == OpCode::LOAD_VAR && matches!(i.a, Operand::This)),
"静态块 this 不应走 this 槽" "静态块 this 不应走 this 槽"
); );
} }