Skip to content

Extend {implicit,inverted}_saturating_sub to expressions #14310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 1, 2025

Conversation

samueltardieu
Copy link
Contributor

changelog: [implicit_saturating_sub, inverted_saturating_sub]: extend lints from local variables to side-effect free expressions

Noticed when #14308 introduced an implicit saturating_sub operation and didn't get tagged.

@rustbot
Copy link
Collaborator

rustbot commented Feb 27, 2025

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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 27, 2025
@samueltardieu samueltardieu force-pushed the push-xwurysoszlvz branch 3 times, most recently from d40cee7 to 806547e Compare February 27, 2025 12:56
Side-effect free expressions are eligible to these lints,
whereas previously only local variables were checked.
@samueltardieu
Copy link
Contributor Author

Rebased

@llogiq
Copy link
Contributor

llogiq commented Mar 1, 2025

Thank you!

@llogiq llogiq added this pull request to the merge queue Mar 1, 2025
Merged via the queue into rust-lang:master with commit 8178530 Mar 1, 2025
11 checks passed
@samueltardieu samueltardieu deleted the push-xwurysoszlvz branch March 1, 2025 07:43
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.

3 participants