diff options
| author | bors <bors@rust-lang.org> | 2025-02-08 02:57:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-02-08 02:57:14 +0000 |
| commit | 0148a2be13fcc929273eb3fc79359068afbe93e1 (patch) | |
| tree | a95ff3fedc0e38342a6b93bd78588781a93a8f30 /compiler/rustc_interface/src | |
| parent | e0607238c95df66e3d25a6c17aebe18c6726fc74 (diff) | |
| parent | 0a33d7ccd1491b9c751624bae9802e2578e3c067 (diff) | |
| download | rust-0148a2be13fcc929273eb3fc79359068afbe93e1.tar.gz rust-0148a2be13fcc929273eb3fc79359068afbe93e1.zip | |
Auto merge of #136713 - matthiaskrgr:rollup-sy6py39, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #135179 (Make sure to use `Receiver` trait when extracting object method candidate) - #136554 (Add `opt_alias_variances` and use it in outlives code) - #136556 ([AIX] Update tests/ui/wait-forked-but-failed-child.rs to accomodate exiting and idle processes.) - #136589 (Enable "jump to def" feature on rustc docs) - #136615 (sys: net: Add UEFI stubs) - #136635 (Remove outdated `base_port` calculation in std net test) - #136682 (Move two windows process tests to tests/ui) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index eda9c4e03fe..e5adcdb244f 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -827,7 +827,9 @@ fn run_required_analyses(tcx: TyCtxt<'_>) { if tcx.sess.opts.unstable_opts.input_stats { rustc_passes::input_stats::print_hir_stats(tcx); } - #[cfg(debug_assertions)] + // When using rustdoc's "jump to def" feature, it enters this code and `check_crate` + // is not defined. So we need to cfg it out. + #[cfg(all(not(doc), debug_assertions))] rustc_passes::hir_id_validator::check_crate(tcx); let sess = tcx.sess; sess.time("misc_checking_1", || { |
