ReviewOS

also looking at this

zig-utils/zig-regex

Migrate to zig 0.16

#5
Closed illya-laifu wants to merge zig-0.16-migrations into main
13 files +222 -239

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

src/builder.zigmodified+2-2
Changes to src/builder.zig
@@ -29,7 +29,7 @@ pub const Builder = struct {
2929 pub fn init(allocator: std.mem.Allocator) Builder {
3030 return .{
3131 .allocator = allocator,
32 .parts = std.ArrayList([]const u8){},
32 .parts = .empty,
3333 };
3434 }
3535
@@ -304,7 +304,7 @@ pub const Composer = struct {
304304 pub fn init(allocator: std.mem.Allocator) Composer {
305305 return .{
306306 .allocator = allocator,
307 .patterns = std.ArrayList([]const u8){},
307 .patterns = .empty,
308308 };
309309 }
310310
src/lint.zigmodified+1-1
Changes to src/lint.zig
@@ -63,7 +63,7 @@ pub const Lint = struct {
6363 pub fn init(allocator: std.mem.Allocator, pattern: []const u8) Lint {
6464 return .{
6565 .allocator = allocator,
66 .warnings = std.ArrayList(Warning){},
66 .warnings = .empty,
6767 .pattern = pattern,
6868 };
6969 }