Skip to content

Represent hir::TraitBoundModifiers as distinct parts in HIR#131982

Merged
bors merged 1 commit intorust-lang:masterfrom
compiler-errors:split-trait-bound-modifiers
Oct 23, 2024
Merged

Represent hir::TraitBoundModifiers as distinct parts in HIR#131982
bors merged 1 commit intorust-lang:masterfrom
compiler-errors:split-trait-bound-modifiers

Conversation

@compiler-errors
Copy link
Copy Markdown
Contributor

@compiler-errors compiler-errors commented Oct 20, 2024

Stop squashing distinct polarity and constness into a single hir::TraitBoundModifier.

This PR doesn't attempt to handle all the corner cases correctly, since the old code certainly did not either; but it should be much easier for, e.g., rustc devs working on diagnostics, or clippy devs, to actually handle constness and polarity correctly.

try-job: x86_64-gnu-stable

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

Labels

A-rustdoc-json Area: Rustdoc JSON backend merged-by-bors This PR was explicitly merged by bors. 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.

9 participants