mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
Fixes typos/out of date comments, switches to unstable sort
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user