| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-11-20 | Sema: fix memory management of missing field error | Veikka Tuominen | |
| Closes #13590 | |||
| 2022-11-20 | Sema: fix missing error on mismatched array init count | Veikka Tuominen | |
| Closes #13582 | |||
| 2022-11-20 | Module: fix compile error for non-comptime-known global initializer | Veikka Tuominen | |
| 2022-11-20 | Sema: fix type check in `zirIntToPtr` | Veikka Tuominen | |
| Simple fix: don't assume a ptr type before it has been checked. Closes #13567 | |||
| 2022-11-15 | Fix error reporting the wrong line for struct field inits (#13502) | mparadinha | |
| * point to init part of field delc when that's where the error occurs * update test to reflect fixed error message * only lookup source location in case of error | |||
| 2022-11-11 | AstGen: make pointless discard error more strict | Veikka Tuominen | |
| The error should only happen as a result of `_ = <expr>` not for an operand of a break expression that is discarded. Closes #13212 | |||
| 2022-11-11 | AstGen: use `condbr_inline` if force_comptime is set | Veikka Tuominen | |
| The `finishThenElseBlock` would correctly use `break_inline` which would cause Sema to use `addRuntimeBreak` instead of doing the branch at comptime. | |||
| 2022-11-07 | Merge pull request #13446 from Vexu/stage2-fixes | Veikka Tuominen | |
| Stage2 bug fixes | |||
| 2022-11-05 | stage2: address of threadlocal variable is not comptime known | Veikka Tuominen | |
| Closes #13215 | |||
| 2022-11-05 | stage2: bitsize of packed struct should trigger backing int ty check | Veikka Tuominen | |
| Closes #13398 | |||
| 2022-11-05 | Merge pull request #13101 from alichraghi/o4 | Andrew Kelley | |
| 2022-11-04 | Sema: detect division overflow | Veikka Tuominen | |
| Closes #13434 | |||
| 2022-11-04 | all: rename i386 to x86 | Ali Chraghi | |
| 2022-10-29 | Sema: improve compile error for casting double pointer to anyopaque pointer | Veikka Tuominen | |
| Closes #12042 | |||
| 2022-10-29 | Sema: add error note for wrong pointer dereference syntax | Veikka Tuominen | |
| Closes #1897 | |||
| 2022-10-28 | Sema: further enhance explanation of why expr is evaluated at comptime | Veikka Tuominen | |
| 2022-10-28 | Merge pull request #13290 from Vexu/generic-deletion-mitigation | Andrew Kelley | |
| Mitigate generic deletion bug | |||
| 2022-10-27 | Merge pull request #13288 from Vexu/opt-slice | Andrew Kelley | |
| Optimize size of optional slices (+ some fixes) | |||
| 2022-10-27 | Sema: Prevent coercion from tuple pointer to mutable slice. | InKryption | |
| Also fix some stdlib code affected by this. Co-authored by: topolarity <topolarity@tapscott.me> | |||
| 2022-10-27 | Sema: coerce zero-bit generic args are coerced properly | Veikka Tuominen | |
| Closes #13307 | |||
| 2022-10-27 | Sema: add error for too big packed struct | Veikka Tuominen | |
| 2022-10-27 | remove test case triggering generic deletion bug | Veikka Tuominen | |
| This test should be restored once the underlying issue is resolved (with the typo fixed). | |||
| 2022-10-20 | stage2: improve source location of assignment | Veikka Tuominen | |
| 2022-10-20 | Sema: allow runtime only instructions to be emitted in outside functions | Veikka Tuominen | |
| It is possible to get comptime-known values from runtime-known values for example the length of array. Allowing runtime only instructions to be emitted outside function bodies allows these operations to happen. In places where comptime-known values are required we have other methods to ensure that and they usually result in more specific compile errors too. Closes #12240 | |||
| 2022-10-12 | fix hyphenation in test case | Veikka Tuominen | |
| Follow up to 51d9db856978610c24b3fed50a9550455a2eb64b | |||
| 2022-10-12 | Merge pull request #13081 from r00ster91/docs | Andrew Kelley | |
| fix(text): hyphenation and other fixes | |||
| 2022-10-10 | Merge pull request #13075 from Vexu/stage2-fixes | Veikka Tuominen | |
| Stage2 misc fixes | |||
| 2022-10-08 | Sema: add error for capturing a runtime value outside of function scope | Veikka Tuominen | |
| Closes #13104 | |||
| 2022-10-08 | Sema: restore sema.src after inline call | Veikka Tuominen | |
| Closes #13099 | |||
| 2022-10-07 | Sema: allow equality comparisons between error unions and error sets | Veikka Tuominen | |
| Closes #1302 | |||
| 2022-10-07 | AstGen: use 'shadows' instead of 'redeclaration' when names are in different ↵ | Veikka Tuominen | |
| scopes Closes #8532 | |||
| 2022-10-06 | Sema: fix error location when casting pointer to slice | Ali Chraghi | |
| Co-authored-by: Veikka Tuominen <git@vexu.eu> | |||
| 2022-10-06 | Sema: disallow using stage1 fn ptrs in extern contexts | Veikka Tuominen | |
| Closes #13022 | |||
| 2022-10-06 | Sema: generic function instantiation inherits parent's branch quota | Veikka Tuominen | |
| Closes #12624 | |||
| 2022-10-06 | Sema: disallow fieldParentPtr and offsetOf on comptime fields | Veikka Tuominen | |
| Comptime fields are tied to the type and behave more like declarations so these operations cannot return anything useful for them. | |||
| 2022-10-06 | stage2: add error for non-void error union payload being ignored | Veikka Tuominen | |
| See https://github.com/ziglang/zig/pull/6060#discussion_r471032912 | |||
| 2022-10-05 | fix(text): hyphenate "runtime" adjectives | r00ster91 | |
| 2022-10-05 | fix(text): hyphenate "comptime" adjectives | r00ster91 | |
| 2022-10-05 | fix(text): hyphenation and other fixes | r00ster91 | |
| 2022-10-05 | Sema: avoid passing undefined as reason to `failWithNeededComptime` | Veikka Tuominen | |
| Closes #13046 | |||
| 2022-10-03 | Merge pull request #12979 from Vexu/inline-switch | Andrew Kelley | |
| Implement inline switch cases | |||
| 2022-10-03 | Sema: fix function paramater count mismatch note | Jacob Young | |
| expected type 'fn() void', found 'fn(i32) void' function with 0 parameters cannot cast into a function with 0 parameters => expected type 'fn() void', found 'fn(i32) void' function with 1 parameters cannot cast into a function with 0 parameters | |||
| 2022-10-03 | Sema: require reified packed struct fields to have zero alignment | Julian | |
| 2022-09-30 | stage2: improve error message for missing member in file root struct | Veikka Tuominen | |
| * the root struct decl name is fully qualified this prevents error messages containing 'main.main' * avoid declared here note when file struct is missing a member It always points at the start of the file which might contain another container misleading the user. | |||
| 2022-09-29 | Sema: improve source location in errors | Igor Anić | |
| resolves #12793 | |||
| 2022-09-28 | stage2: detect duplicate enum values | Jacob G-W | |
| Closes #12805 | |||
| 2022-09-27 | Sema: check that reified enum field values fits tag type. | InKryption | |
| 2022-09-27 | Sema: implement `inline else` for errors enums and bools | Veikka Tuominen | |
| 2022-09-27 | add inline switch union tag captures | Veikka Tuominen | |
| 2022-09-27 | AstGen: analyze inline switch cases | Veikka Tuominen | |
