Skip to content

Enums with missing stability attributes on variants will compile and ICE only when used #100420

Closed
@tbodt

Description

@tbodt
Contributor

Example: #100399. This was fixed by adding stability attributes (#100418), but the general problem remains that #99573 was able to land.

cc @dtolnay @yaahc

Activity

added
C-bugCategory: This is a bug.
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Aug 11, 2022
compiler-errors

compiler-errors commented on Aug 11, 2022

@compiler-errors
Member

Found the bug. PR incoming.

@rustbot claim

added a commit that references this issue on Aug 14, 2022

Rollup merge of rust-lang#100431 - compiler-errors:enum-ctor-variant-…

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

Metadata

Metadata

Labels

C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @compiler-errors@tbodt

    Issue actions

      Enums with missing stability attributes on variants will compile and ICE only when used · Issue #100420 · rust-lang/rust