Confusing diagnostics when forgetting to import rustc_abi
crate
#140840
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
Neither of the actually shown errors is helpful:
rs::abi
does not exist -- but clearly it does exist, I wrote it right there!rs::abi
is unused -- but it is used, there's even an error pointing at it!If I change
rustc_abi
tofoobar
, the error changes to something much better:I assume this is related to the fact that
rustc_abi
exists as a crate, it's just not been imported.Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: