Skip to content

Do not trigger integer_division_remainder_used in macros#17049

Open
samueltardieu wants to merge 1 commit into
rust-lang:masterfrom
samueltardieu:issues/17048
Open

Do not trigger integer_division_remainder_used in macros#17049
samueltardieu wants to merge 1 commit into
rust-lang:masterfrom
samueltardieu:issues/17048

Conversation

@samueltardieu
Copy link
Copy Markdown
Member

@samueltardieu samueltardieu commented May 21, 2026

changelog: [integer_division_remainder_used]: do not trigger in macros

Fixes #17048

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 21, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 21, 2026

r? @llogiq

rustbot has assigned @llogiq.
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: 7 candidates
  • 7 candidates expanded to 7 candidates
  • Random selection from Jarcho, llogiq

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 21, 2026

Lintcheck changes for 474a100

Lint Added Removed Changed
clippy::integer_division_remainder_used 353 133 0

This comment will be updated if you push new changes

@Jarcho
Copy link
Copy Markdown
Contributor

Jarcho commented May 21, 2026

Shouldn't this only not trigger in external macros?

@samueltardieu
Copy link
Copy Markdown
Member Author

Shouldn't this only not trigger in external macros?

Yes, since this is a restriction it is better not to have false negatives indeed. Updated.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clippy::integer_division_remainder_used fires on external macro code

4 participants