Skip to content

feat(dist): add notes for stable and beta in components_missing_msg() #3920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 20, 2024
Merged
Changes from 1 commit
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
17 changes: 17 additions & 0 deletions src/dist/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,23 @@ Then you can use the toolchain with commands such as:

cargo +nightly-2018-12-27 build"
);
} else if ["beta", "stable"].iter().any(|&p| toolchain.starts_with(p)) {
let _ = write!(
buf,
"\
One or many components listed above might have been permanently removed from newer versions
of the official Rust distribution due to deprecation.

You can find the list of removed components at
<https://rust-lang.github.io/rustup/devel/concepts/components.html#previous-components>.

If you are updating an existing toolchain, after determining the deprecated component(s)
in question, please remove them with a command such as:

rustup component remove --toolchain {toolchain} <COMPONENT>...

After that, you should be able to continue with the update as usual.",
);
}

String::from_utf8(buf).unwrap()
Expand Down