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
@@ -29,7 +29,7 @@ fn G(x: ());
fn G() {}
fn H(x: ());
// CHECK:STDERR: fail_decl_param_mismatch.carbon:[[@LINE+4]]:9: ERROR: Name `Core` not found.
// CHECK:STDERR: fail_decl_param_mismatch.carbon:[[@LINE+4]]:9: ERROR: Package `Core` implicitly referenced here, but not found.
// CHECK:STDERR: fn H(x: bool) {}
// CHECK:STDERR: ^~~~
// CHECK:STDERR: