Jon Ross-Perkins
47e551141f
Change the package namespace to use the package name ( #6495 )
...
Instead of naming the root namespace `package` (because it's accessed by
the `package` keyword), change it to use the current package name. Note,
buried in the checksum changes,
`toolchain/check/testdata/package_expr/fail_not_found.carbon`:
```
- // CHECK:STDERR: fail_not_found.carbon:[[@LINE+4]]:16: error: member name `x` not found in `package` [MemberNameNotFoundInInstScope]
+ // CHECK:STDERR: fail_not_found.carbon:[[@LINE+4]]:16: error: member name `x` not found in `Main` [MemberNameNotFoundInInstScope]
```
for:
```
// CHECK:STDERR: var y: i32 = package.x;
// CHECK:STDERR: ^~~~~~~~~
```
I'll leave it to you if you prefer this; the alternative I see is to
just rename `IsCorePackage` to `IsImportedCorePackage`, and/or change it
to a helper that takes a `Context` and does the right thing with
`parse_tree` (which, I need for `Destroy`-related reasons and was my
default approach).
2025-12-16 01:33:53 +00:00
..
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-10-28 17:17:38 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-06-25 21:03:15 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-06-17 21:10:04 +00:00
2025-09-03 21:00:12 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-09-29 16:05:06 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-12-10 18:34:23 +00:00
2025-09-10 23:55:55 +00:00
2025-06-17 21:10:04 +00:00
2025-11-18 19:48:58 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-12-16 01:33:53 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-09-10 23:55:55 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-06-17 21:10:04 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-09-29 16:05:06 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-10-23 01:46:24 +00:00
2025-12-16 01:33:53 +00:00
2025-06-18 20:45:46 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-08-06 23:55:05 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-09-29 16:05:06 +00:00
2025-12-16 01:33:53 +00:00
2025-09-29 16:05:06 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-09-29 16:05:06 +00:00
2025-12-16 01:33:53 +00:00