build: update to 0.14.0-dev.3039

This commit is contained in:
CJ van den Berg 2025-02-04 21:05:33 +01:00
parent 0dee31636e
commit 72aa6150c5
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 9 additions and 9 deletions

View file

@ -1 +1 @@
0.14.0-dev.2546+0ff0bdb4a 0.14.0-dev.3039+e61acd8eb

View file

@ -246,9 +246,9 @@ pub fn writeValue(writer: anytype, value: anytype) @TypeOf(writer).Error!void {
} }
}, },
.pointer => |ptr_info| switch (ptr_info.size) { .pointer => |ptr_info| switch (ptr_info.size) {
.One => return writeValue(writer, value.*), .one => return writeValue(writer, value.*),
.Many, .C => @compileError("cannot write type '" ++ @typeName(T) ++ "' to cbor stream"), .many, .c => @compileError("cannot write type '" ++ @typeName(T) ++ "' to cbor stream"),
.Slice => { .slice => {
if (ptr_info.child == u8) return writeString(writer, value); if (ptr_info.child == u8) return writeString(writer, value);
if (value.len == 0) return writeNull(writer); if (value.len == 0) return writeNull(writer);
try writeArrayHeader(writer, value.len); try writeArrayHeader(writer, value.len);
@ -661,9 +661,9 @@ pub fn matchValue(iter: *[]const u8, value: anytype) Error!bool {
.comptime_int => return matchIntValue(i64, iter, value), .comptime_int => return matchIntValue(i64, iter, value),
.bool => matchBoolValue(iter, value), .bool => matchBoolValue(iter, value),
.pointer => |info| switch (info.size) { .pointer => |info| switch (info.size) {
.One => matchValue(iter, value.*), .one => matchValue(iter, value.*),
.Many, .C => matchError(T), .many, .c => matchError(T),
.Slice => if (info.child == u8) matchStringValue(iter, value) else matchArray(iter, value, info), .slice => if (info.child == u8) matchStringValue(iter, value) else matchArray(iter, value, info),
}, },
.@"struct" => |info| if (info.is_tuple) .@"struct" => |info| if (info.is_tuple)
matchArray(iter, value, info) matchArray(iter, value, info)
@ -856,7 +856,7 @@ fn Extractor(comptime T: type) type {
.int, .comptime_int => return matchInt(T, iter, self.dest), .int, .comptime_int => return matchInt(T, iter, self.dest),
.bool => return matchBool(iter, self.dest), .bool => return matchBool(iter, self.dest),
.pointer => |ptr_info| switch (ptr_info.size) { .pointer => |ptr_info| switch (ptr_info.size) {
.Slice => { .slice => {
if (ptr_info.child == u8) return matchString(iter, self.dest) else extractError(T); if (ptr_info.child == u8) return matchString(iter, self.dest) else extractError(T);
}, },
else => extractError(T), else => extractError(T),

View file

@ -260,7 +260,7 @@ pub fn exit_fmt(comptime fmt: anytype, args: anytype) error{Exit} {
} }
pub fn exit_error(e: anyerror, stack_trace: ?*std.builtin.StackTrace) error{Exit} { pub fn exit_error(e: anyerror, stack_trace: ?*std.builtin.StackTrace) error{Exit} {
if (stack_trace_on_errors and e == error.OutOfMemory) std.debug.panicExtra(stack_trace, null, "{any}", .{e}); if (stack_trace_on_errors and e == error.OutOfMemory) std.debug.panic("{any}", .{e});
return switch (e) { return switch (e) {
error.Exit => error.Exit, error.Exit => error.Exit,
else => set_error_msg(exit_message(e, stack_trace)), else => set_error_msg(exit_message(e, stack_trace)),