diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-11-18 12:03:06 +0000 |
|---|---|---|
| committer | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-11-19 09:44:22 +0000 |
| commit | 806470b492f15c4e3350ce4a48e607f2c8e94ff8 (patch) | |
| tree | 3bbc7184dc62cc4f1e583c9e907620517f44e4c7 /lib/std/Thread/Mutex/Recursive.zig | |
| parent | 4ea472808437c932f6240c0df5e4d5912d282052 (diff) | |
| download | zig-806470b492f15c4e3350ce4a48e607f2c8e94ff8.tar.gz zig-806470b492f15c4e3350ce4a48e607f2c8e94ff8.zip | |
compiler: fix crash if file contents change during update
When reporting a compile error, we would load the new file, but assume
we could apply old AST/token indices (etc) to it, potentially causing
crashes. Instead, if the file stat has changed since it was loaded, just
emit an error that the file was modified mid-update.
Diffstat (limited to 'lib/std/Thread/Mutex/Recursive.zig')
0 files changed, 0 insertions, 0 deletions
