Closed
Description
If my crate Cargo.toml specifies:
[lib]
crate_type = ["cdylib"]
then running cargo clippy
produces the above linker error. cargo clippy --profile=test
, cargo build
, cargo test
etc. are all fine however.
You can even reproduce on an empty/minimal project. All it needs is the above lib type mentioned in the toml.
Using clippy version 0.0.99 with nightly from 17th Nov 2016 was fine. After updating to 19th Dec 2016 nightly and clippy 0.0.104 this was a problem and ever since continued to this date (with lates nightly and latest clippy - v0.0.112 at the time of writing this).
Is this known and is there any resolution planned on this.