Skip to content

Commit 851b0a4

Browse files
committed
warn how to switch away from the deprecated complete profile
1 parent 79766cf commit 851b0a4

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/cli/common.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ use crate::{
2525
utils::{self, ExitCode},
2626
};
2727

28-
pub(crate) const WARN_COMPLETE_PROFILE: &str = "downloading with complete profile isn't recommended unless you are a developer of the rust language";
28+
pub(crate) const WARN_COMPLETE_PROFILE: &str = "\
29+
downloading with the `complete` profile has been deprecated
30+
31+
help: consider switching to the `default` profile with `rustup set profile default`";
2932

3033
pub(crate) fn confirm(question: &str, default: bool, process: &Process) -> Result<bool> {
3134
write!(process.stdout().lock(), "{question} ")?;

tests/suite/cli_inst_interactive.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,9 @@ async fn test_warn_if_complete_profile_is_used() {
498498
.await
499499
.with_stderr(snapbox::str![[r#"
500500
...
501-
warn: downloading with complete profile isn't recommended unless you are a developer of the rust language
501+
warn: downloading with the `complete` profile has been deprecated
502+
503+
help: consider switching to the `default` profile with `rustup set profile default`
502504
...
503505
"#]])
504506
.is_ok();

tests/suite/cli_v2.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2467,7 +2467,9 @@ async fn test_warn_if_complete_profile_is_used() {
24672467
.await
24682468
.with_stderr(snapbox::str![[r#"
24692469
...
2470-
warn: downloading with complete profile isn't recommended unless you are a developer of the rust language
2470+
warn: downloading with the `complete` profile has been deprecated
2471+
2472+
help: consider switching to the `default` profile with `rustup set profile default`
24712473
...
24722474
"#]])
24732475
.is_err();

0 commit comments

Comments
 (0)