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

disallow non scalar sentinels in array types #22473

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

xdBronch
Copy link
Contributor

closes #22472

@mlugg
Copy link
Member

mlugg commented Jan 12, 2025

Would you also be able to add this check to the .pointer and .array cases in zirReify (corresponding to @Type), and add corresponding tests? (I'd personally just combine all these tests into one non_scalar_sentinel.zig.)

@xdBronch
Copy link
Contributor Author

oh sure, didnt realize that was a separate code path

src/Sema.zig Show resolved Hide resolved
src/Sema.zig Show resolved Hide resolved
@mlugg mlugg enabled auto-merge (rebase) January 12, 2025 23:54
@mlugg mlugg disabled auto-merge January 12, 2025 23:54
@mlugg mlugg enabled auto-merge (squash) January 12, 2025 23:54
@mlugg mlugg merged commit fb43e91 into ziglang:master Jan 13, 2025
10 checks passed
@xdBronch xdBronch deleted the push-ykprszstmnqu branch January 13, 2025 05:29
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.

non scalar sentinels allowed in array types
2 participants