diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-01-05 11:28:16 +0000 |
|---|---|---|
| committer | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-01-11 08:54:47 +0000 |
| commit | 04c9f50aec5c1d01ee2c230534454a0ddf551c38 (patch) | |
| tree | 60b898e67a3a570bf44c15531647c6f575ac5c09 /lib/std/Build/Step/CheckObject.zig | |
| parent | 6cfc9c0e02cb1ccf9edfbdc64fcca285fea022fb (diff) | |
| download | zig-04c9f50aec5c1d01ee2c230534454a0ddf551c38.tar.gz zig-04c9f50aec5c1d01ee2c230534454a0ddf551c38.zip | |
compiler: improve "... contains reference to comptime var" errors
`Sema.explainWhyValueContainsReferenceToComptimeVar` (concise name!)
adds notes to an error explaining how to get from a given `Value` to a
pointer to some `comptime var` (or a comptime field). Previously, this
error could be very opaque in any case where it wasn't obvious where the
comptime var pointer came from; particularly for type captures. Now, the
error notes explain this to the user.
Diffstat (limited to 'lib/std/Build/Step/CheckObject.zig')
0 files changed, 0 insertions, 0 deletions
