dtolnay / rustversion

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

Use `--version --verbose` to get rustc version out of clippy-driver #14

Closed jsgf closed 4 years ago

jsgf commented 4 years ago

Fixes issue #13

jsgf commented 4 years ago

Yeah, it did work for me - clippy-driver -Vv produced identical output to rustc.

dtolnay commented 4 years ago

The PR uses --verbose --version though, not -Vv.

The fact that those produce different output seems like a bug and makes me hesitant to accept this PR until we understand what's going on there.

jsgf commented 4 years ago

Clippy issue https://github.com/rust-lang/rust-clippy/issues/5167