diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-08-13 20:20:38 +0100 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-08-17 18:50:10 -0400 |
| commit | 50960fac80b1d04f7858215d963fa64a7583210b (patch) | |
| tree | 5d407fb1c0bd21ddfcaddadcb835084674b0376e /lib/std/bounded_array.zig | |
| parent | 4e5834a9f247c60fcc1d1da5f3b2c00efdb8f4e4 (diff) | |
| download | zig-50960fac80b1d04f7858215d963fa64a7583210b.tar.gz zig-50960fac80b1d04f7858215d963fa64a7583210b.zip | |
compiler: be more cautious about source locations
Two fixes here.
* Prevent a crash when sorting the list of analysis errors when some
errors refer to lost source locations. These errors can be sorted
anywhere in the list, because they are (in theory) guaranteed to never
be emitted by the `resolveReferences` logic. This case occurs, for
instance, when a declaration has compile errors in the initial update
and is deleted in the second update.
* Prevent a crash when resolving the source location for `entire_file`
errors for a non-existent file. This is the bug underlying #20954.
Resolves: #20954.
Diffstat (limited to 'lib/std/bounded_array.zig')
0 files changed, 0 insertions, 0 deletions
