File tree 2 files changed +0
-30
lines changed
2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -645,27 +645,6 @@ pub enum Kind {
645
645
}
646
646
647
647
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
-
669
648
pub fn as_str ( & self ) -> & ' static str {
670
649
match self {
671
650
Kind :: Build => "build" ,
Original file line number Diff line number Diff line change @@ -1911,15 +1911,6 @@ impl Compiler {
1911
1911
pub fn is_snapshot ( & self , build : & Build ) -> bool {
1912
1912
self . stage == 0 && self . host == build. build
1913
1913
}
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
- }
1923
1914
}
1924
1915
1925
1916
fn envify ( s : & str ) -> String {
You can’t perform that action at this time.
0 commit comments