]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/compile.rs
Don't set `is_preview` for clippy and rustfmt
[rust.git] / src / bootstrap / compile.rs
index 67947a263dc87e4210c54ec814b9cc3277007b6c..54906a4918bc12b3d67d90853b38f97a511abe9d 100644 (file)
@@ -763,10 +763,10 @@ pub fn rustc_cargo_env(builder: &Builder<'_>, cargo: &mut Cargo, target: TargetS
 
     cargo.env("CFG_LIBDIR_RELATIVE", libdir_relative);
 
-    if let Some(ref ver_date) = builder.rust_info.commit_date() {
+    if let Some(ref ver_date) = builder.rust_info().commit_date() {
         cargo.env("CFG_VER_DATE", ver_date);
     }
-    if let Some(ref ver_hash) = builder.rust_info.sha() {
+    if let Some(ref ver_hash) = builder.rust_info().sha() {
         cargo.env("CFG_VER_HASH", ver_hash);
     }
     if !builder.unstable_features() {