Skip to content

Commit

Permalink
Auto merge of #127117 - Urgau:non_local_def-syntactic, r=BoxyUwU
Browse files Browse the repository at this point in the history
Rework `non_local_definitions` lint to only use a syntactic heuristic

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 rust-lang/rust#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 branch information
bors committed Sep 24, 2024
2 parents 1dcfec3 + 10459f2 commit 4c3026d
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 4c3026d

Please sign in to comment.