Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for soundness bug fix in Rust language #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lockedat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl<L> LockedAt<'_, L> {
///
/// If no further `LockedAt` calls need to be made after this one, consider
/// using [`LockedAt::wait_lock`] instead.
pub async fn wait_for_lock<'a, NewLock: LockAfter<L> + AsyncMutexLockLevel>(
pub async fn wait_for_lock<'a, NewLock: LockAfter<L> + AsyncMutexLockLevel + 'a>(
&'a mut self,
t: &'a NewLock::Mutex,
) -> (
Expand All @@ -187,7 +187,7 @@ impl<L> LockedAt<'_, L> {
///
/// If no further `LockedAt` calls need to be made after this one, consider
/// using [`LockedAt::wait_read`] instead.
pub async fn wait_for_read<'a, NewLock: LockAfter<L> + AsyncRwLockLevel>(
pub async fn wait_for_read<'a, NewLock: LockAfter<L> + AsyncRwLockLevel + 'a>(
&'a mut self,
t: &'a NewLock::RwLock,
) -> (
Expand All @@ -208,7 +208,7 @@ impl<L> LockedAt<'_, L> {
///
/// If no further `LockedAt` calls need to be made after this one, consider
/// using [`LockedAt::write_lock`] instead.
pub async fn wait_for_write<'a, NewLock: LockAfter<L> + AsyncRwLockLevel>(
pub async fn wait_for_write<'a, NewLock: LockAfter<L> + AsyncRwLockLevel + 'a>(
&'a mut self,
t: &'a NewLock::RwLock,
) -> (
Expand Down