Skip to content

Fix collisions between generic enum variant bodies - #1177

Open
Guflly wants to merge 1 commit into
mozilla:mainfrom
Guflly:fix/generic-enum-variant-collision
Open

Fix collisions between generic enum variant bodies#1177
Guflly wants to merge 1 commit into
mozilla:mainfrom
Guflly:fix/generic-enum-variant-collision

Conversation

@Guflly

@Guflly Guflly commented Aug 2, 2026

Copy link
Copy Markdown

Fixes #1166.

Variant body paths now include the owning enum, so separate generic enums can use the same variant names. Exported names stay unchanged after specialization.

Tested with the Rust fixture suite, generated expectations, rustfmt, clippy, nightly unit tests, and the no-default-features build.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

assertion failed when two generic enums share variant names and are monomorphized over the same concrete type

1 participant