Skip to content

Commit 4e25ae4

Browse files
committed
Pass unstable options to error index rustdoc invocation
1 parent cd8392d commit 4e25ae4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/test.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1687,6 +1687,9 @@ fn markdown_test(builder: &Builder<'_>, compiler: Compiler, markdown: &Path) ->
16871687
builder.info(&format!("doc tests for: {}", markdown.display()));
16881688
let mut cmd = builder.rustdoc_cmd(compiler);
16891689
builder.add_rust_test_threads(&mut cmd);
1690+
// allow for unstable options such as new editions
1691+
cmd.arg("-Z");
1692+
cmd.arg("unstable-options");
16901693
cmd.arg("--test");
16911694
cmd.arg(markdown);
16921695
cmd.env("RUSTC_BOOTSTRAP", "1");

0 commit comments

Comments
 (0)