Skip to content

Commit 0b9f19d

Browse files
committed
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: rust-lang/rust-clippy#3442
2 parents 910ec6d + 33efce1 commit 0b9f19d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/tool.rs

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use util::{exe, add_lib_path};
2222
use compile;
2323
use native;
2424
use channel::GitInfo;
25+
use channel;
2526
use cache::Interned;
2627
use toolstate::ToolState;
2728

@@ -240,6 +241,7 @@ pub fn prepare_tool_cargo(
240241

241242
cargo.env("CFG_RELEASE_CHANNEL", &builder.config.channel);
242243
cargo.env("CFG_VERSION", builder.rust_version());
244+
cargo.env("CFG_RELEASE_NUM", channel::CFG_RELEASE_NUM);
243245

244246
let info = GitInfo::new(&builder.config, &dir);
245247
if let Some(sha) = info.sha() {

0 commit comments

Comments
 (0)