FP unused_import
when the import is only used in rustdoc links
#92493
Labels
C-bug
Category: This is a bug.
I tried this code:
I expected to see this happen: No warning
Instead, this happened:
This is especially annoying when you deny some lints:
cargo build
errors, butcargo doc
is fine:When you comment out the use statement,
cargo build
is fine, butcargo doc
errors.I know I can use the links syntax with an explicit target, but I prefer the short form for less noise when reading the code.
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: