File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
compiler/rustc_middle/src/mir/interpret Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -130,15 +130,8 @@ impl<Tag> Allocation<Tag> {
130
130
// This results in an error that can happen non-deterministically, since the memory
131
131
// available to the compiler can change between runs. Normally queries are always
132
132
// deterministic. However, we can be non-determinstic here because all uses of const
133
- // evaluation do one of:
134
- // - error on failure
135
- // - used for static initalizer evalution
136
- // - used for const value evaluation
137
- // - const prop errors on this since otherwise it would generate different code based
138
- // on available memory
139
- // - panic on failure to allocate very small sizes
140
- // - actually panicking won't happen since there wouldn't be enough memory to panic
141
- // - used for caller location evaluation
133
+ // evaluation will make compilation fail (via hard error or ICE) upon
134
+ // encountering a `MemoryExhausted` error.
142
135
InterpError :: ResourceExhaustion ( ResourceExhaustionInfo :: MemoryExhausted )
143
136
} ) ?;
144
137
bytes. resize ( size. bytes_usize ( ) , 0 ) ;
You can’t perform that action at this time.
0 commit comments