dtolnay / rustversion

Conditional compilation according to rustc compiler version
Apache License 2.0
326 stars 15 forks source link

Pass --rustc argument to clippy driver #35

Closed dtolnay closed 2 years ago

dtolnay commented 2 years ago

Fixes #13.

The --rustc flag this uses was added to clippy-driver in https://github.com/rust-lang/rust-clippy/pull/5178.

$ clippy-driver --version
clippy 0.1.64 (c2f428d 2022-07-14)

$ clippy-driver --rustc --version
rustc 1.64.0-nightly (c2f428d2f 2022-07-14)

$ rustc --version
rustc 1.64.0-nightly (c2f428d2f 2022-07-14)