-
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
Add documentation for the order of Option and Result #87654
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
It's not obvious to me that the manual implementation is worth it, here. There's also something to be said for people seeing that it's just the derived one. Adding documentation (and doctests) about it is definitely good, though. Maybe, as a compromise, add another section to the module level docs about how Ord/Eq/Hash/etc work with it? There are a bunch that were added recently, and this feels like it would fit that pattern well. |
Thanks, that makes sense, let me write it up there :) |
05c53cc
to
60ddd6b
Compare
7fe3e07
to
40eaab1
Compare
📌 Commit 40eaab1 has been approved by |
Rollup of 6 pull requests Successful merges: - rust-lang#86176 (Implement a `explicit_generic_args_with_impl_trait` feature gate) - rust-lang#87654 (Add documentation for the order of Option and Result) - rust-lang#87659 (Fix invalid suggestions for non-ASCII characters in byte constants) - rust-lang#87673 (Tweak opaque type mismatch error) - rust-lang#87687 (Inline some macros) - rust-lang#87690 (Add missing "allocated object" doc link to `<*mut T>::add`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This resolves issue #87238.