Uh oh!
There was an error while loading. Please reload this page.
Enum variant ctor inherits the stability of the enum variant - #100431
Conversation
rust-highfive
commented
Aug 11, 2022
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
compiler-errors
commented
Aug 11, 2022
cc @dtolnay and libs folks, may be worth revisiting whether we want to inherit stability on things like enum variants in the first place |
compiler-errors
commented
Aug 11, 2022
Second commit is the missing check for why this turned into an ICE instead of an error. |
bors
commented
Aug 12, 2022
☔ The latest upstream changes (presumably #100426) made this pull request unmergeable. Please resolve the merge conflicts. |
estebank
commented
Aug 12, 2022
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
6925f41Comparecompiler-errors
commented
Aug 12, 2022
I can try to see if we can revive that PR with this change :) |
compiler-errors
commented
Aug 12, 2022
@bors r=estebank |
bors
commented
Aug 12, 2022
compiler-errors
commented
Aug 13, 2022
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