Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add #[allow(deprecated)] for generated code #216

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Conversation

pkhry
Copy link
Contributor

@pkhry pkhry commented Nov 18, 2024

Description

Add allow(deprecated) to the code generated by scale-info. This removes noisy warnings when deriving on a enum types with deprecated variants or variants with deprecated contents.One of the times this happens is when using types marked as deprecated with frame-support::construct_runtime! with no way to suppress the noisy warnings from the generated code.

@pkhry pkhry requested review from jsdw and lexnv November 18, 2024 10:33
@pkhry pkhry merged commit 0b1adfe into master Nov 19, 2024
2 checks passed
@pkhry pkhry deleted the pkhry/deprecation_attr branch November 19, 2024 10:55
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.

3 participants