about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2018-04-07 22:32:21 -0400
committerTamir Duberstein <tamird@gmail.com>2018-04-07 22:32:21 -0400
commitb204b498c5ff41a49cd36cb225056e4bf2466ea1 (patch)
tree42e4cff537756ff2fa5dd34756f4014102038366 /src
parent056f589fb8bcd70e7caa2bc7b3ede45624bb8e6d (diff)
downloadrust-b204b498c5ff41a49cd36cb225056e4bf2466ea1.tar.gz
rust-b204b498c5ff41a49cd36cb225056e4bf2466ea1.zip
Don't default to stage 1 with incremental
Closes #43177.
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/flags.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs
index cd304fb26e0..ef902c68d12 100644
--- a/src/bootstrap/flags.rs
+++ b/src/bootstrap/flags.rs
@@ -357,15 +357,9 @@ Arguments:
         };
 
 
-        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"),