Repository navigation
Update Documentation for Discriminant::ord - #165472
Merged
rust-bors[bot] merged 1 commit intoNov 28, 2026
Merged
Conversation
Co-Authored-By: Jubilee <[email protected]>
bushrat011899
force-pushed
the
discriminant_ord_docs
branch
from
November 5, 2026 21:45
5561f1e to
e9565a1
Compare
Discriminant::ordDiscriminant::ord
bushrat011899
marked this pull request as ready for review
November 5, 2026 21:46
Contributor
Author
|
Prerequisite PR now merged, so this PR is ready for review :) |
workingjubilee
approved these changes
Nov 22, 2026
| /// Discriminants from enums will be ordered based on the source declaration | ||
| /// and assigned values of their variants, consistent with derived implementations | ||
| /// of [`PartialOrd`] and [`Ord`]. All other kinds of discriminants have an | ||
| /// *unspecified* ordering, but will _typically_ be trivially ordered as equivalent. |
Member
There was a problem hiding this comment.
These are actually formatted the same way, no? Also, a space.
Suggested change
| /// *unspecified* ordering, but will _typically_ be trivially ordered as equivalent. | |
| /// *unspecified* ordering, but will *typically* be trivially ordered as equivalent. |
Member
There was a problem hiding this comment.
Oh this literally doesn't affect the rendered docs. Whatever!
Member
|
@bors r+ rollup |
Contributor
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 28, 2026
Rollup merge of #165472 - bushrat011899:discriminant_ord_docs, r=workingjubilee Update Documentation for `Discriminant::ord` ACP: rust-lang/libs-team#925 Tracking Issue: #165438 Follow Up To: #165443 Updates to the documentation of `Discriminant::ord` based on the reviews [here](#165443 (review)). WIP while #165443 is yet to be merged. # Notes * No AI tooling of any kind was used during the creation of this PR. * Only the last commit in this PR is unique to it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ACP: rust-lang/libs-team#925
Tracking Issue: #165438
Follow Up To: #165443
Updates to the documentation of
Discriminant::ordbased on the reviews here.WIP while #165443 is yet to be merged.
Notes