Skip to content

Commit 5c8705d

Browse files
GuillaumeGomezpietroalbini
authored andcommitted
Add resource suffix for libtest and proc_macro as well
1 parent 477bd6a commit 5c8705d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/doc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ fn invoke_rustdoc(
343343
.arg("--html-before-content").arg(&version_info)
344344
.arg("--html-in-header").arg(&favicon)
345345
.arg("--markdown-no-toc")
346-
.arg("--resource-suffix").arg(crate::channel::CFG_RELEASE_NUM)
347346
.arg("--markdown-playground-url").arg("https://play.rust-lang.org/")
348347
.arg("-o").arg(&out).arg(&path)
349348
.arg("--markdown-css").arg("../rust.css");
@@ -428,7 +427,6 @@ impl Step for Standalone {
428427
.arg("--html-before-content").arg(&version_info)
429428
.arg("--html-in-header").arg(&favicon)
430429
.arg("--markdown-no-toc")
431-
.arg("--resource-suffix").arg(crate::channel::CFG_RELEASE_NUM)
432430
.arg("--index-page").arg(&builder.src.join("src/doc/index.md"))
433431
.arg("--markdown-playground-url").arg("https://play.rust-lang.org/")
434432
.arg("-o").arg(&out)
@@ -588,6 +586,7 @@ impl Step for Test {
588586

589587
cargo.arg("--no-deps")
590588
.arg("-p").arg("test")
589+
.env("RUSTDOC_RESOURCE_SUFFIX", crate::channel::CFG_RELEASE_NUM)
591590
.env("RUSTDOC_GENERATE_REDIRECT_PAGES", "1");
592591

593592
builder.run(&mut cargo);
@@ -659,6 +658,7 @@ impl Step for WhitelistedRustc {
659658
// for which docs must be built.
660659
for krate in &["proc_macro"] {
661660
cargo.arg("-p").arg(krate)
661+
.env("RUSTDOC_RESOURCE_SUFFIX", crate::channel::CFG_RELEASE_NUM)
662662
.env("RUSTDOC_GENERATE_REDIRECT_PAGES", "1");
663663
}
664664

0 commit comments

Comments
 (0)