Enable rustdoc's --generate-link-to-definition for rustc docs

This commit is contained in:
Giacomo Stevanato 2021-08-24 17:23:20 +02:00
parent 2c7bc5e33c
commit 549d7424d3

View File

@ -589,6 +589,7 @@ impl Step for Rustc {
cargo.rustdocflag("-Zunstable-options");
cargo.rustdocflag("-Znormalize-docs");
cargo.rustdocflag("--show-type-layout");
cargo.rustdocflag("--generate-link-to-definition");
compile::rustc_cargo(builder, &mut cargo, target);
cargo.arg("-Zunstable-options");
cargo.arg("-Zskip-rustdoc-fingerprint");