Skip to content

Commit ef1bd08

Browse files
committed
std: Fix Thread::set_name() for newlib and solaris
The `use ffi::CStr` in `unix/thread.rs` was previously guarded, but now all platforms need it for `Thread::set_name()`. Newlib and Solaris do nothing here, as they have no way to set a thread name, but they still define the same method signature.
1 parent 3265bd5 commit ef1bd08

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/libstd/sys/unix/thread.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use prelude::v1::*;
1212

1313
use alloc::boxed::FnBox;
1414
use cmp;
15-
#[cfg(not(any(target_env = "newlib", target_os = "solaris")))]
1615
use ffi::CStr;
1716
use io;
1817
use libc;

0 commit comments

Comments
 (0)