Imports from private std dependency object
shouldn't be suggested
#138191
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
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
object
is not a dependency of my crate, so the suggestion cannot work (additionally,object::read::read_ref::ReadRef
appears to be private too (?))Other cases
Rust Version
Anything else?
No response
@rustbot label D-incorrect
The text was updated successfully, but these errors were encountered: