diff options
| author | Josh Stone <jistone@redhat.com> | 2025-02-26 20:47:53 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2025-03-10 17:08:30 -0700 |
| commit | 3b0c2585c8daec44877a38fd83edaf1888afe7f9 (patch) | |
| tree | dcdac774c95f0089ed156981520a71ff2275e19d /compiler/rustc_middle/src/ty/context.rs | |
| parent | 9fb94b32df38073bf63d009df77ed10cb1c989d0 (diff) | |
| download | rust-3b0c2585c8daec44877a38fd83edaf1888afe7f9.tar.gz rust-3b0c2585c8daec44877a38fd83edaf1888afe7f9.zip | |
Convert `ShardedHashMap` to use `hashbrown::HashTable`
The `hash_raw_entry` feature has finished fcp-close, so the compiler should stop using it to allow its removal. Several `Sharded` maps were using raw entries to avoid re-hashing between shard and map lookup, and we can do that with `hashbrown::HashTable` instead.
Diffstat (limited to 'compiler/rustc_middle/src/ty/context.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index edba2a2530f..70bb902d1ae 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -2336,8 +2336,8 @@ macro_rules! sty_debug_print { $(let mut $variant = total;)* for shard in tcx.interners.type_.lock_shards() { - let types = shard.keys(); - for &InternedInSet(t) in types { + let types = shard.iter(); + for &(InternedInSet(t), ()) in types { let variant = match t.internee { ty::Bool | ty::Char | ty::Int(..) | ty::Uint(..) | ty::Float(..) | ty::Str | ty::Never => continue, |
