This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -797,7 +797,10 @@ impl Step for Rustc {
797797 cargo. rustdocflag ( "-Zunstable-options" ) ;
798798 cargo. rustdocflag ( "-Znormalize-docs" ) ;
799799 cargo. rustdocflag ( "--show-type-layout" ) ;
800- cargo. rustdocflag ( "--generate-link-to-definition" ) ;
800+ // FIXME: `--generate-link-to-definition` tries to resolve cfged out code
801+ // see https://github.com/rust-lang/rust/pull/122066#issuecomment-1983049222
802+ // cargo.rustdocflag("--generate-link-to-definition");
803+
801804 compile:: rustc_cargo ( builder, & mut cargo, target, compiler. stage ) ;
802805 cargo. arg ( "-Zunstable-options" ) ;
803806 cargo. arg ( "-Zskip-rustdoc-fingerprint" ) ;
@@ -953,8 +956,10 @@ macro_rules! tool_doc {
953956 cargo. rustdocflag( "-Arustdoc::private-intra-doc-links" ) ;
954957 cargo. rustdocflag( "--enable-index-page" ) ;
955958 cargo. rustdocflag( "--show-type-layout" ) ;
956- cargo. rustdocflag( "--generate-link-to-definition" ) ;
957959 cargo. rustdocflag( "-Zunstable-options" ) ;
960+ // FIXME: `--generate-link-to-definition` tries to resolve cfged out code
961+ // see https://github.com/rust-lang/rust/pull/122066#issuecomment-1983049222
962+ // cargo.rustdocflag("--generate-link-to-definition");
958963
959964 let out_dir = builder. stage_out( compiler, Mode :: ToolRustc ) . join( target. triple) . join( "doc" ) ;
960965 $( for krate in $crates {
You can’t perform that action at this time.
0 commit comments