]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/lib.rs
Auto merge of #68358 - matthewjasper:spec-fix, r=nikomatsakis
[rust.git] / src / bootstrap / lib.rs
index 637323331f5820b50f8e52573c02b89ea3803fff..0db4fb38901002b6344a922266d3f4aa2a00c299 100644 (file)
@@ -444,7 +444,7 @@ pub fn build(&mut self) {
             builder.execute_cli();
         } else {
             let builder = builder::Builder::new(&self);
-            let _ = builder.execute_cli();
+            builder.execute_cli();
         }
 
         // Check for postponed failures from `test --no-fail-fast`.
@@ -839,7 +839,7 @@ fn musl_root(&self, target: Interned<String>) -> Option<&Path> {
             .target_config
             .get(&target)
             .and_then(|t| t.musl_root.as_ref())
-            .or(self.config.musl_root.as_ref())
+            .or_else(|| self.config.musl_root.as_ref())
             .map(|p| &**p)
     }