We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#[allow(unused)]
bin_helpers::parse_rustc_stage
1 parent 4900e86 commit da7d6f8Copy full SHA for da7d6f8
src/bootstrap/src/utils/bin_helpers.rs
@@ -18,6 +18,7 @@ pub(crate) fn parse_rustc_verbose() -> usize {
18
/// Parses the value of the "RUSTC_STAGE" environment variable and returns it as a `String`.
19
///
20
/// If "RUSTC_STAGE" was not set, the program will be terminated with 101.
21
+#[allow(unused)]
22
pub(crate) fn parse_rustc_stage() -> String {
23
std::env::var("RUSTC_STAGE").unwrap_or_else(|_| {
24
// Don't panic here; it's reasonable to try and run these shims directly. Give a helpful error instead.
0 commit comments