authorgravatar for mason@gamesbymason.comMason Remaley <mason@gamesbymason.com> 2026-04-12 14:09:22-07:00
committergravatar for mason@gamesbymason.comMason Remaley <mason@gamesbymason.com> 2026-04-12 14:09:22-07:00
loge968e6d00473a0fb9de86ae99400503e4e40f0ef
tree22a1a2453e564423b5bd08473f18a26ca6a3efc3
parentdf2413cf69a834253bf36a45242a92da6fa8ecae

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


2 files changed, 2 insertions(+), 4 deletions(-)

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