Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: emit JS paths for struct-like variants #64724

Closed
wants to merge 2 commits into from

Commits on Sep 24, 2019

  1. Configuration menu
    Copy the full SHA
    4125b27 View commit details
    Browse the repository at this point in the history
  2. rustdoc: emit JS paths for struct-like variants

    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.
    
    closes rust-lang#16017
    tomjakubowski committed Sep 24, 2019
    Configuration menu
    Copy the full SHA
    fb74e62 View commit details
    Browse the repository at this point in the history