aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/dwarf.zig2
-rw-r--r--lib/std/hash/auto_hash.zig2
-rw-r--r--lib/std/special/c.zig6
-rw-r--r--lib/std/zig/render.zig2
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/std/dwarf.zig b/lib/std/dwarf.zig
index c5802240d4..085e394a8f 100644
--- a/lib/std/dwarf.zig
+++ b/lib/std/dwarf.zig
@@ -322,7 +322,7 @@ fn parseFormValue(allocator: *mem.Allocator, in_stream: anytype, form_id: u64, e
FORM_block1 => parseFormValueBlock(allocator, in_stream, endian, 1),
FORM_block2 => parseFormValueBlock(allocator, in_stream, endian, 2),
FORM_block4 => parseFormValueBlock(allocator, in_stream, endian, 4),
- FORM_block => x: {
+ FORM_block => {
const block_len = try nosuspend leb.readULEB128(usize, in_stream);
return parseFormValueBlockLen(allocator, in_stream, block_len);
},
diff --git a/lib/std/hash/auto_hash.zig b/lib/std/hash/auto_hash.zig
index 85f8e4b0d2..996d6ede38 100644
--- a/lib/std/hash/auto_hash.zig
+++ b/lib/std/hash/auto_hash.zig
@@ -129,7 +129,7 @@ pub fn hash(hasher: anytype, key: anytype, comptime strat: HashStrategy) void {
}
},
- .Union => |info| blk: {
+ .Union => |info| {
if (info.tag_type) |tag_type| {
const tag = meta.activeTag(key);
const s = hash(hasher, tag, strat);
diff --git a/lib/std/special/c.zig b/lib/std/special/c.zig
index c769bc358b..170bb98620 100644
--- a/lib/std/special/c.zig
+++ b/lib/std/special/c.zig
@@ -536,7 +536,7 @@ fn generic_fmod(comptime T: type, x: T, y: T) T {
// normalize x and y
if (ex == 0) {
i = ux << exp_bits;
- while (i >> bits_minus_1 == 0) : (b: {
+ while (i >> bits_minus_1 == 0) : ({
ex -= 1;
i <<= 1;
}) {}
@@ -547,7 +547,7 @@ fn generic_fmod(comptime T: type, x: T, y: T) T {
}
if (ey == 0) {
i = uy << exp_bits;
- while (i >> bits_minus_1 == 0) : (b: {
+ while (i >> bits_minus_1 == 0) : ({
ey -= 1;
i <<= 1;
}) {}
@@ -573,7 +573,7 @@ fn generic_fmod(comptime T: type, x: T, y: T) T {
return 0 * x;
ux = i;
}
- while (ux >> digits == 0) : (b: {
+ while (ux >> digits == 0) : ({
ux <<= 1;
ex -= 1;
}) {}
diff --git a/lib/std/zig/render.zig b/lib/std/zig/render.zig
index 454ddde160..c516250a17 100644
--- a/lib/std/zig/render.zig
+++ b/lib/std/zig/render.zig
@@ -2385,7 +2385,7 @@ fn renderTokenOffset(
}
}
- if (next_token_id != .LineComment) blk: {
+ if (next_token_id != .LineComment) {
switch (space) {
Space.None, Space.NoNewline => return,
Space.Newline => {