File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,11 @@ impl Cfg {
491
491
}
492
492
}
493
493
494
+ <<<<<<< HEAD
494
495
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)
495
499
let ( toolchain , _ ) = self . find_or_install_override_toolchain_or_default ( path ) ?;
496
500
Ok ( toolchain. binary_file ( binary ) )
497
501
}
@@ -1008,9 +1012,13 @@ impl Cfg {
1008
1012
}
1009
1013
1010
1014
pub ( crate ) fn resolve_toolchain ( & self , name : & str ) -> Result < String > {
1015
+ <<<<<<< HEAD
1011
1016
// remove trailing slashes in toolchain name
1012
1017
let normalized_name = name. trim_end_matches( '/' ) ;
1013
1018
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)
1014
1022
let host = self . get_default_host_triple( ) ?;
1015
1023
Ok ( desc. resolve( & host) ?. to_string( ) )
1016
1024
} else {
You can’t perform that action at this time.
0 commit comments