Skip to content

clippy fix: rely on autoderef #143424

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hkBst
Copy link
Member

@hkBst hkBst commented Jul 4, 2025

Changes instances of &**self to self.

@rustbot
Copy link
Collaborator

rustbot commented Jul 4, 2025

r? @jhpratt

rustbot has assigned @jhpratt.
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 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 Jul 4, 2025
@hkBst
Copy link
Member Author

hkBst commented Jul 8, 2025

There was some objection to changes like these, because the more explicit form can give more insight into what's really happening. I suppose this is true, but then why have autoderef in the language? And with autoderef in the language is there any guarantee that this more explicit syntax remains correct, or will autoderef fix up any mistakes silently?

@jhpratt
Copy link
Member

jhpratt commented Jul 18, 2025

Per #143423 (comment), can you add this lint to src/bootstrap/src/core/build_steps/clippy.rs?

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