const_eval_resolve
This commit is contained in:
parent
f2f99be2ff
commit
29de25b8a2
@ -332,7 +332,7 @@ impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> {
|
||||
let result = self
|
||||
.lcx
|
||||
.tcx
|
||||
.const_eval_resolve(self.param_env, def_id, substs, None, None)
|
||||
.const_eval_resolve(self.param_env, ty::WithOptParam::dummy(def_id), substs, None, None)
|
||||
.ok()
|
||||
.map(|val| rustc_middle::ty::Const::from_value(self.lcx.tcx, val, ty))?;
|
||||
let result = miri_to_const(&result);
|
||||
|
Loading…
Reference in New Issue
Block a user