Skip to content

librustc: Fix explicit self for objects in more cases - #4155

Closed
pcwalton wants to merge 1 commit into
rust-lang:incomingfrom
pcwalton:fix-explicit-self
Closed

librustc: Fix explicit self for objects in more cases#4155
pcwalton wants to merge 1 commit into
rust-lang:incomingfrom
pcwalton:fix-explicit-self

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

@nikomatsakis

Copy link
Copy Markdown
Contributor

I don't fully see why we need to do things so differently for objects. I feel like the vtables should contains functions that perform whatever adaptation is needed. That said, r+ to this patch, which seems like an improvement on the current state.

RalfJung added a commit to RalfJung/rust that referenced this pull request Feb 2, 2025
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
4155: Precompute expected type during completion r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@pcwalton@nikomatsakis