diff options
| author | onur-ozkan <work@onurozkan.dev> | 2023-10-12 14:07:36 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2023-10-17 10:07:12 +0300 |
| commit | 3ecff1b760152191f41bb4872c02f818b80e7d10 (patch) | |
| tree | af40428c269e7b0da45166a68488e59e65d2f1d2 /src/bootstrap | |
| parent | f1e3e75f6c046796541495da2e7d8a7c852b3e78 (diff) | |
| download | rust-3ecff1b760152191f41bb4872c02f818b80e7d10.tar.gz rust-3ecff1b760152191f41bb4872c02f818b80e7d10.zip | |
bootstrap: fix warnings
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/run.rs | 2 | ||||
| -rw-r--r-- | src/bootstrap/src/utils/bin_helpers.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/bootstrap/src/core/build_steps/run.rs b/src/bootstrap/src/core/build_steps/run.rs index 29272bebf99..d1d6b7e869e 100644 --- a/src/bootstrap/src/core/build_steps/run.rs +++ b/src/bootstrap/src/core/build_steps/run.rs @@ -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}; diff --git a/src/bootstrap/src/utils/bin_helpers.rs b/src/bootstrap/src/utils/bin_helpers.rs index ab41a6b9600..b9177c490ac 100644 --- a/src/bootstrap/src/utils/bin_helpers.rs +++ b/src/bootstrap/src/utils/bin_helpers.rs @@ -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. |
