forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
rustdoc::clean::utils::find_nearest_parent_module
to TyCtxt
`find_nearest_parent_module` was extracted from `rustdoc::passes::collect_intra_doc_links` in rust-lang#80368. We (me and Joshua Nelson) thought at the time that it should be in rustc instead, and Joshua suggested it be a method on `TyCtxt`. However, since rust-lang#80368 was fixing a significant regression that was about to land on beta, we agreed that to be able to fix this quickly I should leave the code in rustdoc. This is a followup PR to move it to `TyCtxt`.
- Loading branch information
Showing
4 changed files
with
34 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters