Error span for missing main function is too large #77968
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
(or something similar -- an empty last line might be missing).
Instead, this happened:
This matters for IDE support, because using the whole file as an error span is a bit messy, marking potentially hundreds of lines as an error.
Meta
rustc --version
:The text was updated successfully, but these errors were encountered: