-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Enum variant ctor inherits the stability of the enum variant #100431
Enum variant ctor inherits the stability of the enum variant #100431
Conversation
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
cc @dtolnay and libs folks, may be worth revisiting whether we want to inherit stability on things like enum variants in the first place |
Second commit is the missing check for why this turned into an ICE instead of an error. |
☔ The latest upstream changes (presumably #100426) made this pull request unmergeable. Please resolve the merge conflicts. |
r=me on the changes. I believe the original code might have been buggy (which is why I couldn't land the stability attributes removal from stdlib). |
a503be1
to
6925f41
Compare
I can try to see if we can revive that PR with this change :) |
@bors r=estebank |
this is probably low perf risk @bors rollup |
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#99646 (Only point out a single function parameter if we have a single arg incompatibility) - rust-lang#100299 (make `clean::Item::span` return `Option` instead of dummy span) - rust-lang#100335 (Rustdoc-Json: Add `Path` type for traits.) - rust-lang#100367 (Suggest the path separator when a dot is used on a trait) - rust-lang#100431 (Enum variant ctor inherits the stability of the enum variant) - rust-lang#100446 (Suggest removing a semicolon after impl/trait items) - rust-lang#100468 (Use an extensionless `x` script for non-Windows) - rust-lang#100479 (Argument type error improvements) Failed merges: - rust-lang#100483 (Point to generic or arg if it's the self type of unsatisfied projection predicate) r? `@ghost` `@rustbot` modify labels: rollup
Fixes #100399
Fixes #100420
Context #71481 for why enum variants don't need stability