Skip to content

Implement "low priority impls"#159003

Draft
WaffleLapkin wants to merge 14 commits into
rust-lang:mainfrom
WaffleLapkin:low-prio-impls
Draft

Implement "low priority impls"#159003
WaffleLapkin wants to merge 14 commits into
rust-lang:mainfrom
WaffleLapkin:low-prio-impls

Conversation

@WaffleLapkin

@WaffleLapkin WaffleLapkin commented Jul 9, 2026

Copy link
Copy Markdown
Member

r? @lcnr

Based on #159002

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.
…y referencing error

Without this change `tests/ui/async-await/async-closures/is-not-fn.rs`
ICEing when constructing proof tree, supposedly to check if an infer var
is referenced in a goal...
@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) 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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Jul 9, 2026
@WaffleLapkin WaffleLapkin added needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. T-types Relevant to the types team, which will review and decide on the PR/issue. labels Jul 9, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

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

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. 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. T-types Relevant to the types team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants