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