mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Update rustc-hash to version 2
This brings in the new optimized algorithm that was shown to have small performance benefits for rustc.
This commit is contained in:
parent
9323b53858
commit
6a2b8270c9
4 changed files with 34 additions and 31 deletions
|
@ -51,10 +51,7 @@ mod test_db;
|
|||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
use std::{
|
||||
collections::hash_map::Entry,
|
||||
hash::{BuildHasherDefault, Hash},
|
||||
};
|
||||
use std::{collections::hash_map::Entry, hash::Hash};
|
||||
|
||||
use base_db::ra_salsa::InternValueTrivial;
|
||||
use chalk_ir::{
|
||||
|
@ -245,7 +242,7 @@ impl MemoryMap {
|
|||
match self {
|
||||
MemoryMap::Empty => Ok(Default::default()),
|
||||
MemoryMap::Simple(m) => transform((&0, m)).map(|(addr, val)| {
|
||||
let mut map = FxHashMap::with_capacity_and_hasher(1, BuildHasherDefault::default());
|
||||
let mut map = FxHashMap::with_capacity_and_hasher(1, rustc_hash::FxBuildHasher);
|
||||
map.insert(addr, val);
|
||||
map
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue