Skip to content

Document equivalence of highest_one and ilog2 methods on integers#157078

Open
Filiprogrammer wants to merge 1 commit into
rust-lang:mainfrom
Filiprogrammer:docs-highest-one-ilog2
Open

Document equivalence of highest_one and ilog2 methods on integers#157078
Filiprogrammer wants to merge 1 commit into
rust-lang:mainfrom
Filiprogrammer:docs-highest-one-ilog2

Conversation

@Filiprogrammer
Copy link
Copy Markdown

@Filiprogrammer Filiprogrammer commented May 28, 2026

Add notes to the primitive integer and NonZero types clarifying the equivalence between highest_one and the ilog2/checked_ilog2 methods for non-negative values.

Tracking issue: #145203

Add notes to the primitive integer and `NonZero` types clarifying the
equivalence between `highest_one` and the `ilog2`/`checked_ilog2`
methods for non-negative values.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 28, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 28, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 7 candidates
  • Random selection from Mark-Simulacrum, joboet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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