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

Disallow tuple variants with incorrect order of #[serde(default)] attributes #2561

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mingun
Copy link
Contributor

@Mingun Mingun commented Aug 8, 2023

Continuation of work from #2553, but expanded to tuple variants.

Actually, we should also disallow using #[serde(default)] on elements of newtype structs and newtype variants, but this is highly coupled with skip problems, so I wait before the relevant PRs will be merged

@Mingun
Copy link
Contributor Author

Mingun commented Mar 3, 2024

@dtolnay, @oli-obk, can you give some feedback?

@Mingun Mingun force-pushed the tuple-variant-default-check branch from 5740423 to aadc690 Compare July 23, 2024 16:32
…ributes

(review this commit with "ignore whitespace changes" option on)
@Mingun Mingun force-pushed the tuple-variant-default-check branch from aadc690 to 96d9034 Compare October 25, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant