@@ -43,6 +43,14 @@ static TOOLCHAIN_CHANNELS: &[&str] = &[
43
43
r"\d{1}\.\d{1,3}(?:\.\d{1,2})?" ,
44
44
] ;
45
45
46
+ const TOOLSTATE_MSG : & str =
47
+ "If you require these components, please install and use the latest successful build version,\n \
48
+ which you can find at <https://rust-lang.github.io/rustup-components-history>.\n \n After determining \
49
+ the correct date, install it with a command such as:\n \n \
50
+ rustup toolchain install nightly-2018-12-27\n \n \
51
+ Then you can use the toolchain with commands such as:\n \n \
52
+ cargo +nightly-2018-12-27 build";
53
+
46
54
/// Returns a error message indicating that certain [`Component`]s are missing in a toolchain distribution.
47
55
///
48
56
/// This message is currently used exclusively in toolchain-wide operations,
@@ -71,7 +79,7 @@ fn components_missing_msg(cs: &[Component], manifest: &ManifestV2, toolchain: &s
71
79
72
80
let _ = write ! (
73
81
buf,
74
- "If you don't need the component, you could try a minimal installation with:\n \n {suggestion}"
82
+ "If you don't need the component, you could try a minimal installation with:\n \n {suggestion}\n \n {TOOLSTATE_MSG} "
75
83
) ;
76
84
}
77
85
cs => {
@@ -91,7 +99,7 @@ fn components_missing_msg(cs: &[Component], manifest: &ManifestV2, toolchain: &s
91
99
92
100
let _ = write ! (
93
101
buf,
94
- "If you don't need the components, you could try a minimal installation with:\n \n {suggestion}"
102
+ "If you don't need the components, you could try a minimal installation with:\n \n {suggestion}\n \n {TOOLSTATE_MSG} "
95
103
) ;
96
104
}
97
105
}
0 commit comments