Clean up resolve
error reporting
#7379
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
metabug
Issues about issues themselves ("bugs about bugs")
Currently, resolve does a lot of redundant error reporting. For example,
This should be a single error, "error: use of undeclared module
ast
".Another example:
Fixing this will require careful finagling of resolve. The best way to handle this is probably some central error reporting infrastructure, and as soon as one error is reported, stop making new errors for the current span. This is going to be tricky because every error path needs to be followed to ensure that an error is reported, and that if only one error is reported, it is the right error. Needs vastly improved test coverage in compile-fail. Shouldn't be hard, but will take time.
Nominating for production-ready.
The text was updated successfully, but these errors were encountered: