Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce where-clauses on type aliases via alias type #111

Open
nikomatsakis opened this issue Oct 11, 2023 · 2 comments
Open

Enforce where-clauses on type aliases via alias type #111

nikomatsakis opened this issue Oct 11, 2023 · 2 comments
Assignees
Labels
roadmap-tracking-issue Tracks an item on our types team roadmap.
Milestone

Comments

@nikomatsakis
Copy link
Contributor

nikomatsakis commented Oct 11, 2023

This is the types team tracking issue for the idea of changing type aliases from a "early expanded hack" in the compiler into a simple form of alias type (one that can always be normalized). This would allow us to enforce aliases and potentially improve diagnostics.

Blocked on lang-team, who needs to decide whether we want to do this change and especially the desired semantics for implied bounds.

cc rust-lang/rust#112792

@nikomatsakis nikomatsakis converted this from a draft issue Oct 11, 2023
@nikomatsakis nikomatsakis added this to the Edition 2024 milestone Oct 11, 2023
@nikomatsakis
Copy link
Contributor Author

nikomatsakis commented Oct 11, 2023

This was discussed at the types team 2023 meetup; notes can be found here. The primary outcome was that we identified that @rust-lang/lang decision was needed and filed rust-lang/lang-team#227.

@nikomatsakis nikomatsakis added the roadmap-tracking-issue Tracks an item on our types team roadmap. label Oct 11, 2023
@nikomatsakis nikomatsakis changed the title Changing type aliases to be weak Enforce where-clauses on type aliases via alias type Oct 11, 2023
@fmease
Copy link
Member

fmease commented Jun 13, 2024

No longer part of Rust '24 but still actively being worked on by me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap-tracking-issue Tracks an item on our types team roadmap.
Projects
Status: No status
Development

No branches or pull requests

3 participants