@@ -253,7 +253,7 @@ impl OverrideCfg {
253253 Ok ( match self {
254254 Self :: PathBased ( path_based_name) => path_based_name. into ( ) ,
255255 Self :: Custom ( custom_name) => custom_name. into ( ) ,
256- Self :: Official { toolchain, .. } => toolchain. resolve ( host_tuple) ?. into ( ) ,
256+ Self :: Official { toolchain, .. } => toolchain. complete ( host_tuple) ?. into ( ) ,
257257 } )
258258 }
259259
@@ -412,7 +412,7 @@ impl<'a> Cfg<'a> {
412412 // Run some basic checks against the constructed configuration
413413 // For now, that means simply checking that 'stable' can resolve
414414 // for the current configuration.
415- PartialToolchainName :: from_str ( "stable" ) ?. resolve (
415+ PartialToolchainName :: from_str ( "stable" ) ?. complete (
416416 & cfg. default_host_tuple ( )
417417 . context ( "Unable parse configuration" ) ?,
418418 ) ?;
@@ -589,7 +589,7 @@ impl<'a> Cfg<'a> {
589589 . map ( |( desc, source) | {
590590 anyhow:: Ok ( (
591591 ToolchainNameOrPath :: Named ( ToolchainName :: Official (
592- desc. resolve ( & self . default_host_tuple ( ) ?) ?,
592+ desc. complete ( & self . default_host_tuple ( ) ?) ?,
593593 ) ) ,
594594 source,
595595 ) )
@@ -766,7 +766,7 @@ impl<'a> Cfg<'a> {
766766 }
767767
768768 // XXX: this awkwardness deals with settings file being locked already
769- let toolchain_name = toolchain_name. resolve ( & default_host) ?;
769+ let toolchain_name = toolchain_name. complete ( & default_host) ?;
770770 if !Toolchain :: exists ( self , & toolchain_name. clone ( ) . into ( ) ) ?
771771 && matches ! ( toolchain_name, ToolchainName :: Custom ( _) )
772772 {
@@ -860,7 +860,7 @@ impl<'a> Cfg<'a> {
860860 } = override_config
861861 {
862862 self . ensure_installed (
863- & toolchain. resolve ( & default_host) ?,
863+ & toolchain. complete ( & default_host) ?,
864864 components. unwrap_or_default ( ) ,
865865 targets. unwrap_or_default ( ) ,
866866 profile,
@@ -955,7 +955,7 @@ impl<'a> Cfg<'a> {
955955 let Some ( toolchain) = self . get_default_resolvable ( ) ? else {
956956 return Ok ( None ) ;
957957 } ;
958- Ok ( Some ( toolchain. resolve ( & self . default_host_tuple ( ) ?) ?) )
958+ Ok ( Some ( toolchain. complete ( & self . default_host_tuple ( ) ?) ?) )
959959 }
960960
961961 /// Gets the configured default toolchain name in its unresolved form, if any.
@@ -1069,7 +1069,7 @@ impl<'a> Cfg<'a> {
10691069 // against the 'stable' toolchain. This provides early errors
10701070 // if the supplied tuple is insufficient / bad.
10711071 PartialOfficialToolchainName :: from_str ( "stable" ) ?
1072- . resolve ( & TargetTuple :: new ( host_tuple. clone ( ) ) ) ?;
1072+ . complete ( & TargetTuple :: new ( host_tuple. clone ( ) ) ) ?;
10731073 self . settings_file . with_mut ( |s| {
10741074 s. default_host_tuple = Some ( host_tuple) ;
10751075 Ok ( ( ) )
@@ -1113,7 +1113,7 @@ impl<'a> Cfg<'a> {
11131113
11141114 let default_host = self . default_host_tuple ( ) ?;
11151115 let stable_desc =
1116- PartialOfficialToolchainName :: from_str ( "stable" ) ?. resolve ( & default_host) ?;
1116+ PartialOfficialToolchainName :: from_str ( "stable" ) ?. complete ( & default_host) ?;
11171117 let stable = match DistributableToolchain :: new ( self , stable_desc) {
11181118 Ok ( stable) => stable,
11191119 // If the `stable` toolchain is not installed, we don't notify the user.
0 commit comments