Commit 8f8fe89276

mlugg <mlugg@mlugg.co.uk>
2024-08-13 05:06:11
Zcu: panic on usingnamespace with -fincremental
1 parent 93f2d9a
Changed files (1)
src/Zcu/PerThread.zig
@@ -2040,6 +2040,9 @@ const ScanDeclIter = struct {
                 const want_analysis = switch (kind) {
                     .@"comptime" => unreachable,
                     .@"usingnamespace" => a: {
+                        if (comp.incremental) {
+                            @panic("'usingnamespace' is not supported by incremental compilation");
+                        }
                         if (declaration.flags.is_pub) {
                             try namespace.pub_usingnamespace.append(gpa, nav);
                         } else {