Skip to content

Small refactorings in need_type_info module#159002

Open
WaffleLapkin wants to merge 6 commits into
rust-lang:mainfrom
WaffleLapkin:need_type_info_refactors
Open

Small refactorings in need_type_info module#159002
WaffleLapkin wants to merge 6 commits into
rust-lang:mainfrom
WaffleLapkin:need_type_info_refactors

Conversation

@WaffleLapkin

Copy link
Copy Markdown
Member

r? @lcnr

This supports low priority impl diagnostic.

There is only one place where `SourceKindSubdiag` is used without
`SourceKindMultiSuggestion`; it doesn't seem useful to distinguish
between them (I have no idea what either of the names means tbh)
This makes it clear that (what used to be called) `GenericLabel` and
other generic variants are related -- the latter are suggestions, which
can sometimes be present in *addition* to the label.

Although this mainly helps future cleanups.
This simplifies things a bunch, as we don't need any mutable state to
track subdiagnostics now. Also, this makes it clearer which diagnostics
are possible.
@rustbot

rustbot commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in need_type_info.rs

cc @lcnr

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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