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

Remove default from ComputeIdKindTable switch #4280

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

geoffromer
Copy link
Contributor

I've repeatedly struggled with very obscure build errors that turned out to be caused by a newly-introduced node kind getting inappropriately defaulted to Id::Kind::Invalid. Dropping the default will turn those mistakes into much more straightforward "missing case in switch" errors.

@zygoloid zygoloid added this pull request to the merge queue Sep 6, 2024
Merged via the queue into carbon-language:trunk with commit 49f2136 Sep 6, 2024
10 checks passed
dwblaikie pushed a commit to dwblaikie/carbon-lang that referenced this pull request Sep 9, 2024
I've repeatedly struggled with very obscure build errors that turned out
to be caused by a newly-introduced node kind getting inappropriately
defaulted to `Id::Kind::Invalid`. Dropping the default will turn those
mistakes into much more straightforward "missing case in switch" errors.
@geoffromer geoffromer deleted the id-kind-switch branch September 30, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants