File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -645,27 +645,6 @@ pub enum Kind {
645645}
646646
647647impl 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" ,
Original file line number Diff line number Diff 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
19251916fn envify ( s : & str ) -> String {
You can’t perform that action at this time.
0 commit comments