Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/cli/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool> {
write!(process.stdout().lock(), "{question} ")?;
Expand Down
3 changes: 2 additions & 1 deletion tests/suite/cli_inst_interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 2 additions & 1 deletion tests/suite/cli_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Loading