diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-02-19 22:44:19 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-02-20 12:10:46 -0500 |
| commit | 9deed6f74ea2df0ba08fb72342bef4eb303d0777 (patch) | |
| tree | 691ddbe24f6296065a2b1d3c0dbae1614029d0dd /compiler/rustc_data_structures | |
| parent | 3b348d932aa5c9884310d025cf7c516023fd0d9a (diff) | |
| download | rust-9deed6f74ea2df0ba08fb72342bef4eb303d0777.tar.gz rust-9deed6f74ea2df0ba08fb72342bef4eb303d0777.zip | |
Move Sharded maps into each QueryCache impl
Diffstat (limited to 'compiler/rustc_data_structures')
| -rw-r--r-- | compiler/rustc_data_structures/src/sharded.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/sharded.rs b/compiler/rustc_data_structures/src/sharded.rs index 417c61242a5..01d292dde8d 100644 --- a/compiler/rustc_data_structures/src/sharded.rs +++ b/compiler/rustc_data_structures/src/sharded.rs @@ -129,7 +129,7 @@ impl<K: Eq + Hash + Copy + IntoPointer> ShardedHashMap<K, ()> { } #[inline] -fn make_hash<K: Hash + ?Sized>(val: &K) -> u64 { +pub fn make_hash<K: Hash + ?Sized>(val: &K) -> u64 { let mut state = FxHasher::default(); val.hash(&mut state); state.finish() |
