Skip to content

Commit d6270ad

Browse files
committed
Auto merge of rust-lang#149159 - cuviper:library-hashbrown-0.16.1, r=Amanieu
library: upgrade to hashbrown v0.16.1 This is another step toward unspecializing `Copy`. See also rust-lang#135634 and rust-lang/hashbrown#662 r? `@Amanieu` cc `@joboet`
2 parents 24652e2 + f2e20c6 commit d6270ad

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ panic_unwind = { path = "../panic_unwind", optional = true }
2020
panic_abort = { path = "../panic_abort" }
2121
core = { path = "../core", public = true }
2222
unwind = { path = "../unwind" }
23-
hashbrown = { version = "0.15", default-features = false, features = [
23+
hashbrown = { version = "0.16.1", default-features = false, features = [
2424
'rustc-dep-of-std',
2525
] }
2626
std_detect = { path = "../std_detect", public = true }

std/src/collections/hash/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ where
10511051
K: Borrow<Q>,
10521052
Q: Hash + Eq,
10531053
{
1054-
self.base.get_many_mut(ks)
1054+
self.base.get_disjoint_mut(ks)
10551055
}
10561056

10571057
/// Attempts to get mutable references to `N` values in the map at once, without validating that
@@ -1118,7 +1118,7 @@ where
11181118
K: Borrow<Q>,
11191119
Q: Hash + Eq,
11201120
{
1121-
unsafe { self.base.get_many_unchecked_mut(ks) }
1121+
unsafe { self.base.get_disjoint_unchecked_mut(ks) }
11221122
}
11231123

11241124
/// Returns `true` if the map contains a value for the specified key.

0 commit comments

Comments
 (0)