diff options
| author | Jalil David Salamé Messina <jalil.salame@gmail.com> | 2024-10-19 17:48:06 +0200 |
|---|---|---|
| committer | Jalil David Salamé Messina <jalil.salame@gmail.com> | 2024-10-19 18:15:09 +0200 |
| commit | d1fa49b2e66c343210c413b68ed57f150b7b89d8 (patch) | |
| tree | 2646f634bea236ce9d875024e85f3f6d03ae2c4b /compiler/rustc_codegen_llvm/src/common.rs | |
| parent | c926476d013fbb2ca43bd5259d0a7228009a9cb2 (diff) | |
| download | rust-d1fa49b2e66c343210c413b68ed57f150b7b89d8.tar.gz rust-d1fa49b2e66c343210c413b68ed57f150b7b89d8.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
0 files changed, 0 insertions, 0 deletions
