Uh oh!
There was an error while loading. Please reload this page.
Remove duplicates in rustdoc - #43966
Conversation
ollie27
commented
Aug 21, 2017
This really needs to be done when inlining instead. We need to not inline things from globs if they are shadowed.
You can use Lines 99 to 100 in 80be2f8 |
There was a problem hiding this comment.
I don't see how this else branch will return anything but None? Also was there any major reason that is_some needed the as_ref there?
There was a problem hiding this comment.
To avoid a panic mainly. But I could directly return None, indeed.
There was a problem hiding this comment.
does something like items.get(*i).map(|n| full_path(cx, &items[*i])) work here?
nevermind, this is not equivalent
GuillaumeGomez
commented
Aug 23, 2017
@ollie27: Nice, thanks! |
9c2bf4f to
e770c09CompareQuietMisdreavus
commented
Aug 23, 2017
(the rest of the travis run is stuck on mac builders) |
e770c09 to
5d71280CompareGuillaumeGomez
commented
Aug 24, 2017
Fixed the tidy issue (deprecating TODO is strange). |
QuietMisdreavus
commented
Aug 24, 2017
I'm willing to land this as-is. If we want to change how this deduplication happens later, we only need to take out one statement to revert this change. (Plus, we have a test for this now. @bors r+ rollup |
bors
commented
Aug 24, 2017
📌 Commit 5d71280 has been approved by |
…isdreavus Remove duplicates in rustdoc Fixesrust-lang#43934. Two things however: 1. I'm not happy with the current check. It seems completely overkill and unsatisfying. 2. I have no idea how to test if there is only one element and not two. r? @rust-lang/docs
Fixes#43934.
Two things however:
r? @rust-lang/docs