From Jonathan Halmen to ~alva/zig-bare
--- src/test.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test.zig b/src/test.zig index 6b1d3df..eef5431 100644 --- a/src/test.zig +++ b/src/test.zig @@ -864,8 +864,7 @@ fn testCompileError(comptime code: []const u8, comptime expected_error: []const defer tmpfile.close(); _ = try tmpfile.write(boilerplate); _ = try tmpfile.write(code); var proc = try std.ChildProcess.init(&[_][]const u8{ "zig", "build-exe", fname }, testing.allocator); defer proc.deinit();[message trimmed]
From Jonathan Halmen to ~alva/zig-bare
--- src/test.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test.zig b/src/test.zig index c14ebc1..6b1d3df 100644 --- a/src/test.zig +++ b/src/test.zig @@ -803,7 +803,7 @@ test "invariant: unions must have at least 1 field (read)" { \\ var dec = Decoder.init(allocator); \\ try dec.decode(Foo{}, fbs.reader()); \\} , "union declarations must have at least one tag"); , "union initializer must initialize one field");[message trimmed]
From Jonathan Halmen to ~alva/zig-bare
this is not allowed anymore --- src/test.zig | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/test.zig b/src/test.zig index 38e267a..c14ebc1 100644 --- a/src/test.zig +++ b/src/test.zig @@ -145,7 +145,7 @@ test "read struct with void members" { \\pub fn main() void { \\ var fbs = io.fixedBufferStream("lol"); \\ const Foo = struct { a: u8, b: void }; \\ var dec = Decoder.init(testing.allocator);[message trimmed]
From Jonathan Halmen to ~alva/zig-bare
"Address-of Temporaries Now Produces Const Pointers" --- src/bare.zig | 57 +++++++--- src/test.zig | 300 ++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 257 insertions(+), 100 deletions(-) diff --git a/src/bare.zig b/src/bare.zig index 163fd38..00fb894 100644 --- a/src/bare.zig +++ b/src/bare.zig @@ -406,30 +406,44 @@ fn isValidHashMapKeyType(comptime T: type) bool { } test "read variable uint" { [message trimmed]
From Jonathan Halmen to ~alva/zig-bare
the 'items' declaration does not seem to exist. also it's not used, so just drop it --- src/bare.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bare.zig b/src/bare.zig index b218ea0..163fd38 100644 --- a/src/bare.zig +++ b/src/bare.zig @@ -375,8 +375,8 @@ fn isHashMap(comptime T: type) bool { } // These are the only parts of the HashMap API that are used. // `HashMapKeyType` and `HashMapValueType` add further constraints. [message trimmed]
From Jonathan Halmen to ~alva/zig-bare
this is not allowed anymore --- src/test.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test.zig b/src/test.zig index 29dd76c..dfc4d41 100644 --- a/src/test.zig +++ b/src/test.zig @@ -14,7 +14,7 @@ const expectEqual = testing.expectEqual; const expectEqualSlices = testing.expectEqualSlices; const expectError = testing.expectError; test "" {[message trimmed]
From Jonathan Halmen to ~alva/zig-bare
just realised that a fix snuck into the wrong commit, fixed it
From Jonathan Halmen to ~alva/zig-bare
--- src/test.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test.zig b/src/test.zig index 6b1d3df..eef5431 100644 --- a/src/test.zig +++ b/src/test.zig @@ -864,8 +864,7 @@ fn testCompileError(comptime code: []const u8, comptime expected_error: []const defer tmpfile.close(); _ = try tmpfile.write(boilerplate); _ = try tmpfile.write(code); var proc = try std.ChildProcess.init(&[_][]const u8{ "zig", "build-exe", fname }, testing.allocator); defer proc.deinit();[message trimmed]
From Jonathan Halmen to ~alva/zig-bare
--- src/test.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test.zig b/src/test.zig index 0693f79..6b1d3df 100644 --- a/src/test.zig +++ b/src/test.zig @@ -803,7 +803,7 @@ test "invariant: unions must have at least 1 field (read)" { \\ var dec = Decoder.init(allocator); \\ try dec.decode(Foo{}, fbs.reader()); \\} , "union declarations must have at least one tag"); , "union initializer must initialize one field");[message trimmed]
From Jonathan Halmen to ~alva/zig-bare
this is not allowed anymore --- src/test.zig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/test.zig b/src/test.zig index 38e267a..0693f79 100644 --- a/src/test.zig +++ b/src/test.zig @@ -145,7 +145,7 @@ test "read struct with void members" { \\pub fn main() void { \\ var fbs = io.fixedBufferStream("lol"); \\ const Foo = struct { a: u8, b: void }; \\ var dec = Decoder.init(testing.allocator);[message trimmed]