Skip to content

moving div_ceil() to associated items macro - #163292

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Eleocraft:move-div-ceil
Sep 25, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Eleocraft:move-div-ceil

Conversation

@Eleocraft

Copy link
Copy Markdown
Contributor

Currently the div_ceil() method of unsigned NonZero is beeing generated inside the
nonzero_integer_signedness_dependent_impls
macro. This seems odd, as this macro seems to otherwise only be used for Trait impls, whereas associated methods like div_ceil() are all in the
nonzero_integer_signedness_dependent_methods
macro. If nothing else this causes an issue in the docs, where currently all unsigned NonZero types have two documented impl blocks, one containing only div_ceil(), and the other containing the remaining associated methods and constants.
This PR assumes that this is accidental. If that is not the case then maybe the explanation should be documented somewhere instead.

Copilot AI lite review requested due to automatic review settings September 25, 2026 00:14
@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 Sep 25, 2026
@rustbot

rustbot commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust Project has assigned @clarfonthey (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks.

Please see the contribution instructions and our LLM policy for more information.

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 12 candidates
  • Random selection from 6 candidates

This comment was marked as low quality.

@clarfonthey

Copy link
Copy Markdown
Contributor

FWIW, you may be unaware that Copilot does this, but I would strongly encourage you to check your settings and ensure that automatically requesting reviews is disabled, so that we don't get them on this repo, or really any repo that might not want it. This one thankfully did not provide any outright incorrect info, but, in general they don't always help, and we prefer to do our own review. More info is in our LLM policy: https://forge.rust-lang.org/policies/llm-usage.html

Will try and get to this tomorrow, just wanted to let you know about that.

@clarfonthey

Copy link
Copy Markdown
Contributor

Actually, this headache isn't so bad, and I'm even more confused why this is the case after checking the change even though you already explained it.

Thanks for the help.

@bors r+ rollup

@rust-bors

rust-bors Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

⌛ Commit 980e0f0 has been tentatively approved by clarfonthey. It will be fully approved once PR CI is successful.

@rust-bors

rust-bors Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 980e0f0 has been approved by clarfonthey

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 Sep 25, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 25, 2026
Rollup of 7 pull requests

Successful merges:

 - #160068 (Preserve explicit register names in inline asm diagnostics)
 - #163239 (Fix applicability level for cfg suggestion)
 - #163025 (make `Complex` ABI GCC-compatible on sparc)
 - #163076 (powerpc64: don't pass unions in FPRs on ELFv1)
 - #163268 ([rustdoc] Correctly check that an item is not `doc(hidden)` with `--generate-link-to-definition`)
 - #163288 (Tweak Layout::from_size_align_unchecked safety comment)
 - #163292 (moving div_ceil() to associated items macro)
@rust-bors
rust-bors Bot merged commit d7f0af0 into rust-lang:main Sep 25, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 25, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 25, 2026
Rollup merge of #163292 - Eleocraft:move-div-ceil, r=clarfonthey

moving div_ceil() to associated items macro

Currently the div_ceil() method of unsigned NonZero is beeing generated inside the
`nonzero_integer_signedness_dependent_impls`
macro. This seems odd, as this macro seems to otherwise only be used for Trait impls, whereas associated methods like div_ceil() are all in the
`nonzero_integer_signedness_dependent_methods`
macro. If nothing else this causes an issue in the docs, where currently all unsigned NonZero types have two documented impl blocks, one containing only div_ceil(), and the other containing the remaining associated methods and constants.
This PR assumes that this is accidental. If that is not the case then maybe the explanation should be documented somewhere instead.
@Eleocraft
Eleocraft deleted the move-div-ceil branch September 25, 2026 10:25
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.

4 participants