extract ConstKind::Unevaluated
into a struct
This commit is contained in:
parent
41b315a470
commit
43ebac119b
25 changed files with 131 additions and 88 deletions
|
@ -30,7 +30,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||
mir::ConstantKind::Val(val, _) => return Ok(val),
|
||||
};
|
||||
match ct.val {
|
||||
ty::ConstKind::Unevaluated(def, substs, promoted) => self
|
||||
ty::ConstKind::Unevaluated(ty::Unevaluated { def, substs, promoted }) => self
|
||||
.cx
|
||||
.tcx()
|
||||
.const_eval_resolve(ty::ParamEnv::reveal_all(), def, substs, promoted, None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue