]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #49771 - tamird:incremental-no-stage-1, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sun, 8 Apr 2018 19:11:47 +0000 (19:11 +0000)
committerbors <bors@rust-lang.org>
Sun, 8 Apr 2018 19:11:47 +0000 (19:11 +0000)
Don't default to stage 1 with incremental

Closes #43177.

r? @Mark-Simulacrum

src/bootstrap/flags.rs

index cd304fb26e0bfcb939cf226951a19c58c170d4f3..ef902c68d12d84f90a25dafb3672ba4a5501c658 100644 (file)
@@ -357,15 +357,9 @@ pub fn parse(args: &[String]) -> Flags {
         };
 
 
-        let mut stage = matches.opt_str("stage").map(|j| j.parse().unwrap());
-
-        if matches.opt_present("incremental") && stage.is_none() {
-            stage = Some(1);
-        }
-
         Flags {
             verbose: matches.opt_count("verbose"),
-            stage,
+            stage: matches.opt_str("stage").map(|j| j.parse().unwrap()),
             dry_run: matches.opt_present("dry-run"),
             on_fail: matches.opt_str("on-fail"),
             rustc_error_format: matches.opt_str("error-format"),