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

Fix build for latest Zig master #1839

Merged
merged 3 commits into from Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.zig
Expand Up @@ -6,8 +6,8 @@ const zls_version = std.SemanticVersion{ .major = 0, .minor = 12, .patch = 0 };
const zls_version_is_tagged: bool = false;

/// document the latest breaking change that caused a change to the string below:
/// std.os: extract and separate std.posix
const min_zig_string = "0.12.0-dev.3385+3a836b480";
/// compiler: implement analysis-local comptime-mutable memory
const min_zig_string = "0.12.0-dev.3451+405502286";

pub fn build(b: *Build) !void {
const target = b.standardTargetOptions(.{});
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lsp.zig
Expand Up @@ -107,7 +107,7 @@ pub fn EnumCustomStringValues(comptime T: type, comptime contains_empty_enum: bo
for (fields[0 .. fields.len - 1], 0..) |field, i| {
kvs_array[i] = .{ field.name, @field(T, field.name) };
}
break :build_kvs kvs_array[0..];
break :build_kvs kvs_array;
};
/// NOTE: this maps 'empty' to .empty when T contains an empty enum
/// this shouldn't happen but this doesn't do any harm
Expand Down
2 changes: 1 addition & 1 deletion src/uri.zig
Expand Up @@ -15,7 +15,7 @@ const reserved_escapes = blk: {
escapes[i][0] = '%';
_ = std.fmt.bufPrint(escapes[i][1..], "{X}", .{c}) catch unreachable;
}
break :blk &escapes;
break :blk escapes;
};

/// Returns a URI from a path, caller owns the memory allocated with `allocator`
Expand Down