about summary refs log tree commit diff
path: root/src/bootstrap/bin
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-03-31 14:57:18 +0200
committerflip1995 <hello@philkrones.com>2019-04-03 18:22:19 +0200
commitdfcd1ef102b78768351e3c31ed3c6c15c3af38e4 (patch)
treeb87a7f35ad721fd38e3d60970526ea11029505b2 /src/bootstrap/bin
parent2045dfed248d179c94d58eed7ca2922010b0fffc (diff)
downloadrust-dfcd1ef102b78768351e3c31ed3c6c15c3af38e4.tar.gz
rust-dfcd1ef102b78768351e3c31ed3c6c15c3af38e4.zip
Add unstable-options flag to stage!=0
Diffstat (limited to 'src/bootstrap/bin')
-rw-r--r--src/bootstrap/bin/rustc.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs
index 7429492f914..86ce5fd01a8 100644
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -316,6 +316,11 @@ fn main() {
         }
     }
 
+    // This is required for internal lints.
+    if stage != "0" {
+        cmd.arg("-Zunstable-options");
+    }
+
     // Force all crates compiled by this compiler to (a) be unstable and (b)
     // allow the `rustc_private` feature to link to other unstable crates
     // also in the sysroot. We also do this for host crates, since those