Skip to content

Update Documentation for Discriminant::ord - #165472

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
bushrat011899:discriminant_ord_docs
Nov 28, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
bushrat011899:discriminant_ord_docs

Conversation

@bushrat011899

@bushrat011899 bushrat011899 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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.

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.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 4, 2026
@workingjubilee workingjubilee self-assigned this Nov 4, 2026
@bushrat011899 bushrat011899 changed the title WIP: Update Documentation for Discriminant::ord Update Documentation for Discriminant::ord Nov 5, 2026
@bushrat011899
bushrat011899 marked this pull request as ready for review November 5, 2026 21:46
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 5, 2026
@bushrat011899

Copy link
Copy Markdown
Contributor Author

Prerequisite PR now merged, so this PR is ready for review :)

/// 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.

@workingjubilee workingjubilee Nov 22, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

View changes since the review

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this literally doesn't affect the rendered docs. Whatever!

@workingjubilee

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

📌 Commit e9565a1 has been approved by workingjubilee

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 27, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
Rollup of 4 pull requests

Successful merges:

 - #166676 (miri subtree update)
 - #165472 (Update Documentation for `Discriminant::ord`)
 - #166364 (set_permissions_nofollow: update docs on implementation details)
 - #166667 (Use new OIDC claim-setting to skip second role assumption)
@rust-bors
rust-bors Bot merged commit 7a37d31 into rust-lang:main Nov 28, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 28, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants