Closed
Description
steps to reproduce
-
Create new project and enter it
cargo new foo --bin cd exe
-
Create subproject and edit
Cargo.toml
cargo new bar
[dependencies] bar = { path = "bar" }
-
Run cargo clippy for subproject
cargo clippy -p bar --verbose
cargo clippy exits with misleading error message
error: no bin target named `foo`
Other observations:
Above issue does not occur if root directory is a library. It looks like the issue is caused by incorrectly prepending --bin
flag instead of --lib
here
Metadata
Metadata
Assignees
Labels
No labels