diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-01-22 16:47:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 16:47:45 +0000 |
| commit | 61fe307d0f05eea901577900f4ab2bdaf0ffb35f (patch) | |
| tree | 540a47aad6da00421777f121c6b9e568f541918f /lib/std/zig.zig | |
| parent | 941677e08318c2baaabc9d0fc87892d1b63487ae (diff) | |
| parent | e864c38cc38095a1496229803465fdd0d079f9c3 (diff) | |
| download | zig-61fe307d0f05eea901577900f4ab2bdaf0ffb35f.tar.gz zig-61fe307d0f05eea901577900f4ab2bdaf0ffb35f.zip | |
Merge pull request #22571 from mlugg/various-fixes-again
compiler: a few fixes
Diffstat (limited to 'lib/std/zig.zig')
| -rw-r--r-- | lib/std/zig.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/zig.zig b/lib/std/zig.zig index 6fec585326..4ebb95c522 100644 --- a/lib/std/zig.zig +++ b/lib/std/zig.zig @@ -788,6 +788,7 @@ pub const SimpleComptimeReason = enum(u32) { // Miscellaneous reasons. comptime_keyword, comptime_call_modifier, + inline_loop_operand, switch_item, tuple_field_default_value, struct_field_default_value, @@ -863,6 +864,7 @@ pub const SimpleComptimeReason = enum(u32) { .comptime_keyword => "'comptime' keyword forces comptime evaluation", .comptime_call_modifier => "'.compile_time' call modifier forces comptime evaluation", + .inline_loop_operand => "inline loop condition must be comptime-known", .switch_item => "switch prong values must be comptime-known", .tuple_field_default_value => "tuple field default value must be comptime-known", .struct_field_default_value => "struct field default value must be comptime-known", |
