---
title: "hashbrown 0.17.0 Breaking Changes on crates.io | Since.dev"
description: "What each hashbrown release removed, renamed or changed: 118 breaking changes in 5 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/hashbrown
last_updated: 2026-12-04
---

# 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

Latest version `0.17.2`, released November 22, 2026. [Source repository](https://github.com/rust-lang/hashbrown)

Its 0.12.0 release requires Rust 1.56.1 or later. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.12.0](#v-0-12-0) to [0.17.0](#v-0-17-0): 115 breaking changes in 4 versions.

## hashbrown 0.17.0 breaking changes

hashbrown 0.17.0, released April 9, 2026: 11 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](https://github.com/rust-lang/hashbrown/releases/tag/v0.17.0)
- **Signature changed** `EntryRef`  

EntryRef was changed to use the ToOwned trait, so code relying on its previous bounds may need updating. [github.com](https://github.com/rust-lang/hashbrown/releases/tag/v0.17.0)
- **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](https://crates.io/crates/hashbrown/0.17.0)
- **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](https://crates.io/crates/hashbrown/0.17.0)
- **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](https://crates.io/crates/hashbrown/0.17.0)
- **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](https://crates.io/crates/hashbrown/0.17.0)
- **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](https://crates.io/crates/hashbrown/0.17.0)
- **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](https://crates.io/crates/hashbrown/0.17.0)
- **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](https://crates.io/crates/hashbrown/0.17.0)
- **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](https://crates.io/crates/hashbrown/0.17.0)
- **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](https://crates.io/crates/hashbrown/0.17.0)

## hashbrown 0.16.0 breaking changes

hashbrown 0.16.0, released August 29, 2025: 2 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](https://github.com/rust-lang/hashbrown/releases/tag/v0.16.0)
- **Signature changed** `hashbrown::DefaultHashBuilder`  

Was enum DefaultHashBuilder; now struct DefaultHashBuilder. [crates.io](https://crates.io/crates/hashbrown/0.16.0)

## hashbrown 0.15.0 breaking changes

hashbrown 0.15.0, released October 1, 2024: 82 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](https://crates.io/crates/hashbrown/0.15.0)
- **Removed** `hashbrown::hash_map::HashMap::raw_table`  

hashbrown::hash_map::HashMap::raw_table was removed in hashbrown 0.15.0 [crates.io](https://crates.io/crates/hashbrown/0.15.0)
- **Removed** `hashbrown::hash_map::HashMap::raw_table_mut`  

hashbrown::hash_map::HashMap::raw_table_mut was removed in hashbrown 0.15.0 [crates.io](https://crates.io/crates/hashbrown/0.15.0)
- **Removed** `hashbrown::hash_map::OccupiedEntry::replace_entry`  

hashbrown::hash_map::OccupiedEntry::replace_entry was removed in hashbrown 0.15.0 [crates.io](https://crates.io/crates/hashbrown/0.15.0)
- **Removed** `hashbrown::hash_map::OccupiedEntry::replace_key`  

hashbrown::hash_map::OccupiedEntry::replace_key was removed in hashbrown 0.15.0 [crates.io](https://crates.io/crates/hashbrown/0.15.0)
- **Removed** `hashbrown::hash_map::OccupiedEntryRef`  

hashbrown::hash_map::OccupiedEntryRef was removed in hashbrown 0.15.0 [crates.io](https://crates.io/crates/hashbrown/0.15.0)
- **Removed** `hashbrown::hash_map::RawEntryBuilder`  

hashbrown::hash_map::RawEntryBuilder was removed in hashbrown 0.15.0 [crates.io](https://crates.io/crates/hashbrown/0.15.0)
- **Removed** `hashbrown::hash_map::RawEntryBuilderMut`  

hashbrown::hash_map::RawEntryBuilderMut was removed in hashbrown 0.15.0 [crates.io](https://crates.io/crates/hashbrown/0.15.0)
- **Removed** `hashbrown::hash_map::RawEntryMut`  

hashbrown::hash_map::RawEntryMut was removed in hashbrown 0.15.0 [crates.io](https://crates.io/crates/hashbrown/0.15.0)
- **Removed** `hashbrown::hash_map::RawOccupiedEntryMut`  

hashbrown::hash_map::RawOccupiedEntryMut was removed in hashbrown 0.15.0 [crates.io](https://crates.io/crates/hashbrown/0.15.0)

And 72 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## hashbrown 0.14.0 breaking changes

hashbrown 0.14.0, released June 5, 2023: 20 breaking changes.

- **Removed** `bumpalo`  

Use the allocator-api2 feature in bumpalo to use it as an allocator for hashbrown collections. [github.com](https://github.com/rust-lang/hashbrown/blob/v0.14.0/CHANGELOG.md)
- **Renamed** `DrainFilter`  

Use ExtractIf instead of DrainFilter. When the iterator is dropped, remaining elements are no longer removed. [github.com](https://github.com/rust-lang/hashbrown/blob/v0.14.0/CHANGELOG.md)
- **Renamed** `RawTable.find_potential`  

Use find_or_find_insert_slot, which returns an InsertSlot. [github.com](https://github.com/rust-lang/hashbrown/blob/v0.14.0/CHANGELOG.md)
- **Default changed** `OccupiedEntry`  

Entries without an explicit hasher generic now use the default hasher. [github.com](https://github.com/rust-lang/hashbrown/blob/v0.14.0/CHANGELOG.md)
- **Default changed** `VacantEntry`  

Entries without an explicit hasher generic now use the default hasher. [github.com](https://github.com/rust-lang/hashbrown/blob/v0.14.0/CHANGELOG.md)
- **Configuration changed**  

Builds need Rust 1.64.0 or later. [github.com](https://github.com/rust-lang/hashbrown/blob/v0.14.0/CHANGELOG.md)
- **Signature changed** `{Map,Set}.raw_table`  

Code that needs a mutable reference from raw_table must change. [github.com](https://github.com/rust-lang/hashbrown/blob/v0.14.0/CHANGELOG.md)
- **Signature changed** `hashbrown::hash_map::EntryRef::and_replace_entry_with`  

The closure argument type changed from &Q to &K. [crates.io](https://crates.io/crates/hashbrown/0.14.0)
- **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](https://crates.io/crates/hashbrown/0.14.0)
- **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](https://crates.io/crates/hashbrown/0.14.0)

And 10 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## hashbrown 0.12.0 breaking changes

hashbrown 0.12.0, released January 17, 2022: 3 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](https://github.com/rust-lang/hashbrown/blob/v0.12.0/CHANGELOG.md)
- **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](https://github.com/rust-lang/hashbrown/blob/v0.12.0/CHANGELOG.md)
- **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](https://github.com/rust-lang/hashbrown/blob/v0.12.0/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
