From 549d7424d3c1373fe5fe3fde950e7a8b4f110107 Mon Sep 17 00:00:00 2001 From: Giacomo Stevanato Date: Tue, 24 Aug 2021 17:23:20 +0200 Subject: [PATCH] Enable rustdoc's --generate-link-to-definition for rustc docs --- src/bootstrap/doc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index fbc7f19cb731c..b7478d83955de 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -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");