From: flip1995 Date: Sun, 31 Mar 2019 12:57:18 +0000 (+0200) Subject: Add unstable-options flag to stage!=0 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=dfcd1ef102b78768351e3c31ed3c6c15c3af38e4;p=rust.git Add unstable-options flag to stage!=0 --- 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