| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-01-03 | Zir: split up start and end of range in `for_len` | mlugg | |
| The old lowering was kind of neat, but it unintentionally allowed the syntax `for (123) |_| { ... }`, and there wasn't really a way to fix that. So, instead, we include both the start and the end of the range in the `for_len` instruction (each operand to `for` now has *two* entries in this multi-op instruction). This slightly increases the size of ZIR for loops of predominantly indexables, but the difference is small enough that it's not worth complicating ZIR to try and fix it. | |||
| 2023-11-19 | test: update cases to silence 'var is never mutated' errors | mlugg | |
| 2023-06-19 | all: zig fmt and rename "@XToY" to "@YFromX" | Eric Joldasov | |
| Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> | |||
| 2023-05-06 | Sema: fix and improve errors for `for` loop objects and non-indexables | r00ster91 | |
| Operands to @memcpy and @memset were being called "for loop operands" in the error. | |||
| 2023-02-18 | implement error for unbounded for loops | Andrew Kelley | |
| 2023-02-18 | improve error message for byref capture of byval array | Andrew Kelley | |
| 2023-02-18 | fix source location for not-indexable for loop errors | Andrew Kelley | |
| 2023-02-18 | Sema: improve error message for mismatched for loop lengths | Andrew Kelley | |
