hashbrown breaking changes
hashbrown 0.17.0 (April 9, 2026) is its newest release with breaking changes, 11 of them. The first: Raises minimum supported Rust version to 1.85 in hashbrown 0.17.0. Every breaking API change we have recorded in hashbrown on crates.io: 118 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.17.2, released November 22, 2026. Source repository
Its 0.12.0 release requires Rust 1.56.1 or later. Rust end of life dates.
hashbrown 0.17.0 breaking changes
- Removed
The minimum supported Rust version is now 1.85 with the 2024 edition, so older toolchains no longer build this release. github.com - Signature changed
EntryRef
EntryRef was changed to use the ToOwned trait, so code relying on its previous bounds may need updating. github.com - Signature changed
hashbrown::hash_map::EntryRef::insert
Was fn insert(self, value: V) -> OccupiedEntry<'a, K, V, S, A> where K: Hash, &'b Q: Into<K>, S: BuildHasher,; now fn insert(self, value: V) -> OccupiedEntry<'a, K, V, S, A> where K: Hash, Q: ToOwned<Owned = K>, S: BuildHasher,. crates.io - Signature changed
hashbrown::hash_map::EntryRef::or_default
Was fn or_default(self) -> &'a mut V where K: Hash, &'b Q: Into<K>, S: BuildHasher,; now fn or_default(self) -> &'a mut V where K: Hash, Q: ToOwned<Owned = K>, S: BuildHasher,. crates.io - Signature changed
hashbrown::hash_map::EntryRef::or_default_entry
Was fn or_default_entry(self) -> OccupiedEntry<'a, K, V, S, A> where K: Hash + From<&'b Q>, S: BuildHasher,; now fn or_default_entry(self) -> OccupiedEntry<'a, K, V, S, A> where K: Hash, Q: ToOwned<Owned = K>, S: BuildHasher,. crates.io - Signature changed
hashbrown::hash_map::EntryRef::or_insert
Was fn or_insert(self, default: V) -> &'a mut V where K: Hash, &'b Q: Into<K>, S: BuildHasher,; now fn or_insert(self, default: V) -> &'a mut V where K: Hash, Q: ToOwned<Owned = K>, S: BuildHasher,. crates.io - Signature changed
hashbrown::hash_map::EntryRef::or_insert_with
Was fn or_insert_with<F: FnOnce() -> V>(self, default: F) -> &'a mut V where K: Hash, &'b Q: Into<K>, S: BuildHasher,; now fn or_insert_with<F: FnOnce() -> V>(self, default: F) -> &'a mut V where K: Hash, Q: ToOwned<Owned = K>, S... crates.io - Signature changed
hashbrown::hash_map::EntryRef::or_insert_with_key
Was fn or_insert_with_key<F: FnOnce(&Q) -> V>(self, default: F) -> &'a mut V where K: Hash + Borrow<Q>, &'b Q: Into<K>, S: BuildHasher,; now fn or_insert_with_key<F: FnOnce(&Q) -> V>(self, default: F) -> &'a mut V where K: Hash +... crates.io - Signature changed
hashbrown::hash_map::VacantEntryRef::insert
Was fn insert(self, value: V) -> &'map mut V where K: Hash, &'key Q: Into<K>, S: BuildHasher,; now fn insert(self, value: V) -> &'map mut V where K: Hash, Q: ToOwned<Owned = K>, S: BuildHasher,. crates.io - Signature changed
hashbrown::hash_map::VacantEntryRef::insert_entry
Was fn insert_entry(self, value: V) -> OccupiedEntry<'map, K, V, S, A> where K: Hash, &'key Q: Into<K>, S: BuildHasher,; now fn insert_entry(self, value: V) -> OccupiedEntry<'map, K, V, S, A> where K: Hash, Q: ToOwned<Owned = K>, S... crates.io - Signature changed
hashbrown::TryReserveError::AllocError
Was AllocError {/// The layout of the allocation request that failed. layout: alloc::alloc::Layout}; now AllocError {/// The layout of the allocation request that failed. layout: stdalloc::alloc::Layout}. crates.io
hashbrown 0.16.0 breaking changes
- Behavior changed
DefaultHashBuilder
The default hasher is now foldhash 0.2.0. DefaultHashBuilder is now a newtype wrapper around foldhash rather than a direct re-export, so code relying on its exact foldhash type may need adjustment. github.com - Signature changed
hashbrown::DefaultHashBuilder
Was enum DefaultHashBuilder; now struct DefaultHashBuilder. crates.io
hashbrown 0.15.0 breaking changes
- Removed
hashbrown::hash_map::EntryRef::and_replace_entry_with
hashbrown::hash_map::EntryRef::and_replace_entry_with was removed in hashbrown 0.15.0 crates.io - Removed
hashbrown::hash_map::HashMap::raw_table
hashbrown::hash_map::HashMap::raw_table was removed in hashbrown 0.15.0 crates.io - Removed
hashbrown::hash_map::HashMap::raw_table_mut
hashbrown::hash_map::HashMap::raw_table_mut was removed in hashbrown 0.15.0 crates.io - Removed
hashbrown::hash_map::OccupiedEntry::replace_entry
hashbrown::hash_map::OccupiedEntry::replace_entry was removed in hashbrown 0.15.0 crates.io - Removed
hashbrown::hash_map::OccupiedEntry::replace_key
hashbrown::hash_map::OccupiedEntry::replace_key was removed in hashbrown 0.15.0 crates.io - Removed
hashbrown::hash_map::OccupiedEntryRef
hashbrown::hash_map::OccupiedEntryRef was removed in hashbrown 0.15.0 crates.io - Removed
hashbrown::hash_map::RawEntryBuilder
hashbrown::hash_map::RawEntryBuilder was removed in hashbrown 0.15.0 crates.io - Removed
hashbrown::hash_map::RawEntryBuilderMut
hashbrown::hash_map::RawEntryBuilderMut was removed in hashbrown 0.15.0 crates.io - Removed
hashbrown::hash_map::RawEntryMut
hashbrown::hash_map::RawEntryMut was removed in hashbrown 0.15.0 crates.io - Removed
hashbrown::hash_map::RawOccupiedEntryMut
hashbrown::hash_map::RawOccupiedEntryMut was removed in hashbrown 0.15.0 crates.io
And 72 more in this version. Sign up to see every change
hashbrown 0.14.0 breaking changes
- Removed
bumpalo
Use the allocator-api2 feature in bumpalo to use it as an allocator for hashbrown collections. github.com - Renamed
DrainFilter
Use ExtractIf instead of DrainFilter. When the iterator is dropped, remaining elements are no longer removed. github.com - Renamed
RawTable.find_potential
Use find_or_find_insert_slot, which returns an InsertSlot. github.com - Default changed
OccupiedEntry
Entries without an explicit hasher generic now use the default hasher. github.com - Default changed
VacantEntry
Entries without an explicit hasher generic now use the default hasher. github.com - Configuration changed
Builds need Rust 1.64.0 or later. github.com - Signature changed
{Map,Set}.raw_table
Code that needs a mutable reference from raw_table must change. github.com - Signature changed
hashbrown::hash_map::EntryRef::and_replace_entry_with
The closure argument type changed from &Q to &K. crates.io - Signature changed
hashbrown::hash_map::HashMap::raw_table
Was fn raw_table(&mut self) -> &mut RawTable<(K, V), A>; now fn raw_table(&self) -> &RawTable<(K, V), A>. crates.io - Signature changed
hashbrown::hash_map::OccupiedEntry
Was struct OccupiedEntry<'a, K, V, S, A: Allocator + Clone = Global>; now struct OccupiedEntry<'a, K, V, S = DefaultHashBuilder, A: Allocator + Clone = Global>. crates.io
And 10 more in this version. Sign up to see every change
hashbrown 0.12.0 breaking changes
- Renamed
get_each_mut
get_each_mut was renamed to get_many_mut to match the standard library. Update calls to use the new name. github.com - Behavior changed
The minimum supported Rust version is now 1.56.1 and the crate uses edition 2021. Older compilers will no longer build it. github.com - Behavior changed
RawTable.insert_no_grow
RawTable::insert_no_grow must now be called inside an unsafe block. Callers need to wrap calls accordingly. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.