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

Change syntax of where-clauses on associated types #1071

Closed
dtolnay opened this issue Sep 24, 2021 · 0 comments · Fixed by #1139
Closed

Change syntax of where-clauses on associated types #1071

dtolnay opened this issue Sep 24, 2021 · 0 comments · Fixed by #1139
Labels

Comments

@dtolnay
Copy link
Owner

dtolnay commented Sep 24, 2021

rust-lang/rust#89122, which is in FCP, proposes that:

type StringMap<K> where K: PartialOrd = BTreeMap<K, String>;

should instead be spelled as:

type StringMap<K> = BTreeMap<K, String>
where
    K: PartialOrd;

If the proposal passes, we'll need to implement this in syn.

@dtolnay dtolnay added the syntax label Sep 24, 2021
@dtolnay dtolnay changed the title Change syntax of where clauses on type aliases Change syntax of where clauses on associated types Mar 14, 2022
@dtolnay dtolnay changed the title Change syntax of where clauses on associated types Change syntax of where-clauses on associated types Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant