diff --git a/library/std/src/sys/pal/unix/thread.rs b/library/std/src/sys/pal/unix/thread.rs index a9ed7e7c75e..3e3a54c3c74 100644 --- a/library/std/src/sys/pal/unix/thread.rs +++ b/library/std/src/sys/pal/unix/thread.rs @@ -278,7 +278,7 @@ pub fn get_name() -> Option { return None; } let info = tinfo.assume_init(); - let name = slice::from_raw_parts(info.name.as_ptr() as *const u8, info.name.len()); + let name = core::slice::from_raw_parts(info.name.as_ptr() as *const u8, info.name.len()); CStr::from_bytes_until_nul(name).map(CStr::to_owned).ok() } }