Skip to content

mGCA: remove parser special case for literals #152246

Closed

Description

@BoxyUwU

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.

Activity

  1. added
    S-blocked
    A-const-generics
    F-gca_min_const_items
    on Feb 6, 2026
  2. added
    needs-triage
    on Feb 6, 2026
  3. added
    T-compiler
    T-types
    and removed
    needs-triage
    on Feb 6, 2026
  4. added 4 commits that reference this issue on Feb 25, 2026
    8570277
    63fd1cd
    555ceaa
    a261cc1
  5. added a commit that references this issue on Feb 26, 2026
    cd09c56
  6. added a commit that references this issue on Feb 26, 2026
    eb9365b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-const-genericsF-gca_min_const_itemsS-blockedT-compilerT-types

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions