Skip to content

Commit ec39ea8

Browse files
oli-obkalexcrichton
authored andcommitted
Forward rust version number to tools
Clippy uses it to identify the correct documentation to point to
1 parent fffcde6 commit ec39ea8

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)