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

feat(rustdoc-json-types): introduce rustc-hash feature #131936

Merged
merged 1 commit into from
Oct 20, 2024

Commits on Oct 19, 2024

  1. feat(rustdoc-json-types): introduce rustc-hash feature

    This allows the public `rustdoc-types` crate to expose this feature
    easily and allows consumers of the crate to get the performance
    advantages from doing so.
    
    The reasoning for this was discussed on [Zulip][1]
    
    Changes:
    - Make `rustc-hash` optional but default to including it
    - Rename all occurrences of `FxHashMap` to `HashMap`.
    - Feature gate the import and rename the imported `FxHashMap` to
      `HashMap`
    - Introduce a type alias `FxHashMap` which resolves to the currently
      used `HashMap` (`rustc_hash::FxHashMap` or
      `std::collections::HashMap`) for use in `src/librustdoc`.
    
    [1]: https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/rustc-hash.20and.20performance.20of.20rustdoc-types
    jalil-salame committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    d1fa49b View commit details
    Browse the repository at this point in the history