Use UnhashMap for a few more maps
This avoids hashing data that's already hashed.
This commit is contained in:
parent
c58a5da7d4
commit
510fcd318b
4 changed files with 28 additions and 6 deletions
|
@ -330,7 +330,7 @@ pub(crate) struct HygieneData {
|
|||
/// would have collisions without a disambiguator.
|
||||
/// The keys of this map are always computed with `ExpnData.disambiguator`
|
||||
/// set to 0.
|
||||
expn_data_disambiguators: FxHashMap<Hash64, u32>,
|
||||
expn_data_disambiguators: UnhashMap<Hash64, u32>,
|
||||
}
|
||||
|
||||
impl HygieneData {
|
||||
|
@ -359,7 +359,7 @@ impl HygieneData {
|
|||
dollar_crate_name: kw::DollarCrate,
|
||||
}],
|
||||
syntax_context_map: FxHashMap::default(),
|
||||
expn_data_disambiguators: FxHashMap::default(),
|
||||
expn_data_disambiguators: UnhashMap::default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue