@@ -1862,9 +1862,9 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
18621862 ty:: AssocTag :: Const ,
18631863 ) ?;
18641864 self . require_type_const_attribute ( item_def_id, span) ?;
1865- let uv = ty:: UnevaluatedConst :: new (
1865+ let uv = ty:: AliasConst :: new (
18661866 tcx,
1867- ty:: UnevaluatedConstKind :: new_from_def_id ( tcx, item_def_id) ,
1867+ ty:: AliasConstKind :: new_from_def_id ( tcx, item_def_id) ,
18681868 item_args,
18691869 ) ;
18701870 Ok ( Const :: new_unevaluated ( tcx, uv) )
@@ -2748,11 +2748,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
27482748 let args = self . lower_generic_args_of_path_segment ( span, did, segment) ;
27492749 ty:: Const :: new_unevaluated (
27502750 tcx,
2751- ty:: UnevaluatedConst :: new (
2752- tcx,
2753- ty:: UnevaluatedConstKind :: new_from_def_id ( tcx, did) ,
2754- args,
2755- ) ,
2751+ ty:: AliasConst :: new ( tcx, ty:: AliasConstKind :: new_from_def_id ( tcx, did) , args) ,
27562752 )
27572753 }
27582754 Res :: Def ( kind @ DefKind :: Ctor ( ctor_of, CtorKind :: Const ) , did) => {
@@ -2905,9 +2901,9 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
29052901 Some ( v) => v,
29062902 None => ty:: Const :: new_unevaluated (
29072903 tcx,
2908- ty:: UnevaluatedConst :: new (
2904+ ty:: AliasConst :: new (
29092905 tcx,
2910- ty:: UnevaluatedConstKind :: Anon { def_id : anon. def_id . to_def_id ( ) } ,
2906+ ty:: AliasConstKind :: Anon { def_id : anon. def_id . to_def_id ( ) } ,
29112907 ty:: GenericArgs :: identity_for_item ( tcx, anon. def_id . to_def_id ( ) ) ,
29122908 ) ,
29132909 ) ,
0 commit comments