@@ -373,10 +373,10 @@ impl<'tcx> Stack {
373
373
}
374
374
375
375
/// Derived a new pointer from one with the given tag.
376
- /// `weak` controls whether this is a weak reborrow : weak reborrows do not act as
377
- /// accesses , and they add the new item directly on top of the one it is derived
376
+ /// `weak` controls whether this operation is weak or strong : weak granting does not act as
377
+ /// an access , and they add the new item directly on top of the one it is derived
378
378
/// from instead of all the way at the top of the stack.
379
- fn reborrow (
379
+ fn grant (
380
380
& mut self ,
381
381
derived_from : Tag ,
382
382
weak : bool ,
@@ -588,7 +588,7 @@ trait EvalContextPrivExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
588
588
let weak = perm == Permission :: SharedReadWrite ;
589
589
let item = Item { perm, tag : new_tag, protector } ;
590
590
alloc. extra . for_each ( cur_ptr, size, |stack, global| {
591
- stack. reborrow ( cur_ptr. tag , force_weak || weak, item, global)
591
+ stack. grant ( cur_ptr. tag , force_weak || weak, item, global)
592
592
} )
593
593
} ) ;
594
594
}
@@ -597,7 +597,7 @@ trait EvalContextPrivExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
597
597
let weak = perm == Permission :: SharedReadWrite ;
598
598
let item = Item { perm, tag : new_tag, protector } ;
599
599
alloc. extra . for_each ( ptr, size, |stack, global| {
600
- stack. reborrow ( ptr. tag , force_weak || weak, item, global)
600
+ stack. grant ( ptr. tag , force_weak || weak, item, global)
601
601
} )
602
602
}
603
603
0 commit comments