Repository navigation
feat: migrate to Zig 0.16 #11
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
Changes from all commits
fa57583
2de40f9
6ad88cb
4ef722d
e441eb8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,5 +12,5 @@ pub const heuristics_test = @import("heuristics_test.zig"); | |
| pub const zon_coercion_test = @import("zon_coercion_test.zig"); | ||
|
|
||
| test { | ||
| std.testing.refAllDeclsRecursive(@This()); | ||
| std.testing.refAllDecls(@This()); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Switching to
|
||
| } | ||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current implementation of$O(N \cdot M)$ complexity at comptime. This can be simplified and optimized using
MergedStructTypeuses a nestedinline forloop to find override types, resulting instd.meta.fieldInfoto directly access field metadata by name. Additionally, using the actual alignment from the source fields (bf.alignment,of.alignment, orinfo.alignment) is preferred over forcing@alignOf(type)to ensure any custom alignment specified in the original types is preserved. Finally, for the@Structcall, passing&.{}instead ofnullfor the declarations argument is more idiomatic for a struct with no declarations.