Skip to content

Commit 12a8d10

Browse files
syvbRalfJung
andauthored
Note that even ConstProp follows the rules
Co-authored-by: Ralf Jung <[email protected]>
1 parent 4c934df commit 12a8d10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/mir/interpret/allocation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ impl<Tag> Allocation<Tag> {
130130
// This results in an error that can happen non-deterministically, since the memory
131131
// available to the compiler can change between runs. Normally queries are always
132132
// deterministic. However, we can be non-determinstic here because all uses of const
133-
// evaluation will make compilation fail (via hard error or ICE) upon
134-
// encountering a `MemoryExhausted` error.
133+
// evaluation (including ConstProp!) will make compilation fail (via hard error
134+
// or ICE) upon encountering a `MemoryExhausted` error.
135135
InterpError::ResourceExhaustion(ResourceExhaustionInfo::MemoryExhausted)
136136
})?;
137137
bytes.resize(size.bytes_usize(), 0);

0 commit comments

Comments
 (0)