Files
zig/src
mlugg 5f9186d0ce AstGen: detect and error on files included in multiple packages
Previously, if a source file was referenced from multiple packages, it
just became owned by the first one AstGen happened to reach; this was a
problem, because it could lead to inconsistent behaviour in the compiler
based on a race condition. This could be fixed by just analyzing such
files multiple times - however, it was pointed out by Andrew that it
might make more sense to enforce files being part of at most a single
package. Having a file in multiple packages would not only impact
compile times (due to Sema having to run multiple times on potentially a
lot of code) but is also a confusing anti-pattern which more often than
not is a mistake on the part of the user.

Resolves: #13662
2023-01-22 19:00:03 +00:00
..
2023-01-21 17:17:34 +01:00
2023-01-22 19:00:03 +00:00
2022-12-28 12:33:55 -07:00
2023-01-22 19:00:03 +00:00
2022-12-29 00:19:00 -05:00
2023-01-22 19:00:03 +00:00
2023-01-03 13:05:09 +02:00
2023-01-03 13:05:09 +02:00