Skip to content

Do not use the canonical declaration for enum type building#3346

Merged
emilio merged 1 commit intorust-lang:mainfrom
dlrobertson:issue-3179
Feb 24, 2026
Merged

Do not use the canonical declaration for enum type building#3346
emilio merged 1 commit intorust-lang:mainfrom
dlrobertson:issue-3179

Conversation

@dlrobertson
Copy link
Copy Markdown
Contributor

Allow forward declarations to be used by avoiding the use of the canonical declaration when building the underlying representation.

Fixes: #3179

Allow forward declarations to be used by avoiding the use of the
canonical declaration when building the underlying representation.
@emilio emilio added this pull request to the merge queue Feb 24, 2026
Merged via the queue into rust-lang:main with commit b7b501f Feb 24, 2026
51 checks passed
@dlrobertson dlrobertson deleted the issue-3179 branch February 24, 2026 16:07
@ojeda
Copy link
Copy Markdown
Contributor

ojeda commented Feb 24, 2026

Thanks for this!

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.

Forward references to enum types end up generating the wrong type

3 participants