Introduce Machine::POST_MONO_CHECKS.
This commit is contained in:
parent
e5fedceabf
commit
054ed8e7eb
3 changed files with 12 additions and 4 deletions
|
@ -143,8 +143,11 @@ impl ConstPropMachine<'_, '_> {
|
|||
|
||||
impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx> {
|
||||
compile_time_machine!(<'mir, 'tcx>);
|
||||
|
||||
const PANIC_ON_ALLOC_FAIL: bool = true; // all allocations are small (see `MAX_ALLOC_LIMIT`)
|
||||
|
||||
const POST_MONO_CHECKS: bool = false; // this MIR is still generic!
|
||||
|
||||
type MemoryKind = !;
|
||||
|
||||
#[inline(always)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue