Skip to content

Commit d83c46f

Browse files
syvbRalfJung
andauthored
add note about MAX_ALLOC_LIMIT
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent b201b2f commit d83c46f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_mir/src/transform/const_prop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl<'mir, 'tcx> ConstPropMachine<'mir, 'tcx> {
181181

182182
impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx> {
183183
compile_time_machine!(<'mir, 'tcx>);
184-
const PANIC_ON_ALLOC_FAIL: bool = true; // all allocations are small
184+
const PANIC_ON_ALLOC_FAIL: bool = true; // all allocations are small (see `MAX_ALLOC_LIMIT`)
185185

186186
type MemoryKind = !;
187187

0 commit comments

Comments
 (0)