-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Disallow defaults on type GATs #101807
Disallow defaults on type GATs #101807
Conversation
r? @davidtwco (rust-highfive has picked a reviewer for you, use r? to override) |
This will probably also need a beta backport for the soon to branch beta, right? |
This comment has been minimized.
This comment has been minimized.
r? rust-lang/compiler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 nit, then r=me
thanks 😅 ❤️
compiler/rustc_typeck/src/collect.rs
Outdated
"defaults for type parameters are only allowed in \ | ||
`struct`, `enum`, `type`, or `trait` definitions", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you put that string into a const?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it can be made translatable right away? E.g. like this: 7ef610c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really short on time this week. I'd rather get this in now, because don't want to miss beta cutoff.
r? @lcnr |
@est31 should be fine, can get this in before branch |
c8bd1ff
to
f1aafbd
Compare
This comment has been minimized.
This comment has been minimized.
f1aafbd
to
d657d1f
Compare
@bors r=lcnr |
Disallow defaults on type GATs Fixes rust-lang#99205
Rollup of 6 pull requests Successful merges: - rust-lang#93628 (Stabilize `let else`) - rust-lang#98441 (Implement simd_as for pointers) - rust-lang#101790 (Do not suggest a placeholder to const and static without a type) - rust-lang#101807 (Disallow defaults on type GATs) - rust-lang#101915 (doc: fix redirected link in `/index.html`) - rust-lang#101931 (doc: Fix a typo in `Rc::make_mut` docstring) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #99205