-
Couldn't load subscription status.
- Fork 13.9k
rustdoc: Replace pair of Options with an enum
#83356
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
Conversation
They are never both `None` or both `Some`, so it makes more sense to use an enum so that we "make impossible states impossible".
|
(rust-highfive has picked a reviewer for you, use r? to override) |
|
Nice! r=me once CI pass. |
|
@bors r=GuillaumeGomez |
|
📌 Commit f820fd2 has been approved by |
|
⌛ Testing commit f820fd2 with merge 9536dc55e11e463601961d032eb11ea243b8af40... |
|
💔 Test failed - checks-actions |
|
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot) |
@bors retry |
Rollup of 7 pull requests Successful merges: - rust-lang#80705 (Update Source Code Pro and include italics) - rust-lang#81917 (Update RELEASES.md for 1.51.0) - rust-lang#82732 (Remove theme.js file) - rust-lang#83356 (rustdoc: Replace pair of `Option`s with an enum) - rust-lang#83384 (rename :pat2018 -> :pat2015) - rust-lang#83385 (:arrow_up: rust-analyzer) - rust-lang#83389 (add rust-analyzer rustc_private option in librustdoc Cargo.toml) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
They are never both
Noneor bothSome, so it makes more sense to usean enum so that we "make impossible states impossible".