Skip to content

Commit c0a3c37

Browse files
committed
Update hashbrown to 0.8.1
1 parent d1e3904 commit c0a3c37

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

std/Cargo.toml

Lines changed: 1 addition & 1 deletion
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 }

std/src/collections/hash/map.rs

Lines changed: 4 additions & 4 deletions
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)