diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-08-19 20:26:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-19 20:26:46 -0400 |
| commit | e5e6eb983159df0a089e7d1c8efcea9006e253a9 (patch) | |
| tree | 80611a8b7faca0d150bcb66c4d8403134a339a49 /lib/std | |
| parent | 39f43fea8d0f6aa1c69cb7c3209f57f5ce00b273 (diff) | |
| parent | b75eeae5951f2dc4ff19f795ebd856c134722375 (diff) | |
| download | zig-e5e6eb983159df0a089e7d1c8efcea9006e253a9.tar.gz zig-e5e6eb983159df0a089e7d1c8efcea9006e253a9.zip | |
Merge pull request #12368 from ziglang/stage3-default
make self-hosted the default compiler
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/builtin.zig | 2 | ||||
| -rw-r--r-- | lib/std/coff.zig | 2 | ||||
| -rw-r--r-- | lib/std/os/linux/bpf.zig | 2 | ||||
| -rw-r--r-- | lib/std/os/windows.zig | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 2c2bc92c96..69312df838 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -866,7 +866,7 @@ pub fn panicUnwrapError(st: ?*StackTrace, err: anyerror) noreturn { pub fn panicOutOfBounds(index: usize, len: usize) noreturn { @setCold(true); - std.debug.panic("attempt to index out of bound: index {d}, len {d}", .{ index, len }); + std.debug.panic("index out of bounds: index {d}, len {d}", .{ index, len }); } pub noinline fn returnError(st: *StackTrace) void { diff --git a/lib/std/coff.zig b/lib/std/coff.zig index 7c077a9ec8..4371444b96 100644 --- a/lib/std/coff.zig +++ b/lib/std/coff.zig @@ -383,7 +383,7 @@ const OptionalHeader = struct { image_base: u64, }; -const DebugDirectoryEntry = packed struct { +const DebugDirectoryEntry = extern struct { characteristiccs: u32, time_date_stamp: u32, major_version: u16, diff --git a/lib/std/os/linux/bpf.zig b/lib/std/os/linux/bpf.zig index 4cb9dbf5c5..147bf610d8 100644 --- a/lib/std/os/linux/bpf.zig +++ b/lib/std/os/linux/bpf.zig @@ -458,7 +458,7 @@ pub const Insn = packed struct { else ImmOrReg{ .imm = src }; - const src_type = switch (imm_or_reg) { + const src_type: u8 = switch (imm_or_reg) { .imm => K, .reg => X, }; diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index c79ccb5113..b0a0f6d407 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -1802,7 +1802,7 @@ pub const PathSpace = struct { data: [PATH_MAX_WIDE:0]u16, len: usize, - pub fn span(self: PathSpace) [:0]const u16 { + pub fn span(self: *const PathSpace) [:0]const u16 { return self.data[0..self.len :0]; } }; |
