fix comments
This commit is contained in:
parent
77be06b7ed
commit
6dd9389008
@ -171,7 +171,8 @@ pub trait Machine<'a, 'mir, 'tcx>: Sized {
|
||||
/// cache the result. (This relies on `AllocMap::get_or` being able to add the
|
||||
/// owned allocation to the map even when the map is shared.)
|
||||
///
|
||||
/// The tag returned must be the same as the one returned by `tag_base_pointer`.
|
||||
/// For static allocations, the tag returned must be the same as the one returned by
|
||||
/// `tag_static_base_pointer`.
|
||||
fn tag_allocation<'b>(
|
||||
id: AllocId,
|
||||
alloc: Cow<'b, Allocation>,
|
||||
|
@ -326,7 +326,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
|
||||
/// The resolved ID is never used by the interpreted progrma, it is hidden.
|
||||
/// The `GlobalAlloc::Memory` branch here is still reachable though; when a static
|
||||
/// contains a reference to memory that was created during its evaluation (i.e., not to
|
||||
/// another static), those inner references only exist in "resolved" from.
|
||||
/// another static), those inner references only exist in "resolved" form.
|
||||
fn get_static_alloc(
|
||||
id: AllocId,
|
||||
tcx: TyCtxtAt<'a, 'tcx, 'tcx>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user