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

Rollup of 8 pull requests #121836

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
bea6f37
Convert `Unix{Datagram,Stream}::{set_}passcred()` to per-OS traits
jmillikin Oct 25, 2023
ee61f09
Add arm64ec-pc-windows-msvc target
dpaoliello Dec 16, 2023
bab4cda
Add a new `wasm32-wasip1` target to rustc
alexcrichton Jan 29, 2024
a9907b1
remove Mutex::unlock
HTGAzureX1212 Feb 28, 2024
4996194
Improve error messages for generics with default parameters
veera-sivarajan Feb 21, 2024
3ba50b3
Avoid code duplication
veera-sivarajan Feb 23, 2024
cc13f82
Update item order in test
veera-sivarajan Feb 23, 2024
a7832b1
Make the success arms of `if lhs || rhs` meet up in a separate block
Zalathar Feb 28, 2024
f11713b
Error on stray .stderr/.stdout files for (un-)revisioned tests
jieyouxu Feb 22, 2024
19ee457
Remove stray stdout/stderr files
jieyouxu Feb 22, 2024
7e64163
CFI: Remove unused `typeid_for_fnsig`
rcvalle Feb 29, 2024
f989c9a
Rollup merge of #117156 - jmillikin:os-unix-socket-ext, r=Amanieu
workingjubilee Mar 1, 2024
fa99d91
Rollup merge of #119199 - dpaoliello:arm64ec, r=wesleywiser
workingjubilee Mar 1, 2024
25fccc3
Rollup merge of #120468 - alexcrichton:start-wasm32-wasi-rename, r=we…
workingjubilee Mar 1, 2024
fca99e5
Rollup merge of #121416 - veera-sivarajan:bugfix-120785, r=nnethercote
workingjubilee Mar 1, 2024
b4add6e
Rollup merge of #121475 - jieyouxu:tidy-stderr-check, r=the8472,compi…
workingjubilee Mar 1, 2024
90f4d9a
Rollup merge of #121736 - HTGAzureX1212:HTGAzureX1212/remove-mutex-un…
workingjubilee Mar 1, 2024
985f608
Rollup merge of #121784 - Zalathar:if-or-converge, r=Nadrieril
workingjubilee Mar 1, 2024
9017458
Rollup merge of #121818 - rcvalle:rust-cfi-remove-unused-typeid-for-f…
workingjubilee Mar 1, 2024
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
Prev Previous commit
Next Next commit
remove Mutex::unlock
HTGAzureX1212 committed Feb 28, 2024
commit a9907b1fdf2887a9839d81e70c7d98d69265fde0
20 changes: 0 additions & 20 deletions library/std/src/sync/mutex.rs
Original file line number Diff line number Diff line change
@@ -369,26 +369,6 @@ impl<T: ?Sized> Mutex<T> {
}
}

/// Immediately drops the guard, and consequently unlocks the mutex.
///
/// This function is equivalent to calling [`drop`] on the guard but is more self-documenting.
/// Alternately, the guard will be automatically dropped when it goes out of scope.
///
/// ```
/// #![feature(mutex_unlock)]
///
/// use std::sync::Mutex;
/// let mutex = Mutex::new(0);
///
/// let mut guard = mutex.lock().unwrap();
/// *guard += 20;
/// Mutex::unlock(guard);
/// ```
#[unstable(feature = "mutex_unlock", issue = "81872")]
pub fn unlock(guard: MutexGuard<'_, T>) {
drop(guard);
}

/// Determines whether the mutex is poisoned.
///
/// If another thread is active, the mutex can still become poisoned at any