@@ -623,7 +623,7 @@ where
623
623
// just fall back to the indirect path.
624
624
dest. force_mplace ( self ) ?
625
625
} else {
626
- debug_assert_eq ! ( locals_addr, self . frame( ) . locals_addr( ) ) ;
626
+ assert_eq ! ( locals_addr, self . frame( ) . locals_addr( ) ) ;
627
627
match self . frame_mut ( ) . locals [ local] . access_mut ( ) ? {
628
628
Operand :: Immediate ( local_val) => {
629
629
// Local can be updated in-place.
@@ -738,7 +738,7 @@ where
738
738
// FIXME: share the logic with `write_immediate_no_validate`.
739
739
dest. force_mplace ( self ) ?
740
740
} else {
741
- debug_assert_eq ! ( locals_addr, self . frame( ) . locals_addr( ) ) ;
741
+ assert_eq ! ( locals_addr, self . frame( ) . locals_addr( ) ) ;
742
742
match self . frame_mut ( ) . locals [ local] . access_mut ( ) ? {
743
743
Operand :: Immediate ( local) => {
744
744
* local = Immediate :: Uninit ;
@@ -918,7 +918,7 @@ where
918
918
) -> InterpResult < ' tcx , MPlaceTy < ' tcx , M :: Provenance > > {
919
919
let mplace = match place. place {
920
920
Place :: Local { local, offset, locals_addr } => {
921
- debug_assert_eq ! ( locals_addr, self . frame( ) . locals_addr( ) ) ;
921
+ assert_eq ! ( locals_addr, self . frame( ) . locals_addr( ) ) ;
922
922
let whole_local = match self . frame_mut ( ) . locals [ local] . access_mut ( ) ? {
923
923
& mut Operand :: Immediate ( local_val) => {
924
924
// We need to make an allocation.
0 commit comments