From 8f8fe892761c9c5c9f7b89d8c53ac287d02b1474 Mon Sep 17 00:00:00 2001 From: mlugg Date: Tue, 13 Aug 2024 04:06:11 +0100 Subject: [PATCH] Zcu: panic on usingnamespace with -fincremental --- src/Zcu/PerThread.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index 5f1856f6eb..2720edd2f2 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 {