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

Bring back pattern match exhaustivity checking for macros #22622

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

Conversation

jchyb
Copy link
Contributor

@jchyb jchyb commented Feb 18, 2025

Also move the -Werror reporting until after the suspended warning reporting - this was needed for the added test to work (as previously the compilation would not error out even if -Werror was used).

Fixes #22212

Also move the -Werror reporting until after the suspended warning
reporting - this was needed for the added test to work (as previously
the compilation would not error out even if -Werror was used).
@jchyb
Copy link
Contributor Author

jchyb commented Feb 18, 2025

@dwijnand Is that something we can do? I saw that the changes in 4f22672 were intentional. Unlike reachability, it's easy enough to suppress exhaustivity checks on the user side in macros (and, if left disabled in the compiler, implementing those checks on the user side seems difficult). What do you think?

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.

Changes from 3.4.0 breaks match exhaustive checking of a macros
2 participants