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

Chore: Add witness hint for enum_tuple_variant_changed_kind lint #1211

Conversation

GlitchlessCode
Copy link
Contributor

Adds a witness hint for the enum_tuple_variant_changed_kind lint.

Example

enum_tuple_variant_changed_kind outputs the following witness hint for one of the ./test_crates/enum_tuple_variant_changed_kind/ tests.

match value {
    enum_tuple_variant_changed_kind::MultipleTest::WillBecomeStructLike(..) => (),
    _ => (),
}

This compiles on the old version, but not on the new due to the presence of tuple destructuring, as when it changes type (to struct-like or unit-like), it can no longer be destructured as a tuple.

@obi1kenobi obi1kenobi merged commit 6e932d0 into obi1kenobi:main Mar 24, 2025
31 of 32 checks passed
@GlitchlessCode GlitchlessCode deleted the enum_tuple_variant_changed_kind-witness branch March 25, 2025 03:05
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.

2 participants