Skip to content

Commit dfcd1ef

Browse files
committed
Add unstable-options flag to stage!=0
1 parent 2045dfe commit dfcd1ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/bin/rustc.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,11 @@ fn main() {
316316
}
317317
}
318318

319+
// This is required for internal lints.
320+
if stage != "0" {
321+
cmd.arg("-Zunstable-options");
322+
}
323+
319324
// Force all crates compiled by this compiler to (a) be unstable and (b)
320325
// allow the `rustc_private` feature to link to other unstable crates
321326
// also in the sysroot. We also do this for host crates, since those

0 commit comments

Comments
 (0)