Improve diagnostics for the case where some or all of the prelude is missing. (#4276)

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
Richard Smith
2024-09-05 21:35:53 +00:00
committed by GitHub
co-authored by Jon Ross-Perkins
parent ddfd4ad60d
commit 2d650f7d16
5 changed files with 341 additions and 13 deletions
@@ -13,7 +13,7 @@ interface I {
// CHECK:STDERR: let a: i32;
// CHECK:STDERR: ^
// CHECK:STDERR:
// CHECK:STDERR: fail_assoc_const_not_constant.carbon:[[@LINE+3]]:10: ERROR: Name `Core` not found.
// CHECK:STDERR: fail_assoc_const_not_constant.carbon:[[@LINE+3]]:10: ERROR: Package `Core` implicitly referenced here, but not found.
// CHECK:STDERR: let a: i32;
// CHECK:STDERR: ^~~
let a: i32;