Skip to content

mGCA: Support directly represented negated literals#152139

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
khyperia:mgca-negative-literals
Feb 6, 2026
Merged

mGCA: Support directly represented negated literals#152139
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
khyperia:mgca-negative-literals

Conversation

@khyperia
Copy link
Copy Markdown
Contributor

@khyperia khyperia commented Feb 4, 2026

fixes #152123

PatExprKind already awkwardly tacks on a negated: bool for the same purpose:

Lit {
lit: Lit,
// FIXME: move this into `Lit` and handle negated literal expressions
// once instead of matching on unop neg expressions everywhere.
negated: bool,
},

perhaps one day we should indeed do that FIXME...

r? @BoxyUwU

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-clippy Relevant to the Clippy team. 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.

mGCA: Support directly represented negated literals

4 participants