X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=rustc_tools_util%2FREADME.md;h=6027538dc4ab22a74ee3a0299a2849667b450dcf;hb=6eea598645be5489f518f91e4b80a0f04a315fda;hp=a88f47e4dbc24b2a40954cd79a6b084cc0f422f0;hpb=91ef4e3ae7b8cb71ac7e4f2940e87c23434101ec;p=rust.git diff --git a/rustc_tools_util/README.md b/rustc_tools_util/README.md index a88f47e4dbc..6027538dc4a 100644 --- a/rustc_tools_util/README.md +++ b/rustc_tools_util/README.md @@ -30,6 +30,10 @@ 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() + ); } ```` @@ -49,7 +53,7 @@ This gives the following output in clippy: ## License -Copyright 2014-2019 The Rust Project Developers +Copyright 2014-2020 The Rust Project Developers Licensed under the Apache License, Version 2.0 or the MIT license