Skip to content

Commit 6d63d3b

Browse files
committed
Remove "sys isn't exported yet" phrase
The oldest occurence is from 9e224c2, which is from the pre-1.0 days. In the years since then, std::sys still hasn't been exported, and the last attempt was met with strong criticism: rust-lang#97151 Thus, removing the "yet" part makes a lot of sense.
1 parent 6831417 commit 6d63d3b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

library/std/src/sys/unix/locks/pthread_mutex.rs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pub unsafe fn raw(m: &Mutex) -> *mut libc::pthread_mutex_t {
1616
unsafe impl Send for Mutex {}
1717
unsafe impl Sync for Mutex {}
1818

19-
#[allow(dead_code)] // sys isn't exported yet
2019
impl Mutex {
2120
pub const fn new() -> Mutex {
2221
// Might be moved to a different address, so it is better to avoid

library/std/src/sys_common/thread_local_dtor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! or implement something more efficient.
1212
1313
#![unstable(feature = "thread_local_internals", issue = "none")]
14-
#![allow(dead_code)] // sys isn't exported yet
14+
#![allow(dead_code)]
1515

1616
use crate::ptr;
1717
use crate::sys_common::thread_local_key::StaticKey;

library/std/src/sys_common/thread_local_key.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
4747
#![allow(non_camel_case_types)]
4848
#![unstable(feature = "thread_local_internals", issue = "none")]
49-
#![allow(dead_code)] // sys isn't exported yet
49+
#![allow(dead_code)]
5050

5151
#[cfg(test)]
5252
mod tests;

0 commit comments

Comments
 (0)