Skip to content

Commit 72f3af2

Browse files
committed
Update function names in comments
1 parent a66dc8a commit 72f3af2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_mir/const_eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub fn op_to_const<'tcx>(
129129
assert!(alloc.bytes.len() as u64 - ptr.offset.bytes() >= op.layout.size.bytes());
130130
let mut alloc = alloc.clone();
131131
alloc.align = align;
132-
// FIXME shouldnt it be the case that `mark_static_initialized` has already
132+
// FIXME shouldnt it be the case that `intern_static` has already
133133
// interned this? I thought that is the entire point of that `FinishStatic` stuff?
134134
let alloc = ecx.tcx.intern_const_alloc(alloc);
135135
ConstValue::ByRef(ptr.alloc_id, alloc, ptr.offset)

src/librustc_mir/interpret/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ where
707707
mutability: Mutability,
708708
) -> EvalResult<'tcx> {
709709
trace!(
710-
"mark_static_initialized {:?}, mutability: {:?}",
710+
"intern_static {:?}, mutability: {:?}",
711711
alloc_id,
712712
mutability
713713
);

0 commit comments

Comments
 (0)