Add unstable-options flag to stage!=0

This commit is contained in:
flip1995 2019-03-31 14:57:18 +02:00
parent 2045dfed24
commit dfcd1ef102
No known key found for this signature in database
GPG Key ID: 693086869D506637

View File

@ -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