You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mGCA: remove parser special case for literals #152246
A-const-genericsArea: const generics (parameters and arguments)F-gca_min_const_items`#![feature(gca_min_const_items)]` (previously: `min_generic_const_args`)S-blockedStatus: Blocked on something else such as an RFC or other implementation work.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.
Currently in the parser when parsing 1 as a const argument we special case it to an anon const instead of a directly represented arg. This was because we didn't have support for literals outside of anon consts. We now have some very basic support for this in order for struct expressions to work with literals as field initialisers.
Once #152139 and #152001 have landed I expect our support for directly represented literals to be "good enough" that we can just rip out this special case and always represent literals as hir::ConstArgKind::Literal under mGCA.
A-const-genericsArea: const generics (parameters and arguments)F-gca_min_const_items`#![feature(gca_min_const_items)]` (previously: `min_generic_const_args`)S-blockedStatus: Blocked on something else such as an RFC or other implementation work.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.
Activity
Rollup merge of rust-lang#153075 - reddevilmidzy:mgca-neg, r=BoxyUwU
Rollup merge of rust-lang#153075 - reddevilmidzy:mgca-neg, r=BoxyUwU
Rollup merge of rust-lang#153075 - reddevilmidzy:mgca-neg, r=BoxyUwU
Rollup merge of rust-lang#153075 - reddevilmidzy:mgca-neg, r=BoxyUwU
Rollup merge of rust-lang#153075 - reddevilmidzy:mgca-neg, r=BoxyUwU
Unrolled build for #153075