InterpCx store TypingEnv instead of a ParamEnv
This commit is contained in:
@@ -82,7 +82,7 @@ impl<'tcx> crate::MirPass<'tcx> for JumpThreading {
|
||||
let mut finder = TOFinder {
|
||||
tcx,
|
||||
typing_env,
|
||||
ecx: InterpCx::new(tcx, DUMMY_SP, typing_env.param_env, DummyMachine),
|
||||
ecx: InterpCx::new(tcx, DUMMY_SP, typing_env, DummyMachine),
|
||||
body,
|
||||
arena,
|
||||
map: Map::new(tcx, body, Some(MAX_PLACES)),
|
||||
|
||||
Reference in New Issue
Block a user