| ... | ... | @@ -137,7 +137,7 @@ pub fn hash(hasher: anytype, key: anytype, comptime strat: HashStrategy) void { |
| 137 | 137 | } |
| 138 | 138 | }, |
| 139 | 139 | |
| 140 | | .@"union" => |info| { |
| 140 | .@"union" => |info| blk: { |
| 141 | 141 | if (info.tag_type) |tag_type| { |
| 142 | 142 | const tag = std.meta.activeTag(key); |
| 143 | 143 | hash(hasher, tag, strat); |
| ... | ... | @@ -146,9 +146,7 @@ pub fn hash(hasher: anytype, key: anytype, comptime strat: HashStrategy) void { |
| 146 | 146 | if (field.type != void) { |
| 147 | 147 | hash(hasher, @field(key, field.name), strat); |
| 148 | 148 | } |
| 149 | | // TODO use a labelled break when it does not crash the compiler. cf #2908 |
| 150 | | // break :blk; |
| 151 | | return; |
| 149 | break :blk; |
| 152 | 150 | } |
| 153 | 151 | } |
| 154 | 152 | unreachable; |