Allocation failure in constprop panics right away

This commit is contained in:
Smitty
2021-07-02 16:06:12 -04:00
parent 3e20129a18
commit e9d69d9f8e
6 changed files with 12 additions and 3 deletions

View File

@@ -201,6 +201,8 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for CompileTimeInterpreter<'mir,
type MemoryExtra = MemoryExtra;
const PANIC_ON_ALLOC_FAIL: bool = false; // will be raised as a proper error
fn load_mir(
ecx: &InterpCx<'mir, 'tcx, Self>,
instance: ty::InstanceDef<'tcx>,