Skip to content

Rework non_local_definitions lint to only use a syntactic heuristic#127117

Merged
bors merged 5 commits intorust-lang:masterfrom
Urgau:non_local_def-syntactic
Sep 24, 2024
Merged

Rework non_local_definitions lint to only use a syntactic heuristic#127117
bors merged 5 commits intorust-lang:masterfrom
Urgau:non_local_def-syntactic

Conversation

@Urgau
Copy link
Member

@Urgau Urgau commented Jun 29, 2024

This PR reworks the non_local_definitions lint to only use a syntactic heuristic, i.e. not use a type-system logic for whenever an impl is local or not.

Instead the new logic wanted by T-lang in #126768 (comment), which is to consider every paths in Self and Trait and to no longer use the type-system inference trick.

@rustbot labels +L-non_local_definitions
Fixes #126768

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

Labels

L-non_local_definitions Lint: non_local_definitions merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. relnotes Marks issues that should be documented in the release notes of the next release. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-lang Relevant to the language team T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

non_local_definitions lint fires for impl Trait for NonLocalType<SomeLocalType>, probably shouldn't