diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index 5f1856f6eb33d79692d61c1fb4268958b50a1245..2720edd2f2a9dffd39cc7c4ea1c7055750712518 100644 --- a/src/Zcu/PerThread.zig +++ b/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 {