Skip to content

Similar to native match pattern for tuple structs, make matches_pattern enforce exhaustive field checks for tuple structs by default, to be suppressed by explicit .. at the end of the pattern. #538

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

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

copybara-service[bot]
Copy link

Similar to native match pattern for tuple structs, make matches_pattern enforce exhaustive field checks for tuple structs by default, to be suppressed by explicit .. at the end of the pattern.

This change is not backward-compatible since it enforces field exhaustiveness by default in the absence of a trailing .. in the pattern.

Fixes #447

@copybara-service copybara-service bot force-pushed the test_704273542 branch 3 times, most recently from dfb10c1 to dbfddfb Compare December 13, 2024 17:48
…ern` enforce exhaustive field checks for tuple structs by default, to be suppressed by explicit `..` at the end of the pattern.

This change is not backward-compatible since it enforces field exhaustiveness by default in the absence of a trailing `..` in the pattern.

Fixes #447

PiperOrigin-RevId: 705914628
@copybara-service copybara-service bot merged commit a17b655 into main Dec 13, 2024
@copybara-service copybara-service bot deleted the test_704273542 branch December 13, 2024 17:52
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.

StructMatcher procedural macro
1 participant