Skip to content

fix: Ignore deprecation warnings on generated code#481

Open
ABorgna wants to merge 1 commit intoPeternator7:masterfrom
ABorgna:ab/allow-deprecated-in-macros
Open

fix: Ignore deprecation warnings on generated code#481
ABorgna wants to merge 1 commit intoPeternator7:masterfrom
ABorgna:ab/allow-deprecated-in-macros

Conversation

@ABorgna
Copy link
Copy Markdown

@ABorgna ABorgna commented Mar 20, 2026

Deprecating a field or variant produced un-ignorable warnings in the code generated by the derive macros (the only solution was to global #![allow(deprecated)]s for the whole module).

Fixes #404.

Added a test that fails to compile without the fix.

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.

derive(EnumDiscriminants) expansion warns on deprecated variants

1 participant