@@ -231,17 +231,20 @@ impl Toolchain {
231
231
. map_err ( InstallError :: Download ) ?;
232
232
}
233
233
234
- if dl_params. install_cargo {
235
- let filename = format ! ( "cargo-nightly-{}" , self . host) ;
236
- download_tarball (
237
- & client,
238
- & format ! ( "cargo for {}" , self . host) ,
239
- & format ! ( "{}/{}/{}.tar" , dl_params. url_prefix, location, filename, ) ,
240
- Some ( & PathBuf :: from ( & filename) . join ( "cargo" ) ) ,
241
- tmpdir. path ( ) ,
242
- )
243
- . map_err ( InstallError :: Download ) ?;
244
- }
234
+ // download nightly cargo by default
235
+ // this behavior was changed from an
236
+ // optional feature with the `--with-cargo`
237
+ // flag as of v0.6.0
238
+ // see: https://github.com/rust-lang/cargo-bisect-rustc/issues/81
239
+ let filename = format ! ( "cargo-nightly-{}" , self . host) ;
240
+ download_tarball (
241
+ & client,
242
+ & format ! ( "cargo for {}" , self . host) ,
243
+ & format ! ( "{}/{}/{}.tar" , dl_params. url_prefix, location, filename, ) ,
244
+ Some ( & PathBuf :: from ( & filename) . join ( "cargo" ) ) ,
245
+ tmpdir. path ( ) ,
246
+ )
247
+ . map_err ( InstallError :: Download ) ?;
245
248
246
249
if dl_params. install_src {
247
250
let filename = "rust-src-nightly" ;
@@ -407,7 +410,6 @@ pub(crate) struct DownloadParams {
407
410
url_prefix : String ,
408
411
tmp_dir : PathBuf ,
409
412
install_dir : PathBuf ,
410
- install_cargo : bool ,
411
413
install_src : bool ,
412
414
force_install : bool ,
413
415
}
@@ -432,7 +434,6 @@ impl DownloadParams {
432
434
url_prefix,
433
435
tmp_dir : cfg. rustup_tmp_path . clone ( ) ,
434
436
install_dir : cfg. toolchains_path . clone ( ) ,
435
- install_cargo : cfg. args . with_cargo ,
436
437
install_src : cfg. args . with_src ,
437
438
force_install : cfg. args . force_install ,
438
439
}
0 commit comments