diff options
| author | Mason Remaley <mason@anthropicstudios.com> | 2025-02-15 15:42:59 -0800 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-04-02 05:53:22 +0100 |
| commit | 06ee383da9a23016dcb25ff7cb6811e3dc2c387e (patch) | |
| tree | a1f407023746af27e8338c08b34a57336ae50cc6 /src/InternPool.zig | |
| parent | 1b62a22268117340ee7a17f019df01cd39ec1421 (diff) | |
| download | zig-06ee383da9a23016dcb25ff7cb6811e3dc2c387e.tar.gz zig-06ee383da9a23016dcb25ff7cb6811e3dc2c387e.zip | |
compiler: allow `@import` of ZON without a result type
In particular, this allows importing `build.zig.zon` at comptime.
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index bffed4f38e..752bc8adb8 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -2136,6 +2136,7 @@ pub const Key = union(enum) { /// To avoid making this key overly complex, the type-specific data is hashed by Sema. reified: struct { /// A `reify`, `struct_init`, `struct_init_ref`, or `struct_init_anon` instruction. + /// Alternatively, this is `main_struct_inst` of a ZON file. zir_index: TrackedInst.Index, /// A hash of this type's attributes, fields, etc, generated by Sema. type_hash: u64, |
