Skip to content

Commit 249a6f8

Browse files
committed
Box AssertKind
1 parent d530c04 commit 249a6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
335335
fx.bcx.switch_to_block(failure);
336336
fx.bcx.ins().nop();
337337

338-
match msg {
338+
match &**msg {
339339
AssertKind::BoundsCheck { ref len, ref index } => {
340340
let len = codegen_operand(fx, len).load_scalar(fx);
341341
let index = codegen_operand(fx, index).load_scalar(fx);

0 commit comments

Comments
 (0)