-
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
Forbid non-structural_match
types in const generics
#65627
Forbid non-structural_match
types in const generics
#65627
Conversation
Some changes occurred in diagnostic error codes |
(rust_highfive has picked a reviewer for you, use r? to override) |
IIRC, resolve had some hack making sure that generic parameters cannot be used in const generics. |
This comment has been minimized.
This comment has been minimized.
@petrochenkov: just remembered this too — working on that now. |
Shouldn't this use the mechanism in #65519? |
(cc @pnkfelix) |
This comment has been minimized.
This comment has been minimized.
@Centril: this is compatible with that PR (up to rebasing). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
9e66c91
to
ee55bcc
Compare
This comment has been minimized.
This comment has been minimized.
ee55bcc
to
161fab9
Compare
@petrochenkov: I've removed the hack from resolve. |
This comment has been minimized.
This comment has been minimized.
54eac6a
to
2dda8ad
Compare
@bors r+ |
📌 Commit 2dda8ad has been approved by |
🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened |
@bors rollup |
…ructural_match, r=petrochenkov Forbid non-`structural_match` types in const generics Fixes rust-lang#60286.
…ructural_match, r=petrochenkov Forbid non-`structural_match` types in const generics Fixes rust-lang#60286.
Rollup of 8 pull requests Successful merges: - #65625 (Turn crate store into a resolver output) - #65627 (Forbid non-`structural_match` types in const generics) - #65710 (Update cargo) - #65729 (Update test cases for vxWorks) - #65746 (Tweak format string error to point at arguments always) - #65753 (Don't assert for different instance on impl trait alias) - #65755 (Avoid ICE when adjusting bad self ty) - #65766 (Update hashbrown to 0.6.2) Failed merges: r? @ghost
Fixes #60286.