---
title: "lock_api 0.5.0 Breaking Changes on crates.io | Since.dev"
description: "What each lock_api release removed, renamed or changed: 90 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/lock_api
last_updated: 2026-12-04
---

# lock_api breaking changes

lock_api 0.5.0 (October 21, 2026) is its newest release with breaking changes, 90 of them. The first: Removed const_new. Every breaking API change we have recorded in lock_api on crates.io: 90 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.5.0`, released October 21, 2026. [Source repository](https://github.com/Amanieu/parking%5Flot)

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

## lock_api 0.5.0 breaking changes

lock_api 0.5.0, released October 21, 2026: 90 breaking changes.

- **Removed** `const_new`  

Call the corresponding new methods in constant contexts instead. [github.com](https://github.com/Amanieu/parking%5Flot/releases/tag/lock%5Fapi-v0.5.0)
- **Removed** `hardware-lock-elision`  

Remove any use of the hardware-lock-elision feature flag. [github.com](https://github.com/Amanieu/parking%5Flot/releases/tag/lock%5Fapi-v0.5.0)
- **Removed** `lock_api::Mutex::const_new`  

lock_api::Mutex::const_new was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RawRwLock::GuardMarker`  

Use RawMutex::Guard instead of GuardMarker. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RawRwLockRecursive`  

The RawRwLockRecursive extension trait is removed; use the new RecursiveRwLock type for recursive reads. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RawRwLockRecursiveTimed`  

The RawRwLockRecursiveTimed extension trait is removed; use the new RecursiveRwLock type for recursive reads. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::ReentrantMutex::const_new`  

lock_api::ReentrantMutex::const_new was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RwLock::const_new`  

lock_api::RwLock::const_new was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RwLock::read_arc_recursive`  

lock_api::RwLock::read_arc_recursive was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RwLock::read_recursive`  

lock_api::RwLock::read_recursive was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RwLock::try_read_arc_recursive_for`  

lock_api::RwLock::try_read_arc_recursive_for was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RwLock::try_read_arc_recursive_until`  

lock_api::RwLock::try_read_arc_recursive_until was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RwLock::try_read_recursive`  

lock_api::RwLock::try_read_recursive was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RwLock::try_read_recursive_arc`  

lock_api::RwLock::try_read_recursive_arc was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RwLock::try_read_recursive_for`  

lock_api::RwLock::try_read_recursive_for was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api::RwLock::try_read_recursive_until`  

lock_api::RwLock::try_read_recursive_until was removed in lock_api 0.5.0 [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Removed** `lock_api.nightly`  

Remove any use of the lock_api/nightly feature flag. [github.com](https://github.com/Amanieu/parking%5Flot/releases/tag/lock%5Fapi-v0.5.0)
- **Removed** `UnparkResult.be_fair`  

Automatic eventual fairness is gone; use the explicit fair-unlock APIs instead. [github.com](https://github.com/Amanieu/parking%5Flot/releases/tag/lock%5Fapi-v0.5.0)
- **Renamed** `lock_api::MappedRwLockReadGuard::try_map_or_else`  

Use try_map_or_err instead of try_map_or_else. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Renamed** `lock_api::RawMutex::GuardMarker`  

Use lock_api::RawMutex::Guard instead. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Behavior changed** `Condvar`  

Raw condvar implementations may wake spuriously and must return false or 0 from notify methods; parking_lot::Condvar still guarantees none. [github.com](https://github.com/Amanieu/parking%5Flot/releases/tag/lock%5Fapi-v0.5.0)
- **Behavior changed** `Mutex`  

Lock release wakes parked threads after the lock is released, improving contention performance; no code change is needed. [github.com](https://github.com/Amanieu/parking%5Flot/releases/tag/lock%5Fapi-v0.5.0)
- **Behavior changed** `parking_lot_core`  

parking_lot_core operations no longer unwind. [github.com](https://github.com/Amanieu/parking%5Flot/releases/tag/lock%5Fapi-v0.5.0)
- **Behavior changed** `RwLock`  

Custom raw lock implementations must follow new safety requirements for unwinding and ownership. [github.com](https://github.com/Amanieu/parking%5Flot/releases/tag/lock%5Fapi-v0.5.0)
- **Configuration changed**  

Users must build with Rust 1.95 or later. [github.com](https://github.com/Amanieu/parking%5Flot/releases/tag/lock%5Fapi-v0.5.0)
- **Signature changed** `lock_api::GuardNoSend`  

Was struct GuardNoSend(\*mut ()); now struct GuardNoSend(core::marker::PhantomData<\*mut ()>). [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::MappedMutexGuard`  

Was struct MappedMutexGuard<'a, R: RawMutex, T: ?Sized>; now struct MappedMutexGuard<'a, R: RawMutex, T: ?Sized + 'a>. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::MappedMutexGuard::map`  

Was fn map\<U: ?Sized, F>(s: Self, f: F) -> MappedMutexGuard<'a, R, U> where F: FnOnce(&mut T) -> &mut U,; now fn map\<U: ?Sized, F>(mut s: Self, f: F) -> MappedMutexGuard<'a, R, U> where F: FnOnce(&mut T) -> &mut U,. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::MappedMutexGuard::try_map`  

Was fn try_map\<U: ?Sized, F>(s: Self, f: F) -> Result\<MappedMutexGuard<'a, R, U>, Self> where F: FnOnce(&mut T) -> Option<&mut U>,; now fn try_map\<U: ?Sized, F>(mut s: Self, f: F) -> Result\<MappedMutexGuard<'a, R, U>, Self> where F... [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::MappedMutexGuard::try_map_or_err`  

Was fn try_map_or_err\<U: ?Sized, F, E>(s: Self, f: F) -> Result\<MappedMutexGuard<'a, R, U>, (Self, E)> where F: FnOnce(&mut T) -> Result<&mut U, E>,; now fn try_map_or_err\<U: ?Sized, F, E>(mut s: Self, f: F) -> Result\<MappedMutexGuard<'a... [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::MappedReentrantMutexGuard`  

Was struct MappedReentrantMutexGuard<'a, R: RawMutex, G: GetThreadId, T: ?Sized>; now struct MappedReentrantMutexGuard<'a, R: RawMutex, G: GetThreadId, T: ?Sized + 'a>. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::MappedRwLockReadGuard`  

Was struct MappedRwLockReadGuard<'a, R: RawRwLock, T: ?Sized>; now struct MappedRwLockReadGuard<'a, R: RawRwLock, T: ?Sized + 'a>. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::MappedRwLockWriteGuard`  

Was struct MappedRwLockWriteGuard<'a, R: RawRwLock, T: ?Sized>; now struct MappedRwLockWriteGuard<'a, R: RawRwLock, T: ?Sized + 'a>. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::MappedRwLockWriteGuard::map`  

Was fn map\<U: ?Sized, F>(s: Self, f: F) -> MappedRwLockWriteGuard<'a, R, U> where F: FnOnce(&mut T) -> &mut U,; now fn map\<U: ?Sized, F>(mut s: Self, f: F) -> MappedRwLockWriteGuard<'a, R, U> where F: FnOnce(&mut T) -> &mut U,. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::MappedRwLockWriteGuard::try_map`  

Was fn try_map\<U: ?Sized, F>(s: Self, f: F) -> Result\<MappedRwLockWriteGuard<'a, R, U>, Self> where F: FnOnce(&mut T) -> Option<&mut U>,; now fn try_map\<U: ?Sized, F>(mut s: Self, f: F) -> Result\<MappedRwLockWriteGuard<'a, R, U>, Self>... [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::MappedRwLockWriteGuard::try_map_or_err`  

Was fn try_map_or_err\<U: ?Sized, F, E>(s: Self, f: F) -> Result\<MappedRwLockWriteGuard<'a, R, U>, (Self, E)> where F: FnOnce(&mut T) -> Result<&mut U, E>,; now fn try_map_or_err\<U: ?Sized, F, E>(mut s: Self, f: F) ->... [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::Mutex::force_unlock`  

Was unsafe fn force_unlock(&self); now unsafe fn force_unlock(&self, guard: R::Guard). [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::Mutex::force_unlock_fair`  

Was unsafe fn force_unlock_fair(&self); now unsafe fn force_unlock_fair(&self, guard: R::Guard). [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::Mutex::make_guard_unchecked`  

Was unsafe fn make_guard_unchecked(&self) -> MutexGuard<'\_, R, T>; now unsafe fn make_guard_unchecked(&self, guard: R::Guard) -> MutexGuard<'\_, R, T>. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawMutex::lock`  

Was fn lock(&self); now fn lock(&self) -> Self::Guard. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawMutex::try_lock`  

Was fn try_lock(&self) -> bool; now fn try_lock(&self) -> Option\<Self::Guard>. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawMutex::unlock`  

Was unsafe fn unlock(&self); now unsafe fn unlock(&self, guard: Self::Guard). [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawMutexFair::bump`  

Was unsafe fn bump(&self); now unsafe fn bump(&self, guard: &mut Self::Guard). [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawMutexFair::unlock_fair`  

Was unsafe fn unlock_fair(&self); now unsafe fn unlock_fair(&self, guard: Self::Guard). [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawMutexTimed::try_lock_for`  

Was fn try_lock_for(&self, timeout: Self::Duration) -> bool; now fn try_lock_for(&self, timeout: Self::Duration) -> Option\<Self::Guard>. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawMutexTimed::try_lock_until`  

Was fn try_lock_until(&self, timeout: Self::Instant) -> bool; now fn try_lock_until(&self, timeout: Self::Instant) -> Option\<Self::Guard>. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawReentrantMutex`  

Was struct RawReentrantMutex\<R, G>; now struct RawReentrantMutex\<R: RawMutex, G>. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawRwLock::lock_exclusive`  

Was fn lock_exclusive(&self); now fn lock_exclusive(&self) -> Self::ExclusiveGuard. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawRwLock::lock_shared`  

Was fn lock_shared(&self); now fn lock_shared(&self) -> Self::SharedGuard. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)
- **Signature changed** `lock_api::RawRwLock::try_lock_exclusive`  

Was fn try_lock_exclusive(&self) -> bool; now fn try_lock_exclusive(&self) -> Option\<Self::ExclusiveGuard>. [crates.io](https://crates.io/crates/lock%5Fapi/0.5.0)

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

## Related packages

- [parking_lot](https://since.dev/packages/crates/parking%5Flot.md)
- [parking_lot_core](https://since.dev/packages/crates/parking%5Flot%5Fcore.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.
