Missing a single bracket in an import statement can cause tens of cascading errors. #83498
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The lexing & parsing of Rust source code to an AST
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
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.
Missing a single bracket, can lead to 8 errors in this case, and 16 in the actual project this sample code comes from.
Example mistake:
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=015ef4d8827e4c3915e385428acf29fb
The current output is:
Ideally the output should look like:
Also the placing of the unclosed delimiter warning arrow seems weird? I think it should point to where I put the // ? Usually rustc error output is pretty good at pointing to where I actually need to make a change.
The text was updated successfully, but these errors were encountered: