Skip to content

const trait Trait {} syntax is accepted without a feature gate on 1.90 beta and master #144958

Closed

Description

@fmease
const trait Trait {}

doesn't lead to a const_trait_impl feature gate error.

Affects 1.90 beta and nightly/master.

Activity

  1. self-assigned this
    on Aug 5, 2025
  2. added
    A-parser
    T-compiler
    C-bug
    P-critical
    PG-const-traits
    on Aug 5, 2025
  3. added
    needs-triage
    on Aug 5, 2025
  4. added
    P-high
    and removed
    needs-triage
    P-critical
    on Aug 5, 2025
  5. changed the title [-]`const trait Trait {}` syntax is accepted without a feature gate on beta (soon stable) and master[/-] [+]`const trait Trait {}` syntax is accepted without a feature gate on 1.90 beta and master[/+] on Aug 5, 2025
  6. fmease commented on Aug 5, 2025

    @fmease
    MemberAuthor

    Oops, I thought the issue was present in 1.89 beta which would've been bad but it's all good.

  7. added a commit that references this issue on Aug 6, 2025
  8. added a commit that references this issue on Aug 7, 2025
  9. fmease commented on Aug 22, 2025

    @fmease
    MemberAuthor

    Fix: #144956
    Backport: #145719

  10. added a commit that references this issue on Mar 9, 2026
  11. added 2 commits that reference this issue on Mar 9, 2026
  12. added a commit that references this issue on Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-parserC-bugP-highPG-const-traitsT-compiler

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions