File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,11 @@ impl Cfg {
491491 }
492492 }
493493
494+ <<<<<<< HEAD
494495 pub( crate ) fn which_binary ( & self , path : & Path , binary : & str ) -> Result < PathBuf > {
496+ =======
497+ pub ( crate ) fn which_binary ( & self , path : & Path , binary : & str ) -> Result < Option < PathBuf > > {
498+ >>>>>>> 2 fcb8beb ( Make all src functions and structs crate -private)
495499 let ( toolchain , _ ) = self . find_or_install_override_toolchain_or_default ( path ) ?;
496500 Ok ( toolchain. binary_file ( binary ) )
497501 }
@@ -1008,9 +1012,13 @@ impl Cfg {
10081012 }
10091013
10101014 pub ( crate ) fn resolve_toolchain ( & self , name : & str ) -> Result < String > {
1015+ <<<<<<< HEAD
10111016 // remove trailing slashes in toolchain name
10121017 let normalized_name = name. trim_end_matches( '/' ) ;
10131018 if let Ok ( desc) = dist:: PartialToolchainDesc :: from_str ( normalized_name ) {
1019+ =======
1020+ if let Ok ( desc) = dist:: PartialToolchainDesc :: from_str ( name ) {
1021+ >>>>>>> 2 fcb8beb ( Make all src functions and structs crate -private)
10141022 let host = self . get_default_host_triple( ) ?;
10151023 Ok ( desc. resolve( & host) ?. to_string( ) )
10161024 } else {
You can’t perform that action at this time.
0 commit comments