@@ -1859,9 +1859,9 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
18591859 ty:: AssocTag :: Const ,
18601860 ) ?;
18611861 self . require_type_const_attribute ( item_def_id, span) ?;
1862- let uv = ty:: UnevaluatedConst :: new (
1862+ let uv = ty:: AliasConst :: new (
18631863 tcx,
1864- ty:: UnevaluatedConstKind :: new_from_def_id ( tcx, item_def_id) ,
1864+ ty:: AliasConstKind :: new_from_def_id ( tcx, item_def_id) ,
18651865 item_args,
18661866 ) ;
18671867 Ok ( Const :: new_unevaluated ( tcx, uv) )
@@ -2708,11 +2708,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
27082708 let args = self . lower_generic_args_of_path_segment ( span, did, segment) ;
27092709 ty:: Const :: new_unevaluated (
27102710 tcx,
2711- ty:: UnevaluatedConst :: new (
2712- tcx,
2713- ty:: UnevaluatedConstKind :: new_from_def_id ( tcx, did) ,
2714- args,
2715- ) ,
2711+ ty:: AliasConst :: new ( tcx, ty:: AliasConstKind :: new_from_def_id ( tcx, did) , args) ,
27162712 )
27172713 }
27182714 Res :: Def ( kind @ DefKind :: Ctor ( ctor_of, CtorKind :: Const ) , did) => {
@@ -2865,9 +2861,9 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
28652861 Some ( v) => v,
28662862 None => ty:: Const :: new_unevaluated (
28672863 tcx,
2868- ty:: UnevaluatedConst :: new (
2864+ ty:: AliasConst :: new (
28692865 tcx,
2870- ty:: UnevaluatedConstKind :: Anon { def_id : anon. def_id . to_def_id ( ) } ,
2866+ ty:: AliasConstKind :: Anon { def_id : anon. def_id . to_def_id ( ) } ,
28712867 ty:: GenericArgs :: identity_for_item ( tcx, anon. def_id . to_def_id ( ) ) ,
28722868 ) ,
28732869 ) ,
0 commit comments