diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-04-26 12:14:10 +0200 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-04-26 12:14:10 +0200 |
| commit | 4e25ae480753baca2664d32cea6591f6cd221a32 (patch) | |
| tree | 7eda8f7985e18e9d3b83cc202b1afe55ea27641b | |
| parent | cd8392dd9932c30f5e6e7b42a1f3ab9e90ab11f8 (diff) | |
| download | rust-4e25ae480753baca2664d32cea6591f6cd221a32.tar.gz rust-4e25ae480753baca2664d32cea6591f6cd221a32.zip | |
Pass unstable options to error index rustdoc invocation
| -rw-r--r-- | src/bootstrap/test.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 117201ab3cd..977d6ca8e8e 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"); |
