Skip to content

Commit 2d42758

Browse files
committed
try using SsoHashMap instead
1 parent 32de28a commit 2d42758

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_type_ir/src/search_graph

1 file changed

+2
-1
lines changed

compiler/rustc_type_ir/src/search_graph/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use std::marker::PhantomData;
2020
use std::{iter, mem};
2121

2222
use derive_where::derive_where;
23+
use rustc_data_structures::sso::SsoHashMap;
2324
#[cfg(feature = "nightly")]
2425
use rustc_macros::{Decodable_NoContext, Encodable_NoContext, HashStable_NoContext};
2526
use rustc_type_ir::data_structures::HashMap;
@@ -229,7 +230,7 @@ impl Usages {
229230

230231
#[derive(Debug, Default)]
231232
pub struct CandidateUsages {
232-
usages: HashMap<StackDepth, Usages>,
233+
usages: SsoHashMap<StackDepth, Usages>,
233234
}
234235
impl CandidateUsages {
235236
pub fn add_usages(&mut self, mut other: CandidateUsages) {

0 commit comments

Comments
 (0)