about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-06-12 18:31:32 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-08-16 18:08:35 +0200
commita92c29b2385f4999d4cd9ef7589f1fc07ef9cdfb (patch)
tree9933ecda325e799b8dcb105bb40b323f816fca50 /src/libstd
parent36b18a1901e50ab526fd03b5f4713c283f2e2fb6 (diff)
downloadrust-a92c29b2385f4999d4cd9ef7589f1fc07ef9cdfb.tar.gz
rust-a92c29b2385f4999d4cd9ef7589f1fc07ef9cdfb.zip
Update hashbrown to 0.5.0
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/Cargo.toml2
-rw-r--r--src/libstd/collections/hash/map.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/Cargo.toml b/src/libstd/Cargo.toml
index 5334c4dfc68..3288d0b4df2 100644
--- a/src/libstd/Cargo.toml
+++ b/src/libstd/Cargo.toml
@@ -23,7 +23,7 @@ libc = { version = "0.2.51", default-features = false, features = ['rustc-dep-of
 compiler_builtins = { version = "0.1.16" }
 profiler_builtins = { path = "../libprofiler_builtins", optional = true }
 unwind = { path = "../libunwind" }
-hashbrown = { version = "0.4.0", features = ['rustc-dep-of-std'] }
+hashbrown = { version = "0.5.0", features = ['rustc-dep-of-std'] }
 
 [dependencies.backtrace]
 version = "0.3.34"
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index 8581cf13b08..db637a108cb 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -2545,7 +2545,7 @@ fn map_entry<'a, K: 'a, V: 'a>(raw: base::RustcEntry<'a, K, V>) -> Entry<'a, K,
 fn map_collection_alloc_err(err: hashbrown::CollectionAllocErr) -> TryReserveError {
     match err {
         hashbrown::CollectionAllocErr::CapacityOverflow => TryReserveError::CapacityOverflow,
-        hashbrown::CollectionAllocErr::AllocErr => TryReserveError::AllocErr,
+        hashbrown::CollectionAllocErr::AllocErr { .. } => TryReserveError::AllocErr,
     }
 }