Skip to content

Extend resolving_to_items_shadowing_supertrait_items to all associated items - #164763

Draft
Amanieu wants to merge 2 commits into
rust-lang:mainfrom
Amanieu:supertrait-shadowing-usage
Draft

Amanieu wants to merge 2 commits into
rust-lang:mainfrom
Amanieu:supertrait-shadowing-usage

Conversation

@Amanieu

@Amanieu Amanieu commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

This PR extends the resolving_to_items_shadowing_supertrait_items lint to cover value-level and type-level associated item path resolution instead of just method calls. The lint now covers every instance where supertrait shadowing occurs.

This also moves lint emission out of ConfirmContext for method calls since that code path is also used to probe for diagnostic suggestions.

Depends on #164762

r? lcnr

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 22, 2026
@Amanieu
Amanieu force-pushed the supertrait-shadowing-usage branch from ffc7c2a to 7d40e9b Compare October 22, 2026 19:54
@Amanieu Amanieu added the llm-assisted An LLM-assisted PR as defined by the LLM policy. Requires ahead-of-time consent by assignee. label Oct 23, 2026

This branch has not been deployed

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

Labels

llm-assisted An LLM-assisted PR as defined by the LLM policy. Requires ahead-of-time consent by assignee. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants