Skip to content

Commit 146aee6

Browse files
authored
Rollup merge of #88813 - lcnr:ena-docs, r=jyn514
explicitly link to external `ena` docs we currently do not link to the docs of `ena`: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_infer/infer/struct.InferCtxtInner.html#method.const_unification_table
2 parents b3af37a + 03f9fe2 commit 146aee6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: src/bootstrap/doc.rs

+8
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,18 @@ impl Step for Rustc {
590590
cargo.rustdocflag("-Znormalize-docs");
591591
cargo.rustdocflag("--show-type-layout");
592592
compile::rustc_cargo(builder, &mut cargo, target);
593+
cargo.arg("-Zunstable-options");
593594
cargo.arg("-Zskip-rustdoc-fingerprint");
594595

595596
// Only include compiler crates, no dependencies of those, such as `libc`.
597+
// Do link to dependencies on `docs.rs` however using `rustdoc-map`.
596598
cargo.arg("--no-deps");
599+
cargo.arg("-Zrustdoc-map");
600+
601+
// FIXME: `-Zrustdoc-map` does not yet correctly work for transitive dependencies,
602+
// once this is no longer an issue the special case for `ena` can be removed.
603+
cargo.rustdocflag("--extern-html-root-url");
604+
cargo.rustdocflag("ena=https://docs.rs/ena/latest/");
597605

598606
// Find dependencies for top level crates.
599607
let mut compiler_crates = HashSet::new();

0 commit comments

Comments
 (0)