Skip to content

Commit ca7cf93

Browse files
committed
feat(dist): add notes for stable and beta in components_missing_msg()
1 parent 61fe20f commit ca7cf93

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/dist/mod.rs

+14
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,20 @@ Then you can use the toolchain with commands such as:
9797
9898
cargo +nightly-2018-12-27 build"
9999
);
100+
} else if ["beta", "stable"].iter().any(|&p| toolchain.starts_with(p)) {
101+
let _ = write!(
102+
buf,
103+
"\
104+
One or many components listed above might have been permanently removed from newer versions
105+
of the official Rust distribution due to deprecation.
106+
107+
If you are updating an existing toolchain, after determining the deprecated component(s)
108+
in question, please remove them with a command such as:
109+
110+
rustup component remove --toolchain {toolchain} <COMPONENT>...
111+
112+
After that, you should be able to continue with the update as usual.",
113+
);
100114
}
101115

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

0 commit comments

Comments
 (0)