Skip to content

Commit 20b02e2

Browse files
authored
Unrolled build for rust-lang#123547
Rollup merge of rust-lang#123547 - klensy:bs-pubs, r=onur-ozkan bootstrap: remove unused pub fns Looks dead, remove.
2 parents 211518e + e0af5ea commit 20b02e2

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

src/bootstrap/src/core/builder.rs

-21
Original file line numberDiff line numberDiff line change
@@ -645,27 +645,6 @@ pub enum Kind {
645645
}
646646

647647
impl Kind {
648-
pub fn parse(string: &str) -> Option<Kind> {
649-
// these strings, including the one-letter aliases, must match the x.py help text
650-
Some(match string {
651-
"build" | "b" => Kind::Build,
652-
"check" | "c" => Kind::Check,
653-
"clippy" => Kind::Clippy,
654-
"fix" => Kind::Fix,
655-
"fmt" => Kind::Format,
656-
"test" | "t" => Kind::Test,
657-
"bench" => Kind::Bench,
658-
"doc" | "d" => Kind::Doc,
659-
"clean" => Kind::Clean,
660-
"dist" => Kind::Dist,
661-
"install" => Kind::Install,
662-
"run" | "r" => Kind::Run,
663-
"setup" => Kind::Setup,
664-
"suggest" => Kind::Suggest,
665-
_ => return None,
666-
})
667-
}
668-
669648
pub fn as_str(&self) -> &'static str {
670649
match self {
671650
Kind::Build => "build",

src/bootstrap/src/lib.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1911,15 +1911,6 @@ impl Compiler {
19111911
pub fn is_snapshot(&self, build: &Build) -> bool {
19121912
self.stage == 0 && self.host == build.build
19131913
}
1914-
1915-
/// Returns if this compiler should be treated as a final stage one in the
1916-
/// current build session.
1917-
/// This takes into account whether we're performing a full bootstrap or
1918-
/// not; don't directly compare the stage with `2`!
1919-
pub fn is_final_stage(&self, build: &Build) -> bool {
1920-
let final_stage = if build.config.full_bootstrap { 2 } else { 1 };
1921-
self.stage >= final_stage
1922-
}
19231914
}
19241915

19251916
fn envify(s: &str) -> String {

0 commit comments

Comments
 (0)