Skip to content

Conversation

@Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Feb 17, 2022

fixes #8408
fixes #8407
fixes #8391
fixes #8367
fixes #8380

This is a temporary fix for needless_borrow. The proper fix is included in #8355.

This should probably be merged into rustc before beta branches on Friday. This issue has been reported six or seven times in the past couple of weeks.

changelog: Fix various issues with needless_borrow n´. Note to changelog writer: those issues might have been introduced in this release cycle, so this might not matter in the changelog.

@rust-highfive
Copy link

r? @camsteffen

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 17, 2022
@camsteffen
Copy link
Contributor

LGTM. Let's go ahead and close whatever issues are fixed here.

fixes: #8367
fixes: #8380

r? @flip1995 - passing this to you since you might get this into rustc.

@flip1995
Copy link
Member

flip1995 commented Feb 17, 2022

LGTM. Let's go ahead and close whatever issues are fixed here.

I think you have to put those directly in the PR body. I did so and also added a changelog.

passing this to you since you might get this into rustc.

Thanks for making me aware of this! I submitted this commit directly to rust-lang/rust, so we don't have to do a full sync: rust-lang/rust#94085

But let's also merge it here to not diverge too much from the rust-lang/rust repo

@bors r+

@bors
Copy link
Contributor

bors commented Feb 17, 2022

📌 Commit a135b52 has been approved by flip1995

@bors
Copy link
Contributor

bors commented Feb 17, 2022

⌛ Testing commit a135b52 with merge 7ee2081...

@bors
Copy link
Contributor

bors commented Feb 17, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 7ee2081 to master...

@bors bors merged commit 7ee2081 into rust-lang:master Feb 17, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 17, 2022
…p_fix, r=Manishearth Clippy: Don't lint `needless_borrow` in method receiver positions r? `@Manishearth` cc `@camsteffen` `@Jarcho` cc rust-lang/rust-clippy#8441 Let's get this fix in before the beta branching tomorrow.
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

5 participants