File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
compiler/rustc_interface/src
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 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<'_>) {
827827 if tcx. sess . opts . unstable_opts . input_stats {
828828 rustc_passes:: input_stats:: print_hir_stats ( tcx) ;
829829 }
830- #[ cfg( debug_assertions) ]
830+ #[ cfg( all ( not ( doc ) , debug_assertions) ) ]
831831 rustc_passes:: hir_id_validator:: check_crate ( tcx) ;
832832 let sess = tcx. sess ;
833833 sess. time ( "misc_checking_1" , || {
Original file line number Diff line number Diff line change @@ -845,6 +845,9 @@ impl Step for Rustc {
845845 cargo. rustdocflag ( "--extern-html-root-url" ) ;
846846 cargo. rustdocflag ( "ena=https://docs.rs/ena/latest/" ) ;
847847
848+ // Enabling the "jump to def" feature on rustc's source code pages.
849+ cargo. rustdocflag ( "--generate-link-to-definition" ) ;
850+
848851 let mut to_open = None ;
849852
850853 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