@@ -713,7 +713,7 @@ impl fmt::Display for Profile {
713
713
#[ derive( Clone ) ]
714
714
pub ( crate ) struct DistOptions < ' a > {
715
715
pub ( crate ) cfg : & ' a Cfg < ' a > ,
716
- pub ( crate ) desc : & ' a ToolchainDesc ,
716
+ pub ( crate ) toolchain : & ' a ToolchainDesc ,
717
717
pub ( crate ) profile : Profile ,
718
718
pub ( crate ) update_hash : Option < & ' a Path > ,
719
719
pub ( crate ) dl_cfg : DownloadCfg < ' a > ,
@@ -752,9 +752,9 @@ pub(crate) async fn update_from_dist(
752
752
753
753
let mut fetched = String :: new ( ) ;
754
754
let mut first_err = None ;
755
- let backtrack = opts. desc . channel == "nightly" && opts. desc . date . is_none ( ) ;
755
+ let backtrack = opts. toolchain . channel == "nightly" && opts. toolchain . date . is_none ( ) ;
756
756
// We want to limit backtracking if we do not already have a toolchain
757
- let mut backtrack_limit: Option < i32 > = if opts. desc . date . is_some ( ) {
757
+ let mut backtrack_limit: Option < i32 > = if opts. toolchain . date . is_some ( ) {
758
758
None
759
759
} else {
760
760
// We limit the backtracking to 21 days by default (half a release cycle).
@@ -792,11 +792,11 @@ pub(crate) async fn update_from_dist(
792
792
} ;
793
793
794
794
let current_manifest = {
795
- let manifestation = Manifestation :: open ( prefix. clone ( ) , opts. desc . target . clone ( ) ) ?;
795
+ let manifestation = Manifestation :: open ( prefix. clone ( ) , opts. toolchain . target . clone ( ) ) ?;
796
796
manifestation. load_manifest ( ) ?
797
797
} ;
798
798
799
- let mut toolchain = opts. desc . clone ( ) ;
799
+ let mut toolchain = opts. toolchain . clone ( ) ;
800
800
let res = loop {
801
801
let result = try_update_from_dist_ (
802
802
opts. dl_cfg ,
0 commit comments