mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 22:16:53 +00:00
Auto merge of #56134 - oli-obk:clippy_documentation, r=nrc
Forward rust version number to tools Clippy uses it to identify the correct documentation to point to cc @Manishearth @nrc sibling PR in clippy: https://github.com/rust-lang-nursery/rust-clippy/pull/3442
This commit is contained in:
commit
0b9f19dff1
@ -22,6 +22,7 @@ use util::{exe, add_lib_path};
|
||||
use compile;
|
||||
use native;
|
||||
use channel::GitInfo;
|
||||
use channel;
|
||||
use cache::Interned;
|
||||
use toolstate::ToolState;
|
||||
|
||||
@ -240,6 +241,7 @@ pub fn prepare_tool_cargo(
|
||||
|
||||
cargo.env("CFG_RELEASE_CHANNEL", &builder.config.channel);
|
||||
cargo.env("CFG_VERSION", builder.rust_version());
|
||||
cargo.env("CFG_RELEASE_NUM", channel::CFG_RELEASE_NUM);
|
||||
|
||||
let info = GitInfo::new(&builder.config, &dir);
|
||||
if let Some(sha) = info.sha() {
|
||||
|
Loading…
Reference in New Issue
Block a user