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
On this page
Latest version 0.5.0, released October 21, 2026. Source repository
Its 0.5.0 release requires Rust 1.95 or later. Rust end of life dates.
lock_api 0.5.0 breaking changes
- Removed
const_new
Call the corresponding new methods in constant contexts instead. github.com - Removed
hardware-lock-elision
Remove any use of the hardware-lock-elision feature flag. github.com - Removed
lock_api::Mutex::const_new
lock_api::Mutex::const_new was removed in lock_api 0.5.0 crates.io - Removed
lock_api::RawRwLock::GuardMarker
Use RawMutex::Guard instead of GuardMarker. crates.io - Removed
lock_api::RawRwLockRecursive
The RawRwLockRecursive extension trait is removed; use the new RecursiveRwLock type for recursive reads. crates.io - Removed
lock_api::RawRwLockRecursiveTimed
The RawRwLockRecursiveTimed extension trait is removed; use the new RecursiveRwLock type for recursive reads. crates.io - Removed
lock_api::ReentrantMutex::const_new
lock_api::ReentrantMutex::const_new was removed in lock_api 0.5.0 crates.io - Removed
lock_api::RwLock::const_new
lock_api::RwLock::const_new was removed in lock_api 0.5.0 crates.io - Removed
lock_api::RwLock::read_arc_recursive
lock_api::RwLock::read_arc_recursive was removed in lock_api 0.5.0 crates.io - Removed
lock_api::RwLock::read_recursive
lock_api::RwLock::read_recursive was removed in lock_api 0.5.0 crates.io - 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 - 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 - Removed
lock_api::RwLock::try_read_recursive
lock_api::RwLock::try_read_recursive was removed in lock_api 0.5.0 crates.io - 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 - 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 - 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 - Removed
lock_api.nightly
Remove any use of the lock_api/nightly feature flag. github.com - Removed
UnparkResult.be_fair
Automatic eventual fairness is gone; use the explicit fair-unlock APIs instead. github.com - Renamed
lock_api::MappedRwLockReadGuard::try_map_or_else
Use try_map_or_err instead of try_map_or_else. crates.io - Renamed
lock_api::RawMutex::GuardMarker
Use lock_api::RawMutex::Guard instead. crates.io - 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 - Behavior changed
Mutex
Lock release wakes parked threads after the lock is released, improving contention performance; no code change is needed. github.com - Behavior changed
parking_lot_core
parking_lot_core operations no longer unwind. github.com - Behavior changed
RwLock
Custom raw lock implementations must follow new safety requirements for unwinding and ownership. github.com - Configuration changed
Users must build with Rust 1.95 or later. github.com - Signature changed
lock_api::GuardNoSend
Was struct GuardNoSend(*mut ()); now struct GuardNoSend(core::marker::PhantomData<*mut ()>). crates.io - Signature changed
lock_api::MappedMutexGuard
Was struct MappedMutexGuard<'a, R: RawMutex, T: ?Sized>; now struct MappedMutexGuard<'a, R: RawMutex, T: ?Sized + 'a>. crates.io - 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 - 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 - 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 - 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 - Signature changed
lock_api::MappedRwLockReadGuard
Was struct MappedRwLockReadGuard<'a, R: RawRwLock, T: ?Sized>; now struct MappedRwLockReadGuard<'a, R: RawRwLock, T: ?Sized + 'a>. crates.io - Signature changed
lock_api::MappedRwLockWriteGuard
Was struct MappedRwLockWriteGuard<'a, R: RawRwLock, T: ?Sized>; now struct MappedRwLockWriteGuard<'a, R: RawRwLock, T: ?Sized + 'a>. crates.io - 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 - 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 - 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 - Signature changed
lock_api::Mutex::force_unlock
Was unsafe fn force_unlock(&self); now unsafe fn force_unlock(&self, guard: R::Guard). crates.io - 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 - 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 - Signature changed
lock_api::RawMutex::lock
Was fn lock(&self); now fn lock(&self) -> Self::Guard. crates.io - Signature changed
lock_api::RawMutex::try_lock
Was fn try_lock(&self) -> bool; now fn try_lock(&self) -> Option<Self::Guard>. crates.io - Signature changed
lock_api::RawMutex::unlock
Was unsafe fn unlock(&self); now unsafe fn unlock(&self, guard: Self::Guard). crates.io - Signature changed
lock_api::RawMutexFair::bump
Was unsafe fn bump(&self); now unsafe fn bump(&self, guard: &mut Self::Guard). crates.io - Signature changed
lock_api::RawMutexFair::unlock_fair
Was unsafe fn unlock_fair(&self); now unsafe fn unlock_fair(&self, guard: Self::Guard). crates.io - 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 - 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 - Signature changed
lock_api::RawReentrantMutex
Was struct RawReentrantMutex<R, G>; now struct RawReentrantMutex<R: RawMutex, G>. crates.io - Signature changed
lock_api::RawRwLock::lock_exclusive
Was fn lock_exclusive(&self); now fn lock_exclusive(&self) -> Self::ExclusiveGuard. crates.io - Signature changed
lock_api::RawRwLock::lock_shared
Was fn lock_shared(&self); now fn lock_shared(&self) -> Self::SharedGuard. crates.io - 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
And 40 more in this version. Sign up to see every change
Related packages
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.