aboutsummaryrefslogtreecommitdiff
path: root/lib/std/json/stringify.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-01-05 11:28:16 +0000
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-01-11 08:54:47 +0000
commit04c9f50aec5c1d01ee2c230534454a0ddf551c38 (patch)
tree60b898e67a3a570bf44c15531647c6f575ac5c09 /lib/std/json/stringify.zig
parent6cfc9c0e02cb1ccf9edfbdc64fcca285fea022fb (diff)
downloadzig-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/json/stringify.zig')
0 files changed, 0 insertions, 0 deletions