@@ -326,20 +326,6 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'mir, 'tcx> {
326
326
memory_extra. check_alignment
327
327
}
328
328
329
- #[ inline( always) ]
330
- fn stack < ' a > (
331
- ecx : & ' a InterpCx < ' mir , ' tcx , Self > ,
332
- ) -> & ' a [ Frame < ' mir , ' tcx , Self :: PointerTag , Self :: FrameExtra > ] {
333
- & ecx. machine . stack
334
- }
335
-
336
- #[ inline( always) ]
337
- fn stack_mut < ' a > (
338
- ecx : & ' a mut InterpCx < ' mir , ' tcx , Self > ,
339
- ) -> & ' a mut Vec < Frame < ' mir , ' tcx , Self :: PointerTag , Self :: FrameExtra > > {
340
- & mut ecx. machine . stack
341
- }
342
-
343
329
#[ inline( always) ]
344
330
fn enforce_validity ( ecx : & InterpCx < ' mir , ' tcx , Self > ) -> bool {
345
331
ecx. machine . validate
@@ -539,6 +525,20 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'mir, 'tcx> {
539
525
Ok ( frame. with_extra ( extra) )
540
526
}
541
527
528
+ #[ inline( always) ]
529
+ fn stack < ' a > (
530
+ ecx : & ' a InterpCx < ' mir , ' tcx , Self > ,
531
+ ) -> & ' a [ Frame < ' mir , ' tcx , Self :: PointerTag , Self :: FrameExtra > ] {
532
+ & ecx. machine . stack
533
+ }
534
+
535
+ #[ inline( always) ]
536
+ fn stack_mut < ' a > (
537
+ ecx : & ' a mut InterpCx < ' mir , ' tcx , Self > ,
538
+ ) -> & ' a mut Vec < Frame < ' mir , ' tcx , Self :: PointerTag , Self :: FrameExtra > > {
539
+ & mut ecx. machine . stack
540
+ }
541
+
542
542
#[ inline( always) ]
543
543
fn after_stack_push ( ecx : & mut InterpCx < ' mir , ' tcx , Self > ) -> InterpResult < ' tcx > {
544
544
if ecx. memory . extra . stacked_borrows . is_some ( ) {
0 commit comments