New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Improve error handling for top-level let
statements
#15961
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I'm not really sure if handling a particular case in a special manner is appropriate, it would be good to suppress the excessive number of annoying and unrelated errors.
I'd say it is, new people might be tempted to use let
for globals (and rustc also recovers specifically from this)
Ah, yeah, indeed. |
This commit addresses the issue of excessive and unrelated errors generated by top-level `let` statements. Now, only a single error is produced, indicating that `let` statements are invalid at the top level.
4b5ae46
to
e076192
Compare
Thanks! |
☀️ Test successful - checks-actions |
let
statementslet
statements
This commit addresses the issue of excessive and unrelated errors generated by top-level
let
statements. Now, only a single error is produced, indicating thatlet
statements are invalid at the top level.Fixes #14963.
While I'm not really sure if handling a particular case in a special manner is appropriate, it would be good to suppress the excessive number of annoying and unrelated errors.