Skip to content

Commit d51b7b2

Browse files
committed
Update hashbrown to 0.8.1
1 parent dbc2ef2 commit d51b7b2

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

Cargo.lock

+5-11
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,6 @@ dependencies = [
137137
"winapi 0.3.8",
138138
]
139139

140-
[[package]]
141-
name = "autocfg"
142-
version = "0.1.7"
143-
source = "registry+https://github.com/rust-lang/crates.io-index"
144-
checksum = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2"
145-
146140
[[package]]
147141
name = "autocfg"
148142
version = "1.0.0"
@@ -766,7 +760,7 @@ version = "0.7.2"
766760
source = "registry+https://github.com/rust-lang/crates.io-index"
767761
checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
768762
dependencies = [
769-
"autocfg 1.0.0",
763+
"autocfg",
770764
"cfg-if",
771765
"lazy_static",
772766
]
@@ -1245,11 +1239,11 @@ dependencies = [
12451239

12461240
[[package]]
12471241
name = "hashbrown"
1248-
version = "0.6.2"
1242+
version = "0.8.1"
12491243
source = "registry+https://github.com/rust-lang/crates.io-index"
1250-
checksum = "3cd9867f119b19fecb08cd5c326ad4488d7a1da4bf75b4d95d71db742525aaab"
1244+
checksum = "34f595585f103464d8d2f6e9864682d74c1601fed5e07d62b1c9058dba8246fb"
12511245
dependencies = [
1252-
"autocfg 0.1.7",
1246+
"autocfg",
12531247
"compiler_builtins",
12541248
"rustc-std-workspace-alloc",
12551249
"rustc-std-workspace-core",
@@ -2079,7 +2073,7 @@ version = "0.9.54"
20792073
source = "registry+https://github.com/rust-lang/crates.io-index"
20802074
checksum = "1024c0a59774200a555087a6da3f253a9095a5f344e353b212ac4c8b8e450986"
20812075
dependencies = [
2082-
"autocfg 1.0.0",
2076+
"autocfg",
20832077
"cc",
20842078
"libc",
20852079
"openssl-src",

library/std/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ libc = { version = "0.2.51", default-features = false, features = ['rustc-dep-of
2020
compiler_builtins = { version = "0.1.32" }
2121
profiler_builtins = { path = "../profiler_builtins", optional = true }
2222
unwind = { path = "../unwind" }
23-
hashbrown = { version = "0.6.2", default-features = false, features = ['rustc-dep-of-std'] }
23+
hashbrown = { version = "0.8.1", default-features = false, features = ['rustc-dep-of-std'] }
2424

2525
# Dependencies of the `backtrace` crate
2626
addr2line = { version = "0.13.0", optional = true, default-features = false }

library/std/src/collections/hash/map.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ where
580580
#[inline]
581581
#[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
582582
pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError> {
583-
self.base.try_reserve(additional).map_err(map_collection_alloc_err)
583+
self.base.try_reserve(additional).map_err(map_try_reserve_error)
584584
}
585585

586586
/// Shrinks the capacity of the map as much as possible. It will drop
@@ -2569,10 +2569,10 @@ fn map_entry<'a, K: 'a, V: 'a>(raw: base::RustcEntry<'a, K, V>) -> Entry<'a, K,
25692569
}
25702570

25712571
#[inline]
2572-
fn map_collection_alloc_err(err: hashbrown::CollectionAllocErr) -> TryReserveError {
2572+
fn map_try_reserve_error(err: hashbrown::TryReserveError) -> TryReserveError {
25732573
match err {
2574-
hashbrown::CollectionAllocErr::CapacityOverflow => TryReserveError::CapacityOverflow,
2575-
hashbrown::CollectionAllocErr::AllocErr { layout } => {
2574+
hashbrown::TryReserveError::CapacityOverflow => TryReserveError::CapacityOverflow,
2575+
hashbrown::TryReserveError::AllocError { layout } => {
25762576
TryReserveError::AllocError { layout, non_exhaustive: () }
25772577
}
25782578
}

0 commit comments

Comments
 (0)