File tree 2 files changed +4
-1
lines changed
compiler/rustc_interface/src
src/bootstrap/src/core/build_steps
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -827,7 +827,7 @@ fn run_required_analyses(tcx: TyCtxt<'_>) {
827
827
if tcx. sess . opts . unstable_opts . input_stats {
828
828
rustc_passes:: input_stats:: print_hir_stats ( tcx) ;
829
829
}
830
- #[ cfg( debug_assertions) ]
830
+ #[ cfg( all ( not ( doc ) , debug_assertions) ) ]
831
831
rustc_passes:: hir_id_validator:: check_crate ( tcx) ;
832
832
let sess = tcx. sess ;
833
833
sess. time ( "misc_checking_1" , || {
Original file line number Diff line number Diff line change @@ -845,6 +845,9 @@ impl Step for Rustc {
845
845
cargo. rustdocflag ( "--extern-html-root-url" ) ;
846
846
cargo. rustdocflag ( "ena=https://docs.rs/ena/latest/" ) ;
847
847
848
+ // Enabling the "jump to def" feature on rustc's source code pages.
849
+ cargo. rustdocflag ( "--generate-link-to-definition" ) ;
850
+
848
851
let mut to_open = None ;
849
852
850
853
let out_dir = builder. stage_out ( compiler, Mode :: Rustc ) . join ( target) . join ( "doc" ) ;
You can’t perform that action at this time.
0 commit comments