Importing libraries leads to fully qualified types being shown unnecessarily #113933
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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.
Code
Current output
Desired output
Rationale and extra context
Adding imports, even though they don't introduce another
String
type in the current file, is making rustc print fully qualified type names.Clap doesn't define any types called
String
, although it does have a variant namedString
elsewhere in the library: https://docs.rs/clap/latest/clap/error/enum.ContextValue.html#variant.StringOther cases
There's a similar issue with serde and option:
rustc output:
Anything else?
Playground links:
The text was updated successfully, but these errors were encountered: