about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-01-20 15:01:45 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-02-05 17:40:33 +0100
commite58aa2105f3460c2da7aa747e7046a927d5cae7c (patch)
tree364b69309ada4e2d054346851424d3056b79e4fc /src/bootstrap
parent820bfffc25fee9866aa8176529091e04b8824f09 (diff)
downloadrust-e58aa2105f3460c2da7aa747e7046a927d5cae7c.tar.gz
rust-e58aa2105f3460c2da7aa747e7046a927d5cae7c.zip
Re-enable "jump to def" feature on rustc docs
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/build_steps/doc.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/doc.rs b/src/bootstrap/src/core/build_steps/doc.rs
index 0eb4080c053..dedcc139ae1 100644
--- a/src/bootstrap/src/core/build_steps/doc.rs
+++ b/src/bootstrap/src/core/build_steps/doc.rs
@@ -830,7 +830,8 @@ impl Step for Rustc {
         cargo.rustdocflag("--show-type-layout");
         // FIXME: `--generate-link-to-definition` tries to resolve cfged out code
         // see https://github.com/rust-lang/rust/pull/122066#issuecomment-1983049222
-        // cargo.rustdocflag("--generate-link-to-definition");
+        // If there is any bug, please comment out the next line.
+        cargo.rustdocflag("--generate-link-to-definition");
 
         compile::rustc_cargo(builder, &mut cargo, target, &compiler, &self.crates);
         cargo.arg("-Zskip-rustdoc-fingerprint");