Skip to content

Commit 4b3283a

Browse files
committed
Use beta cargo in opt-dist
Using the new cargo caused issues when a backwards-incompatible change was made to cargo.
1 parent 7db4a89 commit 4b3283a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/tools/opt-dist/src/tests.rs

-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ pub fn run_tests(env: &Environment) -> anyhow::Result<()> {
2828
let rustc_dir = extract_dist_dir(&format!("rustc-{version}-{host_triple}"))?.join("rustc");
2929
let libstd_dir = extract_dist_dir(&format!("rust-std-{version}-{host_triple}"))?
3030
.join(format!("rust-std-{host_triple}"));
31-
let cargo_dir = extract_dist_dir(&format!("cargo-{version}-{host_triple}"))?.join("cargo");
3231
let extracted_src_dir = extract_dist_dir(&format!("rust-src-{version}"))?.join("rust-src");
3332

3433
// We need to manually copy libstd to the extracted rustc sysroot
@@ -47,8 +46,6 @@ pub fn run_tests(env: &Environment) -> anyhow::Result<()> {
4746

4847
let rustc_path = rustc_dir.join("bin").join(format!("rustc{}", executable_extension()));
4948
assert!(rustc_path.is_file());
50-
let cargo_path = cargo_dir.join("bin").join(format!("cargo{}", executable_extension()));
51-
assert!(cargo_path.is_file());
5249

5350
// Specify path to a LLVM config so that LLVM is not rebuilt.
5451
// It doesn't really matter which LLVM config we choose, because no sysroot will be compiled.
@@ -65,13 +62,11 @@ change-id = 115898
6562
6663
[build]
6764
rustc = "{rustc}"
68-
cargo = "{cargo}"
6965
7066
[target.{host_triple}]
7167
llvm-config = "{llvm_config}"
7268
"#,
7369
rustc = rustc_path.to_string().replace('\\', "/"),
74-
cargo = cargo_path.to_string().replace('\\', "/"),
7570
llvm_config = llvm_config.to_string().replace('\\', "/")
7671
);
7772
log::info!("Using following `config.toml` for running tests:\n{config_content}");

0 commit comments

Comments
 (0)