Skip to content

Commit 89250b9

Browse files
oli-obkRalfJung
andcommitted
Update src/librustc_mir/interpret/intern.rs
Co-Authored-By: Ralf Jung <[email protected]>
1 parent e56a861 commit 89250b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/intern.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ pub fn intern_const_alloc_recursive<M: CompileTimeMachine<'mir, 'tcx>>(
327327
// We use `delay_span_bug` here, because this can be reached in the presence
328328
// of fancy transmutes.
329329
if alloc.mutability == Mutability::Mut {
330-
// For better errors later, mark the allocation as immutable
330+
// For better errors later, mark the allocation as immutable (on top of the delayed ICE).
331331
alloc.mutability = Mutability::Not;
332332
ecx.tcx.sess.delay_span_bug(ecx.tcx.span, "mutable allocation in constant");
333333
}

0 commit comments

Comments
 (0)