about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2019-12-23 14:50:34 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-12-23 14:54:46 +0100
commit89250b97f578d75df33cb049d1cba2640fbc46d9 (patch)
tree6d84c2c3d3b2e3a8e5b6de84b49b8453c70494d5 /src
parente56a86162ceeb285c48132a103a6559f4d406ba7 (diff)
Update src/librustc_mir/interpret/intern.rs
Co-Authored-By: Ralf Jung <post@ralfj.de>
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/interpret/intern.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/intern.rs b/src/librustc_mir/interpret/intern.rs
index 1562a518316..b3231ece636 100644
--- a/src/librustc_mir/interpret/intern.rs
+++ b/src/librustc_mir/interpret/intern.rs
@@ -327,7 +327,7 @@ pub fn intern_const_alloc_recursive<M: CompileTimeMachine<'mir, 'tcx>>(
                     // We use `delay_span_bug` here, because this can be reached in the presence
                     // of fancy transmutes.
                     if alloc.mutability == Mutability::Mut {
-                        // For better errors later, mark the allocation as immutable
+                        // For better errors later, mark the allocation as immutable (on top of the delayed ICE).
                         alloc.mutability = Mutability::Not;
                         ecx.tcx.sess.delay_span_bug(ecx.tcx.span, "mutable allocation in constant");
                     }