Skip to content
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

fix: Don't follow raw pointer derefs when considering method receiver candidates #15312

Merged

Conversation

alexkirsz
Copy link
Contributor

In #15118, I enabled following raw pointer derefs when considering self type candidates. However, I also inadvertently enabled it for receiver type candidates, which is invalid and causes false positives (see new test).

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 19, 2023
@lnicola
Copy link
Member

lnicola commented Jul 19, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Jul 19, 2023

📌 Commit 5187533 has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jul 19, 2023

⌛ Testing commit 5187533 with merge cecbd3f...

@bors
Copy link
Contributor

bors commented Jul 19, 2023

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing cecbd3f to master...

@bors bors merged commit cecbd3f into rust-lang:master Jul 19, 2023
@lnicola lnicola changed the title Don't follow raw pointer derefs when considering method receiver candidates fixDon't follow raw pointer derefs when considering method receiver candidates Jul 19, 2023
@lnicola lnicola changed the title fixDon't follow raw pointer derefs when considering method receiver candidates fix: Don't follow raw pointer derefs when considering method receiver candidates Jul 19, 2023
@alexkirsz alexkirsz deleted the alexkirsz/resolve-deref-raw-follow-up branch July 19, 2023 18:17
@lnicola
Copy link
Member

lnicola commented Aug 5, 2023

This seems to have caused a massive regression in "unknown types":

image

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.

4 participants