diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-04-14 17:29:40 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-18 19:51:18 -0700 |
| commit | 77fdd76c16196441dce0f38ccea2eae01436c4be (patch) | |
| tree | 3300be415c21a5b5903d2cf6e5893abb2a19f5b9 /lib/std/http/Server.zig | |
| parent | 1e207f1edd500707032be093a5c8a91f0e16609a (diff) | |
| download | zig-77fdd76c16196441dce0f38ccea2eae01436c4be.tar.gz zig-77fdd76c16196441dce0f38ccea2eae01436c4be.zip | |
std: fix uses of comptime blocks in non-inline functions
ccf670c made using `return` from within a comptime block in a non-inline
function illegal, since it is a use of runtime control flow in a
comptime block. It is allowed if the function in question is `inline`,
since no actual control flow occurs in this case. A few functions from
std (notably `std.fmt.comptimePrint`) needed to be marked `inline` to
support this change.
Diffstat (limited to 'lib/std/http/Server.zig')
0 files changed, 0 insertions, 0 deletions
