|
4 | 4 | //! our CI. |
5 | 5 |
|
6 | 6 | use std::env; |
7 | | -//use std::ffi::OsString; |
| 7 | +use std::ffi::OsString; |
8 | 8 | use std::fmt; |
9 | 9 | use std::fs; |
10 | | -//use std::iter; |
| 10 | +use std::iter; |
11 | 11 | use std::path::{Path, PathBuf}; |
12 | 12 | use std::process::Command; |
13 | 13 |
|
@@ -204,8 +204,8 @@ impl Step for Cargo { |
204 | 204 | } |
205 | 205 |
|
206 | 206 | /// Runs `cargo test` for `cargo` packaged with Rust. |
207 | | - fn run(self, _builder: &Builder<'_>) { |
208 | | - /*let compiler = builder.compiler(self.stage, self.host); |
| 207 | + fn run(self, builder: &Builder<'_>) { |
| 208 | + let compiler = builder.compiler(self.stage, self.host); |
209 | 209 |
|
210 | 210 | builder.ensure(tool::Cargo { |
211 | 211 | compiler, |
@@ -235,7 +235,7 @@ impl Step for Cargo { |
235 | 235 |
|
236 | 236 | cargo.env("PATH", &path_for_cargo(builder, compiler)); |
237 | 237 |
|
238 | | - try_run(builder, &mut cargo.into());*/ |
| 238 | + try_run(builder, &mut cargo.into()); |
239 | 239 | } |
240 | 240 | } |
241 | 241 |
|
@@ -590,14 +590,14 @@ impl Step for Clippy { |
590 | 590 | } |
591 | 591 | } |
592 | 592 |
|
593 | | -//fn path_for_cargo(builder: &Builder<'_>, compiler: Compiler) -> OsString { |
594 | | -// // Configure PATH to find the right rustc. NB. we have to use PATH |
595 | | -// // and not RUSTC because the Cargo test suite has tests that will |
596 | | -// // fail if rustc is not spelled `rustc`. |
597 | | -// let path = builder.sysroot(compiler).join("bin"); |
598 | | -// let old_path = env::var_os("PATH").unwrap_or_default(); |
599 | | -// env::join_paths(iter::once(path).chain(env::split_paths(&old_path))).expect("") |
600 | | -//} |
| 593 | +fn path_for_cargo(builder: &Builder<'_>, compiler: Compiler) -> OsString { |
| 594 | + // Configure PATH to find the right rustc. NB. we have to use PATH |
| 595 | + // and not RUSTC because the Cargo test suite has tests that will |
| 596 | + // fail if rustc is not spelled `rustc`. |
| 597 | + let path = builder.sysroot(compiler).join("bin"); |
| 598 | + let old_path = env::var_os("PATH").unwrap_or_default(); |
| 599 | + env::join_paths(iter::once(path).chain(env::split_paths(&old_path))).expect("") |
| 600 | +} |
601 | 601 |
|
602 | 602 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] |
603 | 603 | pub struct RustdocTheme { |
|
0 commit comments