rename Unevaluated to UnevaluatedConst
This commit is contained in:
parent
efb908991b
commit
a705e65605
35 changed files with 121 additions and 91 deletions
|
@ -109,7 +109,7 @@ pub(crate) fn codegen_constant<'tcx>(
|
|||
) -> CValue<'tcx> {
|
||||
let (const_val, ty) = match fx.monomorphize(constant.literal) {
|
||||
ConstantKind::Ty(const_) => unreachable!("{:?}", const_),
|
||||
ConstantKind::Unevaluated(mir::Unevaluated { def, substs, promoted }, ty)
|
||||
ConstantKind::Unevaluated(mir::UnevaluatedConst { def, substs, promoted }, ty)
|
||||
if fx.tcx.is_static(def.did) =>
|
||||
{
|
||||
assert!(substs.is_empty());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue