Skip to content

Conversation

@copybara-service
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

2 participants