Commit 5cf918143c

Andrew Kelley <andrew@ziglang.org>
2022-02-01 19:40:05
Sema: remove the data field from TypeInfo.Declaration
stage2 follow-up to aa326328d0b4a0d4ee8167be9b2ab25fd560b0c9
1 parent 217025e
Changed files (1)
src/Sema.zig
@@ -9952,14 +9952,12 @@ fn typeInfoDecls(
 
         const is_pub = if (decl.is_pub) Value.@"true" else Value.@"false";
 
-        const fields = try decls_anon_decl.arena().create([3]Value);
+        const fields = try decls_anon_decl.arena().create([2]Value);
         fields.* = .{
             //name: []const u8,
             name_val,
             //is_pub: bool,
             is_pub,
-            //data: Data,
-            Value.undef, // TODO
         };
         decls_val.* = try Value.Tag.@"struct".create(decls_anon_decl.arena(), fields);
     }