about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2023-05-01 18:30:54 -0400
committerBen Kimock <kimockb@gmail.com>2023-05-01 23:12:41 -0400
commit249a6f8fe1d3bee8e5bc63e5a79a68fca62709c3 (patch)
tree1917ebd5a6f6caabb0309d536e850d461f13556a
parentd530c043f788f831b4f4cd146ad4adc6e03fef6b (diff)
downloadrust-249a6f8fe1d3bee8e5bc63e5a79a68fca62709c3.tar.gz
rust-249a6f8fe1d3bee8e5bc63e5a79a68fca62709c3.zip
Box AssertKind
-rw-r--r--src/base.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base.rs b/src/base.rs
index a259a4f30b2..527f455edbe 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -335,7 +335,7 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
                 fx.bcx.switch_to_block(failure);
                 fx.bcx.ins().nop();
 
-                match msg {
+                match &**msg {
                     AssertKind::BoundsCheck { ref len, ref index } => {
                         let len = codegen_operand(fx, len).load_scalar(fx);
                         let index = codegen_operand(fx, index).load_scalar(fx);