Skip to content

[beta] Clippy beta backport #144742

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

Closed
wants to merge 4 commits into from

Conversation

flip1995
Copy link
Member

@flip1995 flip1995 commented Jul 31, 2025

r? @Mark-Simulacrum

Backporting

Reverting buggy lint extensions:

The two backports are for things that were changed in 1.88 already, but we don't want to wait another cycle to fix the issues that originated from those changes.

The two reverts are for lints that started triggering on more cases in 1.89. The proper fixes for them rust-lang/rust-clippy#15206 and rust-lang/rust-clippy#15115 respectively were too big to include in a beta backport and should go through the nightly cycle. To still fix the issues, the extensions are reverted on beta and will be reintroduced together with their fixes in the next beta 1.90.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-clippy Relevant to the Clippy team. labels Jul 31, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jul 31, 2025

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

@rustbot

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

y21 and others added 3 commits July 31, 2025 19:16
If there are more than one dereference (there is one corresponding
matched with a borrow in any case), consider that the argument might
point to a place expression, which is the safest choice.

Also, use an appropriate number of dereferences in suggestions involving
arguments using themselves multiple dereferences.

Fixes rust-lang/rust-clippy#15166

changelog: [`swap_with_temporary`]: fix false positive leading to
different semantics being suggested, and use the right number of
dereferences in suggestion

r? y21

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_SUMMARY_START -->

### Summary Notes

-
[beta-nomination](rust-lang/rust-clippy#15172 (comment))
by [samueltardieu](https://github.com/samueltardieu)

*Managed by `@rustbot`—see
[help](https://forge.rust-lang.org/triagebot/note.html) for details*

<!-- TRIAGEBOT_SUMMARY_END -->
<!-- TRIAGEBOT_END -->
…comparisons (rust-lang#14646)"

This reverts commit 551870d, reversing
changes made to 3927a61.
@flip1995 flip1995 force-pushed the clippy-beta-backport branch from e96eaca to 7e4ec38 Compare July 31, 2025 17:16
@rustbot
Copy link
Collaborator

rustbot commented Jul 31, 2025

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.

@Mark-Simulacrum
Copy link
Member

@bors r+ rollup=never

@bors
Copy link
Collaborator

bors commented Jul 31, 2025

📌 Commit 7e4ec38 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors bors 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 Jul 31, 2025
@jieyouxu
Copy link
Member

jieyouxu commented Aug 2, 2025

Bumping the p on this beta backport since this close to stable.
@bors p=5 (same prio as rollups)

@Mark-Simulacrum
Copy link
Member

Included in #144800.

bors added a commit that referenced this pull request Aug 2, 2025
[beta] backports

Backport:

*  add unsupported_calling_conventions to lint list #144772
*  thread name in stack overflow message #144500
*  rustdoc: don't treat methods under const impls or traits as const #143381
* [beta] Clippy beta backport #144742

r? `@Mark-Simulacrum`
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-clippy Relevant to the Clippy team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants