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
..
2022-09-14 20:08:34 -04:00
2023-01-21 17:17:34 +01:00
2022-12-16 06:08:10 -05:00
2022-08-19 03:41:13 -07:00
2023-01-22 19:00:03 +00:00
2022-12-28 12:33:55 -07:00
2022-11-14 16:35:25 +01:00
2022-12-13 15:37:52 -05: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
2022-12-13 13:14:20 +02:00
2022-11-04 00:09:27 +03:30
2022-07-28 11:53:25 -07:00
2022-07-28 11:53:25 -07:00
2022-07-28 11:53:25 -07:00
2022-07-28 11:53:25 -07:00
2023-01-03 13:05:09 +02:00
2023-01-03 13:05:09 +02:00