invalid suggestions when the name could not be resolved in derive macro output #133344
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
and then after adding
use rkyv::bytecheck
:Desired output
Perhaps in this case
use
-ing crates should not be suggested. What's even weirder is the compiler suggesting an import ofrancor
which is unrelated to the error!Rationale and extra context
It looks like for this derive macro to be usable the crate must be made available as a proper crate (i.e.
--extern
orextern crate
.)Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: