]> git.lizzy.rs Git - rust.git/blobdiff - build.rs
Auto merge of #9745 - matttpt:fix-redundant-closure-for-method-calls-suggestion,...
[rust.git] / build.rs
index 336f0295bdf6fc9fda9b593a69bf22cdf6fb7dbf..b5484bec3c8b8dca5dc0a00930d846e60533d4a7 100644 (file)
--- a/build.rs
+++ b/build.rs
@@ -1,13 +1,3 @@
-// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-
 fn main() {
     // Forward the profile to the main compilation
     println!("cargo:rustc-env=PROFILE={}", std::env::var("PROFILE").unwrap());
@@ -22,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()
+    );
 }