Skip to content

Commit 1ff8ff2

Browse files
committed
Use DefaultHasher
1 parent ff7906b commit 1ff8ff2

File tree

2 files changed

+6
-6
lines changed
  • compiler
    • rustc_data_structures/src
    • rustc_type_ir/src/data_structures

2 files changed

+6
-6
lines changed

compiler/rustc_data_structures/src/fx.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
use std::hash::BuildHasherDefault;
1+
use std::hash::{BuildHasherDefault, DefaultHasher};
22

33
pub use rustc_hash::{FxHashMap, FxHashSet, FxHasher};
44

55
pub type StdEntry<'a, K, V> = std::collections::hash_map::Entry<'a, K, V>;
66

7-
pub type FxIndexMap<K, V> = indexmap::IndexMap<K, V, BuildHasherDefault<FxHasher>>;
8-
pub type FxIndexSet<V> = indexmap::IndexSet<V, BuildHasherDefault<FxHasher>>;
7+
pub type FxIndexMap<K, V> = indexmap::IndexMap<K, V, BuildHasherDefault<DefaultHasher>>;
8+
pub type FxIndexSet<V> = indexmap::IndexSet<V, BuildHasherDefault<DefaultHasher>>;
99
pub type IndexEntry<'a, K, V> = indexmap::map::Entry<'a, K, V>;
1010
pub type IndexOccupiedEntry<'a, K, V> = indexmap::map::OccupiedEntry<'a, K, V>;
1111

compiler/rustc_type_ir/src/data_structures/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
use std::hash::BuildHasherDefault;
1+
use std::hash::{BuildHasherDefault, DefaultHasher};
22

33
use rustc_hash::FxHasher;
44
pub use rustc_hash::{FxHashMap as HashMap, FxHashSet as HashSet};
55

6-
pub type IndexMap<K, V> = indexmap::IndexMap<K, V, BuildHasherDefault<FxHasher>>;
7-
pub type IndexSet<V> = indexmap::IndexSet<V, BuildHasherDefault<FxHasher>>;
6+
pub type IndexMap<K, V> = indexmap::IndexMap<K, V, BuildHasherDefault<DefaultHasher>>;
7+
pub type IndexSet<V> = indexmap::IndexSet<V, BuildHasherDefault<DefaultHasher>>;
88

99
mod delayed_map;
1010

0 commit comments

Comments
 (0)