From 68281ad0b2dfa042627e84463a5fe7f33b5a88b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Thu, 23 May 2019 17:40:54 +0200 Subject: [PATCH] clippy: bump rustc_tools util version to 0.2 rustc_tools_util: fix typo in docs (readme) --- Cargo.toml | 4 ++-- build.rs | 4 ++++ rustc_tools_util/README.md | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4c1b77c256c..3a3e225db58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ clippy_lints = { version = "0.0.212", path = "clippy_lints" } # end automatic update regex = "1" semver = "0.9" -rustc_tools_util = { version = "0.1.1", path = "rustc_tools_util"} +rustc_tools_util = { version = "0.2.0", path = "rustc_tools_util"} [dev-dependencies] cargo_metadata = "0.7.1" @@ -58,7 +58,7 @@ derive-new = "0.5" rustc-workspace-hack = "1.0.0" [build-dependencies] -rustc_tools_util = { version = "0.1.1", path = "rustc_tools_util"} +rustc_tools_util = { version = "0.2.0", path = "rustc_tools_util"} [features] debugging = [] diff --git a/build.rs b/build.rs index 146a8dae745..018375dbada 100644 --- a/build.rs +++ b/build.rs @@ -12,4 +12,8 @@ fn main() { "cargo:rustc-env=COMMIT_DATE={}", rustc_tools_util::get_commit_date().unwrap_or_default() ); + println!( + "cargo:rustc-env=RUSTC_RELEASE_CHANNEL={}", + rustc_tools_util::get_channel().unwrap_or_default() + ); } diff --git a/rustc_tools_util/README.md b/rustc_tools_util/README.md index 79c90b86b6c..18341ca2f28 100644 --- a/rustc_tools_util/README.md +++ b/rustc_tools_util/README.md @@ -32,7 +32,7 @@ fn main() { ); println!( "cargo:rustc-env=RUSTC_RELEASE_CHANNEL={}", - rustc_tools_util::get_channel_from_compiler_output().unwrap_or_default() + rustc_tools_util::get_channel().unwrap_or_default() ); }