Uh oh!
There was an error while loading. Please reload this page.
Merged
Conversation
There was a problem hiding this comment.
Why not:
letmut item_parent = item_opt
.and_then(|item| self.cx.as_local_hir_id(item.def_id)).and_then(|item_hir| {let parent_hir = self.cx.tcx.hir().get_parent_item(item_hir);
cx.tcx.hir().find(parent_hir);});?
GuillaumeGomez
commented
May 13, 2020
Member
Thanks for the PR! Looks good globally, just a little code improvement to be done and it's good for me! cc @rust-lang/rustdoc |
ghost
commented
May 13, 2020
Author
@rust-lang/rustdoc are we merging ;) |
GuillaumeGomez
commented
May 14, 2020
Member
Moving forward then. @bors: r+ |
bors
commented
May 14, 2020
Collaborator
📌 Commit 617c7cd has been approved by |
bors added a commit
to rust-lang-ci/rust
that referenced
this pull request
May 15, 2020
Rollup of 7 pull requests Successful merges: - rust-lang#71809 (Use `LocalDefId` in `DumpVisitor::nest_tables`) - rust-lang#72062 (Add built in PSP target) - rust-lang#72146 (Provide separate option for std debug asserts) - rust-lang#72172 (Forbid stage arguments to check) - rust-lang#72173 (Make intra links work inside trait impl block) - rust-lang#72200 (Add prioritize_on attribute to triagebot) - rust-lang#72214 (Minor fixes to comments) Failed merges: r? @ghost
27 tasks
This file contains hidden or 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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes#54172