@@ -752,7 +752,7 @@ impl<'a> Cfg<'a> {
752
752
profile,
753
753
} => {
754
754
let toolchain = self
755
- . ensure_installed ( toolchain, components, targets, profile)
755
+ . ensure_installed ( toolchain, components, targets, profile, false )
756
756
. await ?
757
757
. 1 ;
758
758
Ok ( ( toolchain, reason) )
@@ -768,7 +768,7 @@ impl<'a> Cfg<'a> {
768
768
Some ( ToolchainName :: Official ( toolchain_desc) ) => {
769
769
let reason = ActiveReason :: Default ;
770
770
let toolchain = self
771
- . ensure_installed ( toolchain_desc, vec ! [ ] , vec ! [ ] , None )
771
+ . ensure_installed ( toolchain_desc, vec ! [ ] , vec ! [ ] , None , false )
772
772
. await ?
773
773
. 1 ;
774
774
Ok ( ( toolchain, reason) )
@@ -786,7 +786,11 @@ impl<'a> Cfg<'a> {
786
786
components : Vec < String > ,
787
787
targets : Vec < String > ,
788
788
profile : Option < Profile > ,
789
+ verbose : bool ,
789
790
) -> Result < ( UpdateStatus , Toolchain < ' _ > ) > {
791
+ if verbose {
792
+ ( self . notify_handler ) ( Notification :: LookingForToolchain ( & toolchain) ) ;
793
+ }
790
794
let components: Vec < _ > = components. iter ( ) . map ( AsRef :: as_ref) . collect ( ) ;
791
795
let targets: Vec < _ > = targets. iter ( ) . map ( AsRef :: as_ref) . collect ( ) ;
792
796
let profile = match profile {
@@ -806,6 +810,9 @@ impl<'a> Cfg<'a> {
806
810
. await ?
807
811
}
808
812
Ok ( mut distributable) => {
813
+ if verbose {
814
+ ( self . notify_handler ) ( Notification :: UsingExistingToolchain ( & toolchain) ) ;
815
+ }
809
816
let status = if !distributable. components_exist ( & components, & targets) ? {
810
817
distributable. update ( & components, & targets, profile) . await ?
811
818
} else {
0 commit comments