diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-03-30 22:59:25 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-05-16 11:55:35 +0100 |
| commit | 70040778fbde5d7fcbbfc26dbabc700024c538d5 (patch) | |
| tree | 171a2b244a979e0943305f1460e466c6a1d2123b /src/Zcu.zig | |
| parent | cc1475c91da6005d72192b426e8b9ec6db7a3f74 (diff) | |
| download | zig-70040778fbde5d7fcbbfc26dbabc700024c538d5.tar.gz zig-70040778fbde5d7fcbbfc26dbabc700024c538d5.zip | |
Compilation: fix reference trace behavior without `-freference-trace`
When `-freference-trace` is not passed, we want to show exactly one
reference trace. Previously, we set the reference trace root in `Sema`
iff there were no other failed analyses. However, this results in an
arbitrary error being the one with the reference trace after error
sorting. It is also incompatible with incremental compilation, where
some errors might be unreferenced. Instead, set the field on all
analysis errors, and decide in `Compilation.getAllErrorsAlloc` which
reference trace[s] to actually show.
Diffstat (limited to 'src/Zcu.zig')
0 files changed, 0 insertions, 0 deletions
