From 89250b97f578d75df33cb049d1cba2640fbc46d9 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Mon, 23 Dec 2019 14:50:34 +0100 Subject: [PATCH] Update src/librustc_mir/interpret/intern.rs Co-Authored-By: Ralf Jung --- src/librustc_mir/interpret/intern.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_mir/interpret/intern.rs b/src/librustc_mir/interpret/intern.rs index 1562a5183160..b3231ece6368 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>( // 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"); }