Skip to content

Commit 1edd389

Browse files
committedMar 23, 2020
Auto merge of #70330 - Centril:rollup-ts0clvx, r=Centril
Rollup of 9 pull requests Successful merges: - #68700 (Add Wake trait for safe construction of Wakers.) - #69494 (Stabilize --crate-version option in rustdoc) - #70080 (rustc_mir: remove extra space when pretty-printing MIR.) - #70195 (Add test for issue #53275) - #70199 (Revised span-to-lines conversion to produce an empty vec on DUMMY_SP.) - #70299 (add err_machine_stop macro) - #70300 (Reword unused variable warning) - #70315 (Rename remaining occurences of Void to Opaque.) - #70318 (Split long derive lists into two derive attributes.) Failed merges: r? @ghost
2 parents 55299b2 + 5b29348 commit 1edd389

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+296
-586
lines changed
 

‎src/bootstrap/bin/rustdoc.rs

-5
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@ fn main() {
5252
// Bootstrap's Cargo-command builder sets this variable to the current Rust version; let's pick
5353
// it up so we can make rustdoc print this into the docs
5454
if let Some(version) = env::var_os("RUSTDOC_CRATE_VERSION") {
55-
// This "unstable-options" can be removed when `--crate-version` is stabilized
56-
if !has_unstable {
57-
cmd.arg("-Z").arg("unstable-options");
58-
}
5955
cmd.arg("--crate-version").arg(version);
60-
has_unstable = true;
6156
}
6257

6358
// Needed to be able to run all rustdoc tests.

‎src/bootstrap/doc.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ impl Step for Standalone {
313313
}
314314

315315
let mut cmd = builder.rustdoc_cmd(compiler);
316+
// Needed for --index-page flag
317+
cmd.arg("-Z").arg("unstable-options");
318+
316319
cmd.arg("--html-after-content")
317320
.arg(&footer)
318321
.arg("--html-before-content")
@@ -395,7 +398,7 @@ impl Step for Std {
395398

396399
// Keep a whitelist so we do not build internal stdlib crates, these will be
397400
// build by the rustc step later if enabled.
398-
cargo.arg("-Z").arg("unstable-options").arg("-p").arg(package);
401+
cargo.arg("-p").arg(package);
399402
// Create all crate output directories first to make sure rustdoc uses
400403
// relative links.
401404
// FIXME: Cargo should probably do this itself.
@@ -406,6 +409,8 @@ impl Step for Std {
406409
.arg("rust.css")
407410
.arg("--markdown-no-toc")
408411
.arg("--generate-redirect-pages")
412+
.arg("-Z")
413+
.arg("unstable-options")
409414
.arg("--resource-suffix")
410415
.arg(crate::channel::CFG_RELEASE_NUM)
411416
.arg("--index-page")

0 commit comments

Comments
 (0)