Skip to content

Commit 404df00

Browse files
committed
address comments
1 parent 662fd14 commit 404df00

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/concurrency/sync.rs

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ pub(super) use declare_id;
6767
declare_id!(MutexId);
6868

6969
/// The mutex kind.
70-
/// The meaning of this type is defined by concrete mutex implementations.
7170
#[derive(Debug, Clone, Copy)]
7271
#[non_exhaustive]
7372
pub enum MutexKind {

tests/fail-dep/concurrency/libc_pthread_mutex_move.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ignore-target-windows: No pthreads on Windows
2-
//@[unlock_register]only-target-linux: recursive initializers are non-standard.
32
//@revisions: lock trylock unlock_register unlock_detect init
3+
//@[unlock_register]only-target-linux: recursive initializers are non-standard.
44

55
fn main() {
66
check();
@@ -22,7 +22,6 @@ fn check() {
2222
unsafe {
2323
let mut m: libc::pthread_mutex_t = libc::PTHREAD_MUTEX_INITIALIZER;
2424
libc::pthread_mutex_lock(&mut m as *mut _);
25-
// libc::pthread_mutex_unlock(&mut m as *mut _);
2625

2726
let mut m2 = m;
2827
libc::pthread_mutex_lock(&mut m2 as *mut _); //~[lock] ERROR: pthread_mutex_t can't be moved after first use
@@ -34,7 +33,6 @@ fn check() {
3433
unsafe {
3534
let mut m: libc::pthread_mutex_t = libc::PTHREAD_MUTEX_INITIALIZER;
3635
libc::pthread_mutex_trylock(&mut m as *mut _);
37-
// libc::pthread_mutex_unlock(&mut m as *mut _);
3836

3937
let mut m2 = m;
4038
libc::pthread_mutex_trylock(&mut m2 as *mut _); //~[trylock] ERROR: pthread_mutex_t can't be moved after first use

0 commit comments

Comments
 (0)