Uh oh!
There was an error while loading. Please reload this page.
Search over generic types in docs - #45673
Conversation
rust-highfive
commented
Oct 31, 2017
(rust_highfive has picked a reviewer for you, use r? to override) |
fc2fb75 to
6f88227CompareGuillaumeGomez
commented
Nov 2, 2017
QuietMisdreavus
commented
Nov 3, 2017
Shouldn't some of these be in the "As return value" instead? I would expect the "As return value" tab to prioritize perfect matches of one of the type variables over ones that have no type variables but have a low lev score: For public perusal, i have a rendering of the current PR here. |
QuietMisdreavus
commented
Nov 6, 2017
Now that #45617 is merged, can you rebase on top of it to factor out the commits that were taken from there? |
There was a problem hiding this comment.
I think numElements would be a better name for this.
There was a problem hiding this comment.
I feel that this would be better off on the same line.
There was a problem hiding this comment.
I agree, only issue: line > 100 columns. :)
There was a problem hiding this comment.
The check is literalSearch === true in other parts of the code.
shepmaster
commented
Nov 11, 2017
Ping from triage — @GuillaumeGomez will you be able to address some of the feedback you've received? |
GuillaumeGomez
commented
Nov 11, 2017
I'll be able to address all of them. |
bors
commented
Nov 11, 2017
☔ The latest upstream changes (presumably #45932) made this pull request unmergeable. Please resolve the merge conflicts. |
597a82f to
942a4e9CompareGuillaumeGomez
commented
Nov 12, 2017
Updated. |
QuietMisdreavus
commented
Nov 12, 2017
GuillaumeGomez
commented
Nov 12, 2017
Hum, still not good then... Let's see what's happening. |
GuillaumeGomez
commented
Nov 12, 2017
Ok, the mystery has been solved: I forgot to add the results into the tab. We're good now. :) |
QuietMisdreavus
left a comment
There was a problem hiding this comment.
Home stretch! With that last change, this totally works. Just one last nit and i'll be ready to call it good.
There was a problem hiding this comment.
Can't this just reuse Type::generics rather than copying it out? That way, if other Types support generics, both this and the "document impls when the type appears in the traits generics" benefit.
2246728 to
0e4c829CompareQuietMisdreavus
commented
Nov 12, 2017
Excellent! r=me pending travis. Thanks so much for doing this! This makes the extended search tabs much nicer. |
GuillaumeGomez
commented
Nov 12, 2017
@bors: r=QuietMisdreavus |
bors
commented
Nov 12, 2017
📌 Commit 0e4c829 has been approved by |
bors
commented
Nov 13, 2017
…QuietMisdreavus Search over generic types in docs This is what I was talking about @QuietMisdreavus. Now we have generics. Waiting for #45617 to get merged.
bors
commented
Nov 13, 2017
☀️ Test successful - status-appveyor, status-travis |







This is what I was talking about @QuietMisdreavus. Now we have generics.
Waiting for #45617 to get merged.