From 4e25ae480753baca2664d32cea6591f6cd221a32 Mon Sep 17 00:00:00 2001 From: Ryan Levick Date: Mon, 26 Apr 2021 12:14:10 +0200 Subject: [PATCH] Pass unstable options to error index rustdoc invocation --- src/bootstrap/test.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 117201ab3cd8..977d6ca8e8e5 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -1687,6 +1687,9 @@ fn markdown_test(builder: &Builder<'_>, compiler: Compiler, markdown: &Path) -> builder.info(&format!("doc tests for: {}", markdown.display())); let mut cmd = builder.rustdoc_cmd(compiler); builder.add_rust_test_threads(&mut cmd); + // allow for unstable options such as new editions + cmd.arg("-Z"); + cmd.arg("unstable-options"); cmd.arg("--test"); cmd.arg(markdown); cmd.env("RUSTC_BOOTSTRAP", "1");