bootstrap: fix warnings
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
f1e3e75f6c
commit
3ecff1b760
@ -1,8 +1,6 @@
|
||||
use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
|
||||
use clap_complete::shells;
|
||||
|
||||
use crate::core::build_steps::dist::distdir;
|
||||
use crate::core::build_steps::test;
|
||||
use crate::core::build_steps::tool::{self, SourceType, Tool};
|
||||
|
@ -18,6 +18,7 @@ pub(crate) fn parse_rustc_verbose() -> usize {
|
||||
/// Parses the value of the "RUSTC_STAGE" environment variable and returns it as a `String`.
|
||||
///
|
||||
/// If "RUSTC_STAGE" was not set, the program will be terminated with 101.
|
||||
#[allow(unused)]
|
||||
pub(crate) fn parse_rustc_stage() -> String {
|
||||
std::env::var("RUSTC_STAGE").unwrap_or_else(|_| {
|
||||
// Don't panic here; it's reasonable to try and run these shims directly. Give a helpful error instead.
|
||||
|
Loading…
x
Reference in New Issue
Block a user