Skip to content

Improve diagnostic output of non_local_definitions lint#125089

Merged
bors merged 11 commits intorust-lang:masterfrom
Urgau:non_local_def-suggestions
May 28, 2024
Merged

Improve diagnostic output of non_local_definitions lint#125089
bors merged 11 commits intorust-lang:masterfrom
Urgau:non_local_def-suggestions

Conversation

@Urgau
Copy link
Member

@Urgau Urgau commented May 13, 2024

This PR improves (or at least tries to improve) the diagnostic output of non_local_definitions lint, by simplifying the wording, by adding a "sort of" explanation of bounds interaction that leak the impl...

This PR is best reviewed commit by commit and is voluntarily made a bit vague as to have a starting point to improve on.

Related to https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/non_local_defs.20wording.20improvements

Fixes #125068
Fixes #124396
cc @workingjubilee
r? @estebank

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

Labels

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-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 using private types False positive and highly misleading suggestions for the non-local-definitions lint

6 participants