stop using ParamEnv::reveal
while handling MIR
This commit is contained in:
parent
563c473e8d
commit
2cde638ac0
14 changed files with 100 additions and 60 deletions
|
@ -116,7 +116,7 @@ impl<'tcx> NonConstOp<'tcx> for FnCallNonConst<'tcx> {
|
|||
let obligation =
|
||||
Obligation::new(tcx, ObligationCause::dummy(), param_env, trait_ref);
|
||||
|
||||
let infcx = tcx.infer_ctxt().build(body.phase.typing_mode());
|
||||
let infcx = tcx.infer_ctxt().build(body.typing_mode(tcx));
|
||||
let mut selcx = SelectionContext::new(&infcx);
|
||||
let implsrc = selcx.select(&obligation);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue