Skip to content

Commit 419bb2e

Browse files
committed
feat(dist): add notes for stable and beta in components_missing_msg()
1 parent f41217e commit 419bb2e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/dist/mod.rs

+17
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,23 @@ Then you can use the toolchain with commands such as:
9999
100100
cargo +nightly-2018-12-27 build"
101101
);
102+
} else if ["beta", "stable"].iter().any(|&p| toolchain.starts_with(p)) {
103+
let _ = write!(
104+
buf,
105+
"\
106+
One or many components listed above might have been permanently removed from newer versions
107+
of the official Rust distribution due to deprecation.
108+
109+
You can find the list of removed components at
110+
<https://rust-lang.github.io/rustup/devel/concepts/components.html#previous-components>.
111+
112+
If you are updating an existing toolchain, after determining the deprecated component(s)
113+
in question, please remove them with a command such as:
114+
115+
rustup component remove --toolchain {toolchain} <COMPONENT>...
116+
117+
After that, you should be able to continue with the update as usual.",
118+
);
102119
}
103120

104121
String::from_utf8(buf).unwrap()

0 commit comments

Comments
 (0)