aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/ignored_deferred_function_call.zig
AgeCommit message (Collapse)Author
2025-09-16test: rename backend=stage2 to backend=selfhosted, and add backend=autoAlex Rønne Petersen
backend=auto (now the default if backend is omitted) means to let the compiler pick whatever backend it wants as the default. This is important for platforms where we don't yet have a self-hosted backend, such as loongarch64. Also purge a bunch of redundant target=native.
2024-05-14Sema: improve error set/union discard/ignore errorsr00ster91
Previously the error had a note suggesting to use `try`, `catch`, or `if`, even for error sets where none of those work. Instead, in case of an error set the way you can handle the error depends very much on the specific case. For example you might be in a `catch` where you are discarding or ignoring the error set capture value, in which case one way to handle the error might be to `return` the error. So, in that case, we do not attach that error note. Additionally, this makes the error tell you what kind of an error it is: is it an error set or an error union? This distinction is very relevant in how to handle the error.
2023-06-19all: zig fmt and rename "@XToY" to "@YFromX"Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-01-30Sema: replace backticks with single quotesVeikka Tuominen
Most error messages already use single quotes for everything so this makes the remaining ones consistent.
2022-07-11Sema: add "cannot convert to payload type" error notesVeikka Tuominen
2022-07-01AstGen: use elem_{ptr,val}_node for array access syntaxVeikka Tuominen