+
Skip to content

Conversation

ceyhunkerti
Copy link

@ceyhunkerti ceyhunkerti commented Feb 18, 2025

In zig 0.13 I got the below error and changed the accessor to reflect latest version of it.

❯ zig build
install
└─ install poop
└─ zig build-exe poop Debug native 1 errors
src/main.zig:386:57: error: no field named 'struct' in union 'builtin.Type'
inline for (@typeinfo(Command.Measurements).@"struct".fields) |field| {
^~~~~~~~~
/.../zig/zig-linux-x86_64-0.13.0/lib/std/builtin.zig:256:18: note: union declared here
pub const Type = union(enum) {

works with newer version of zig.
@andrewrk
Copy link
Owner

e283827

@andrewrk andrewrk closed this Feb 19, 2025
@andrewrk
Copy link
Owner

you are welcome to add 0.13.0 compatibility but must not break master branch compatibility. you can check the zig version at comptime

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.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载