diff options
| author | kennytm <kennytm@gmail.com> | 2018-08-07 16:55:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-07 16:55:44 +0800 |
| commit | a5cd4b56076b32646b5aad123c0bfa1e9480ea42 (patch) | |
| tree | a3eb2b7e543435f02fd1facfa7a5f52f66bfb388 /src/libstd/sys | |
| parent | c1220610efc3e8663b16709a89cfd75a05510a20 (diff) | |
| parent | a92b5cc916a42c6f3425347281bb656d071c26d5 (diff) | |
| download | rust-a5cd4b56076b32646b5aad123c0bfa1e9480ea42.tar.gz rust-a5cd4b56076b32646b5aad123c0bfa1e9480ea42.zip | |
Rollup merge of #53107 - RalfJung:static-mutex, r=alexcrichton
Remove references to `StaticMutex` which got removed a while ago `StaticMutex` got removed two years ago with https://github.com/rust-lang/rust/pull/34705, but still got referenced in some comments and even an error explanation.
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/mutex.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libstd/sys/unix/mutex.rs b/src/libstd/sys/unix/mutex.rs index 52cf3f97c5c..60b03cdbeb0 100644 --- a/src/libstd/sys/unix/mutex.rs +++ b/src/libstd/sys/unix/mutex.rs @@ -49,9 +49,6 @@ impl Mutex { // references, we instead create the mutex with type // PTHREAD_MUTEX_NORMAL which is guaranteed to deadlock if we try to // re-lock it from the same thread, thus avoiding undefined behavior. - // - // We can't do anything for StaticMutex, but that type is deprecated - // anyways. let mut attr: libc::pthread_mutexattr_t = mem::uninitialized(); let r = libc::pthread_mutexattr_init(&mut attr); debug_assert_eq!(r, 0); |
