Skip to content

fix: borrow_deref_ref suggests wrongly when coerce to mut #14403

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 1 commit into from
Mar 22, 2025

Conversation

profetia
Copy link
Contributor

Closes #11346.
Partially fix #9905. The first case in this issue is a little tricky as the coerce does not happen in the borrowing.

changelog: [borrow_deref_ref]: fix wrong suggestions when coerce to mut

@rustbot
Copy link
Collaborator

rustbot commented Mar 13, 2025

r? @Centri3

rustbot has assigned @Centri3.
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 Mar 13, 2025
@flip1995 flip1995 added this pull request to the merge queue Mar 22, 2025
Merged via the queue into rust-lang:master with commit cdf2e7c Mar 22, 2025
11 checks passed
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.

borrow_deref_ref suggestion breaks code borrow_deref_ref breaks code
5 participants