Skip to content

Conversation

@Amanieu
Copy link
Member

@Amanieu Amanieu commented Jan 28, 2026

Stabilization PR: rust-lang/rust#148605
Tracking issue: rust-lang/rust#89151

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jan 28, 2026
@ehuss ehuss added the S-waiting-on-stabilization Waiting for a stabilization PR to be merged in the main Rust repository label Feb 1, 2026
@ehuss
Copy link
Contributor

ehuss commented Feb 1, 2026

@yaahc I am assuming the ambiguities regarding paths for this feature would fall under your work for type-dependent name resolution?

@yaahc
Copy link
Member

yaahc commented Feb 2, 2026

I believe you're correct, tho I'm not 100% sure. I've been viewing type-relative name res and method res as separate processes and haven't dug super deeply into method/probe.rs which is where this logic lives afaict. Earlier when I was digging through resolve_fully_qualified_call and saw that it invokes method probing in "Path Mode" which is a significantly abbreviated set of steps compared to method resolution I stopped digging deeper.

Given that method resolution already has it's own section, my plan so far has been to document what type-relative resolution is and when it applies, and for the cases where it overlaps with method resolution I was going to document how it differs from method resolution rather than reiterate the applicable steps so we'll only have a single source of truth to maintain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer S-waiting-on-stabilization Waiting for a stabilization PR to be merged in the main Rust repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants