File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -629,7 +629,7 @@ pub(crate) fn ignorable_error(
629629/// Warns if rustup is trying to install a toolchain that might not be
630630/// able to run on the host system.
631631pub ( crate ) fn warn_if_host_is_incompatible (
632- toolchain : impl Display ,
632+ toolchain : String ,
633633 host_arch : & TargetTriple ,
634634 target_triple : & TargetTriple ,
635635 force_non_host : bool ,
Original file line number Diff line number Diff line change @@ -838,7 +838,7 @@ async fn update(
838838 let host_arch = TargetTriple :: from_host_or_build ( cfg. process ) ;
839839 let target_triple = name. clone ( ) . resolve ( & host_arch) ?. target ;
840840 common:: warn_if_host_is_incompatible (
841- & name,
841+ name. to_string ( ) ,
842842 & host_arch,
843843 & target_triple,
844844 force_non_host,
Original file line number Diff line number Diff line change @@ -794,7 +794,7 @@ impl<'a> Cfg<'a> {
794794 verbose : bool ,
795795 ) -> Result < ( UpdateStatus , Toolchain < ' _ > ) > {
796796 common:: warn_if_host_is_incompatible (
797- toolchain,
797+ toolchain. to_string ( ) ,
798798 & TargetTriple :: from_host_or_build ( self . process ) ,
799799 & toolchain. target ,
800800 force_non_host,
You can’t perform that action at this time.
0 commit comments