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

Follow raw pointers in autoderef chain when resolving methods with custom receiver #15118

Merged
merged 1 commit into from Jul 3, 2023

Conversation

alexkirsz
Copy link
Contributor

@alexkirsz alexkirsz commented Jun 23, 2023

Fixes #15083

I believe this stopped working after alexkirsz@e797479

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

Veykril commented Jul 3, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 3, 2023

📌 Commit 5991f0d has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jul 3, 2023

⌛ Testing commit 5991f0d with merge 5703346...

@bors
Copy link
Collaborator

bors commented Jul 3, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 5703346 to master...

@bors bors merged commit 5703346 into rust-lang:master Jul 3, 2023
10 checks passed
@alexkirsz alexkirsz deleted the alexkirsz/resolve-deref-raw branch July 3, 2023 20:39
bors added a commit that referenced this pull request Jul 19, 2023
…p, r=lnicola

Don't follow raw pointer derefs when considering method receiver candidates

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).
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.

arbitrary_self_types method resolution is incorrect
4 participants