authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-08-13 04:06:11+01:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2024-08-17 18:50:10-04:00
log8f8fe892761c9c5c9f7b89d8c53ac287d02b1474
tree82faf7bc72d8093fd6bc9e9201ccdcd59802c2d9
parent93f2d9a77f659a344fc0c003ce149885fc7df99a

Zcu: panic on usingnamespace with -fincremental


1 files changed, 3 insertions(+), 0 deletions(-)

src/Zcu/PerThread.zig+3
...@@ -2040,6 +2040,9 @@ const ScanDeclIter = struct {...@@ -2040,6 +2040,9 @@ const ScanDeclIter = struct {
2040 const want_analysis = switch (kind) {2040 const want_analysis = switch (kind) {
2041 .@"comptime" => unreachable,2041 .@"comptime" => unreachable,
2042 .@"usingnamespace" => a: {2042 .@"usingnamespace" => a: {
2043 if (comp.incremental) {
2044 @panic("'usingnamespace' is not supported by incremental compilation");
2045 }
2043 if (declaration.flags.is_pub) {2046 if (declaration.flags.is_pub) {
2044 try namespace.pub_usingnamespace.append(gpa, nav);2047 try namespace.pub_usingnamespace.append(gpa, nav);
2045 } else {2048 } else {