You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal Tracking Issue for the AliasTerm refactor #156181
This is a tracking issue for a refactoring of the way aliases are represented in the type system.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.
pubstructAlias<I:Interner,K>{pubkind:K,pubargs:I::GenericArgs,pub(crate)_use_alias_new_instead:(),}// same for consttypeAliasTy<I:Interner> = Alias<I,AliasTyKind<I>>;
with this we can now update NormalizesTo to also be generic over the kind, and e.g. for normalize_anon_const have the argument be Goal<I, ty::NormalizesTo<I, I::UnevaluatedConstId>>, cc #155981
re: the step "merge AliasTy and AliasTerm and have a single Alias type generic over the kind", UnevaluatedConst should also be included in this bucket. Relatedly/tangentially, there is currently a const generics work item to rename UnevaluatedConst to AliasConst: rust-lang/project-const-generics#115
(const items are surprisingly similar to type aliases, and generally can be thought of as the same kind of thing!)
Activity
lcnr commentedon May 5, 2026
we should change these types as follows
with this we can now update
NormalizesToto also be generic over the kind, and e.g. fornormalize_anon_consthave the argument beGoal<I, ty::NormalizesTo<I, I::UnevaluatedConstId>>, cc #155981lcnr commentedon May 5, 2026
cc @BoxyUwU @WaffleLapkin
fmease commentedon May 5, 2026
CC related tracking issue #154941
lcnr commentedon May 5, 2026
woops 😅
khyperia commentedon Jun 10, 2026
re: the step "merge
AliasTyandAliasTermand have a singleAliastype generic over the kind",UnevaluatedConstshould also be included in this bucket. Relatedly/tangentially, there is currently a const generics work item to renameUnevaluatedConsttoAliasConst: rust-lang/project-const-generics#115(const items are surprisingly similar to type aliases, and generally can be thought of as the same kind of thing!)
Rollup merge of rust-lang#157653 - khyperia:AliasTerm-def_id, r=BoxyUwU
Rollup merge of rust-lang#157653 - khyperia:AliasTerm-def_id, r=BoxyUwU
Rollup merge of rust-lang#157653 - khyperia:AliasTerm-def_id, r=BoxyUwU
Rollup merge of rust-lang#157653 - khyperia:AliasTerm-def_id, r=BoxyUwU
Unrolled build for #157653
Rollup merge of rust-lang#156538 - Jamesbarford:chore/merge-AliasTy-A…
Rollup merge of rust-lang#156538 - Jamesbarford:chore/merge-AliasTy-A…
Rollup merge of rust-lang#156538 - Jamesbarford:chore/merge-AliasTy-A…
10 remaining items
Rollup merge of #157653 - khyperia:AliasTerm-def_id, r=BoxyUwU
Auto merge of #158013 - khyperia:AliasTy-def_id, r=BoxyUwU
Rollup merge of rust-lang#162797 - khyperia:yeet-opt_def_id, r=BoxyUw…
Rollup merge of rust-lang#162797 - khyperia:yeet-opt_def_id, r=BoxyUw…
Rollup merge of rust-lang#162797 - khyperia:yeet-opt_def_id, r=BoxyUw…
Rollup merge of rust-lang#162797 - khyperia:yeet-opt_def_id, r=BoxyUw…
Unrolled build for #162797 in rollup 163002
Rollup merge of #162797 - khyperia:yeet-opt_def_id, r=BoxyUwU,bit-aloo
Rollup merge of #162797 - khyperia:yeet-opt_def_id, r=BoxyUwU,bit-aloo
Rollup merge of rust-lang#157653 - khyperia:AliasTerm-def_id, r=BoxyUwU
Auto merge of rust-lang#158013 - khyperia:AliasTy-def_id, r=BoxyUwU
Rollup merge of rust-lang#162797 - khyperia:yeet-opt_def_id, r=BoxyUw…
Rollup merge of #157653 - khyperia:AliasTerm-def_id, r=BoxyUwU
Auto merge of #158013 - khyperia:AliasTy-def_id, r=BoxyUwU
Rollup merge of #162797 - khyperia:yeet-opt_def_id, r=BoxyUwU,bit-aloo