From dfcd1ef102b78768351e3c31ed3c6c15c3af38e4 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Sun, 31 Mar 2019 14:57:18 +0200 Subject: Add unstable-options flag to stage!=0 --- src/bootstrap/bin/rustc.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/bootstrap') 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 -- cgit 1.4.1-3-g733a5