aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-20 18:24:01 -0500
committerGitHub <noreply@github.com>2022-01-20 18:24:01 -0500
commitc9ae24503dc8da2e59f46619695bf4eb863fb3ac (patch)
treed55084efed19c32fbccb0c96959940796a1d0c43 /src/Module.zig
parentf763000dc918c2367ebc181645eb48db896205d8 (diff)
parent1f823eecdd071f619c761a743119f1a2a89af1bf (diff)
downloadzig-c9ae24503dc8da2e59f46619695bf4eb863fb3ac.tar.gz
zig-c9ae24503dc8da2e59f46619695bf4eb863fb3ac.zip
Merge pull request #10649 from ziglang/stage2-tuples
stage2: implement tuples
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Module.zig b/src/Module.zig
index c66509f33a..1cb890b886 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -821,6 +821,8 @@ pub const ErrorSet = struct {
}
};
+pub const RequiresComptime = enum { no, yes, unknown, wip };
+
/// Represents the data that a struct declaration provides.
pub const Struct = struct {
/// The Decl that corresponds to the struct itself.
@@ -849,6 +851,7 @@ pub const Struct = struct {
/// If true, definitely nonzero size at runtime. If false, resolving the fields
/// is necessary to determine whether it has bits at runtime.
known_has_bits: bool,
+ requires_comptime: RequiresComptime = .unknown,
pub const Fields = std.StringArrayHashMapUnmanaged(Field);
@@ -1038,6 +1041,7 @@ pub const Union = struct {
// which `have_layout` does not ensure.
fully_resolved,
},
+ requires_comptime: RequiresComptime = .unknown,
pub const Field = struct {
/// undefined until `status` is `have_field_types` or `have_layout`.