@@ -508,21 +508,21 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> {
508
508
id : AllocId ,
509
509
alloc : Cow < ' b , Allocation > ,
510
510
kind : Option < MemoryKind < Self :: MemoryKinds > > ,
511
- memory_extra : & Self :: MemoryExtra ,
511
+ memory : & Memory < ' mir , ' tcx , Self > ,
512
512
) -> ( Cow < ' b , Allocation < Self :: PointerTag , Self :: AllocExtra > > , Self :: PointerTag ) {
513
513
let kind = kind. expect ( "we set our STATIC_KIND so this cannot be None" ) ;
514
514
let alloc = alloc. into_owned ( ) ;
515
515
let ( extra, base_tag) = Stacks :: new_allocation (
516
516
id,
517
517
Size :: from_bytes ( alloc. bytes . len ( ) as u64 ) ,
518
- Rc :: clone ( memory_extra ) ,
518
+ Rc :: clone ( & memory . extra ) ,
519
519
kind,
520
520
) ;
521
521
if kind != MiriMemoryKind :: Static . into ( ) {
522
522
assert ! ( alloc. relocations. is_empty( ) , "Only statics can come initialized with inner pointers" ) ;
523
523
// Now we can rely on the inner pointers being static, too.
524
524
}
525
- let mut memory_extra = memory_extra . borrow_mut ( ) ;
525
+ let mut memory_extra = memory . extra . borrow_mut ( ) ;
526
526
let alloc: Allocation < Tag , Self :: AllocExtra > = Allocation {
527
527
bytes : alloc. bytes ,
528
528
relocations : Relocations :: from_presorted (
@@ -543,9 +543,9 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> {
543
543
#[ inline( always) ]
544
544
fn tag_static_base_pointer (
545
545
id : AllocId ,
546
- memory_extra : & Self :: MemoryExtra ,
546
+ memory : & Memory < ' mir , ' tcx , Self > ,
547
547
) -> Self :: PointerTag {
548
- memory_extra . borrow_mut ( ) . static_base_ptr ( id)
548
+ memory . extra . borrow_mut ( ) . static_base_ptr ( id)
549
549
}
550
550
551
551
#[ inline( always) ]
0 commit comments