From 06ee383da9a23016dcb25ff7cb6811e3dc2c387e Mon Sep 17 00:00:00 2001 From: Mason Remaley Date: Sat, 15 Feb 2025 15:42:59 -0800 Subject: compiler: allow `@import` of ZON without a result type In particular, this allows importing `build.zig.zon` at comptime. --- src/InternPool.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/InternPool.zig') 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, -- cgit v1.2.3