zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit e968e6d00473a0fb9de86ae99400503e4e40f0ef (tree)
parent df2413cf69a834253bf36a45242a92da6fa8ecae
Author: Mason Remaley <mason@gamesbymason.com>
Date:   Sun, 12 Apr 2026 14:09:22 -0700

Fixes typos/out of date comments, switches to unstable sort

Diffstat:
Mlib/std/debug.zig | 2--
Mlib/std/debug/Pdb.zig | 4++--
2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/std/debug.zig b/lib/std/debug.zig @@ -606,8 +606,6 @@ fn waitForOtherThreadToFinishPanicking() void { } } -/// This data structure is used by the Zig language code generation and -/// therefore must be kept in sync with the compiler implementation. pub const StackTrace = struct { /// Each element is the "return address" of a function call, meaning the instruction address /// which control flow will return to when the function returns. diff --git a/lib/std/debug/Pdb.zig b/lib/std/debug/Pdb.zig @@ -518,7 +518,7 @@ pub const BinaryAnnotation = union(enum) { } } - // Adapated from: + // Adapted from: // https://github.com/microsoft/microsoft-pdb/blob/805655a28bd8198004be2ac27e6e0290121a5e89/include/cvinfo.h#L4942 pub fn takePackedU32(reader: *Io.Reader) Io.Reader.Error!u32 { const b0: u32 = try reader.takeByte(); @@ -866,7 +866,7 @@ pub fn getModule(self: *Pdb, index: usize) !?*Module { } } - std.mem.sort(InlineeSourceLine, inlinee_source_lines.items, {}, InlineeSourceLine.lessThan); + std.mem.sortUnstable(InlineeSourceLine, inlinee_source_lines.items, {}, InlineeSourceLine.lessThan); break :b try inlinee_source_lines.toOwnedSlice(gpa); }; errdefer gpa.free(mod.inlinee_source_lines);