diff --git a/src/cli/common.rs b/src/cli/common.rs index 09e9abe31e..e9d9ccd26f 100644 --- a/src/cli/common.rs +++ b/src/cli/common.rs @@ -25,7 +25,9 @@ use crate::{ utils::{self, ExitCode}, }; -pub(crate) const WARN_COMPLETE_PROFILE: &str = "downloading with complete profile isn't recommended unless you are a developer of the rust language"; +pub(crate) const WARN_COMPLETE_PROFILE: &str = "\ +downloading with the `complete` profile is deprecated +help: consider switching to the `default` profile with `rustup set profile default`"; pub(crate) fn confirm(question: &str, default: bool, process: &Process) -> Result { write!(process.stdout().lock(), "{question} ")?; diff --git a/tests/suite/cli_inst_interactive.rs b/tests/suite/cli_inst_interactive.rs index 00d990489c..1484b9c246 100644 --- a/tests/suite/cli_inst_interactive.rs +++ b/tests/suite/cli_inst_interactive.rs @@ -498,7 +498,8 @@ async fn test_warn_if_complete_profile_is_used() { .await .with_stderr(snapbox::str![[r#" ... -warn: downloading with complete profile isn't recommended unless you are a developer of the rust language +warn: downloading with the `complete` profile is deprecated +help: consider switching to the `default` profile with `rustup set profile default` ... "#]]) .is_ok(); diff --git a/tests/suite/cli_v2.rs b/tests/suite/cli_v2.rs index ebbb0b89ca..2d20731e8c 100644 --- a/tests/suite/cli_v2.rs +++ b/tests/suite/cli_v2.rs @@ -2467,7 +2467,8 @@ async fn test_warn_if_complete_profile_is_used() { .await .with_stderr(snapbox::str![[r#" ... -warn: downloading with complete profile isn't recommended unless you are a developer of the rust language +warn: downloading with the `complete` profile is deprecated +help: consider switching to the `default` profile with `rustup set profile default` ... "#]]) .is_err();