@@ -231,17 +231,20 @@ impl Toolchain {
231231 . map_err ( InstallError :: Download ) ?;
232232 }
233233
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 ) ?;
245248
246249 if dl_params. install_src {
247250 let filename = "rust-src-nightly" ;
@@ -407,7 +410,6 @@ pub(crate) struct DownloadParams {
407410 url_prefix : String ,
408411 tmp_dir : PathBuf ,
409412 install_dir : PathBuf ,
410- install_cargo : bool ,
411413 install_src : bool ,
412414 force_install : bool ,
413415}
@@ -432,7 +434,6 @@ impl DownloadParams {
432434 url_prefix,
433435 tmp_dir : cfg. rustup_tmp_path . clone ( ) ,
434436 install_dir : cfg. toolchains_path . clone ( ) ,
435- install_cargo : cfg. args . with_cargo ,
436437 install_src : cfg. args . with_src ,
437438 force_install : cfg. args . force_install ,
438439 }
0 commit comments