Skip to content

Commit 19c4cfd

Browse files
committed
fix comments
1 parent a218be9 commit 19c4cfd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc_mir/interpret/machine.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ pub trait Machine<'a, 'mir, 'tcx>: Sized {
171171
/// cache the result. (This relies on `AllocMap::get_or` being able to add the
172172
/// owned allocation to the map even when the map is shared.)
173173
///
174-
/// The tag returned must be the same as the one returned by `tag_base_pointer`.
174+
/// For static allocations, the tag returned must be the same as the one returned by
175+
/// `tag_static_base_pointer`.
175176
fn tag_allocation<'b>(
176177
id: AllocId,
177178
alloc: Cow<'b, Allocation>,

src/librustc_mir/interpret/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
326326
/// The resolved ID is never used by the interpreted progrma, it is hidden.
327327
/// The `AllocKind::Memory` branch here is still reachable though; when a static
328328
/// contains a reference to memory that was created during its evaluation (i.e., not to
329-
/// another static), those inner references only exist in "resolved" from.
329+
/// another static), those inner references only exist in "resolved" form.
330330
fn get_static_alloc(
331331
id: AllocId,
332332
tcx: TyCtxtAt<'a, 'tcx, 'tcx>,

0 commit comments

Comments
 (0)