Uh oh!
There was an error while loading. Please reload this page.
Struct variant field search - #68668
Conversation
On the backend, rustdoc now emits `paths` entries to a crate's search index for struct-like enum variants, and index items of type structfield which belong to such variants point to their variant parents in the `paths` table, rather than their enum grandparents. The path entry for a variant is the fully qualified module path plus the enum name. On the frontend, the search code recognizes structfields belonging to structlike variants in the `paths` table and re-constructs the URL to the field's anchor on the enum documentation page. closesrust-lang#16017
kinnison
commented
Feb 1, 2020
I've built and verified this works against a local trivial test case. For some reason I failed to run the JS tests locally, I must be missing something. |
kinnison
left a comment
There was a problem hiding this comment.
The change looks sane, though as I said I can't verify the test case per-se
kinnison
commented
Feb 1, 2020
@bors r+ |
bors
commented
Feb 1, 2020
📌 Commit 862af62 has been approved by |
…-search, r=kinnison Struct variant field search Fixesrust-lang#16017. Reopening of rust-lang#64724. cc @tomjakubowski cc @ollie27 r? @kinnison
bors
commented
Feb 1, 2020
⌛ Testing commit 862af62 with merge e7580348ea0e0747a8775b1df6ea22ddd63a9d56... |
…-search, r=kinnison Struct variant field search Fixesrust-lang#16017. Reopening of rust-lang#64724. cc @tomjakubowski cc @ollie27 r? @kinnison
JohnTitor
commented
Feb 1, 2020
@bors retry rolledup |
bors
commented
Feb 1, 2020
⌛ Testing commit 862af62 with merge 6c85a17e145d1c6fa36a02de58c81c5103ca00ca... |
JohnTitor
commented
Feb 1, 2020
Failed in #68747 (comment) |
862af62 to
8ee30dbCompareollie27
commented
Feb 15, 2020
This looks good to me. @bors r+ |
bors
commented
Feb 15, 2020
📌 Commit 8ee30db has been approved by |
bors
commented
Feb 15, 2020
…ollie27 Struct variant field search Fixes#16017. Reopening of #64724. cc @tomjakubowski cc @ollie27 r? @kinnison
bors
commented
Feb 16, 2020
☀️ Test successful - checks-azure |
Fixes#16017.
Reopening of #64724.
cc @tomjakubowski
cc @ollie27
r? @kinnison