File tree 3 files changed +3
-3
lines changed
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(
629
629
/// Warns if rustup is trying to install a toolchain that might not be
630
630
/// able to run on the host system.
631
631
pub ( crate ) fn warn_if_host_is_incompatible (
632
- toolchain : impl Display ,
632
+ toolchain : String ,
633
633
host_arch : & TargetTriple ,
634
634
target_triple : & TargetTriple ,
635
635
force_non_host : bool ,
Original file line number Diff line number Diff line change @@ -838,7 +838,7 @@ async fn update(
838
838
let host_arch = TargetTriple :: from_host_or_build ( cfg. process ) ;
839
839
let target_triple = name. clone ( ) . resolve ( & host_arch) ?. target ;
840
840
common:: warn_if_host_is_incompatible (
841
- & name,
841
+ name. to_string ( ) ,
842
842
& host_arch,
843
843
& target_triple,
844
844
force_non_host,
Original file line number Diff line number Diff line change @@ -794,7 +794,7 @@ impl<'a> Cfg<'a> {
794
794
verbose : bool ,
795
795
) -> Result < ( UpdateStatus , Toolchain < ' _ > ) > {
796
796
common:: warn_if_host_is_incompatible (
797
- toolchain,
797
+ toolchain. to_string ( ) ,
798
798
& TargetTriple :: from_host_or_build ( self . process ) ,
799
799
& toolchain. target ,
800
800
force_non_host,
You can’t perform that action at this time.
0 commit comments