rust/library/std/src/sys_common
bors 6f435eb0eb Auto merge of #114016 - krtab:delete_sys_memchr, r=workingjubilee
Delete architecture-specific memchr code in std::sys

Currently all architecture-specific memchr code is only used in `std::io`. Most of the actual `memchr` capacity exposed to the user through the slice API is instead implemented in `core::slice::memchr`.

Hence this commit deletes `memchr` from `std::sys[_common]` and replace calls to it by calls to `core::slice::memchr` functions. This deletes `(r)memchr` from the list of symbols linked to libc.

The interest of putting architecture specific code back in core is linked to the discussion to be had in #113654
2024-03-01 00:45:47 +00:00
..
net Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
once library: use addr_of! 2024-02-24 16:02:17 +03:00
thread_local_key rename ptr::invalid -> ptr::without_provenance 2024-02-21 20:15:52 +01:00
thread_parking std: synchronize with all calls to unpark in id-based thread parker 2023-08-07 19:13:34 +02:00
wtf8 Move OsStr::slice_encoded_bytes validation to platform modules 2024-01-21 19:51:49 +01:00
backtrace.rs rename ptr::invalid -> ptr::without_provenance 2024-02-21 20:15:52 +01:00
fs.rs Hide Repr details from io::Error, and rework io::Error::new_const. 2022-02-04 18:47:29 -08:00
io.rs Update rand in the stdlib tests, and remove the getrandom feature from it 2023-01-04 14:52:41 -08:00
lazy_box.rs Leak pthreax_mutex_t when it's dropped while locked. 2022-06-16 12:09:12 +02:00
mod.rs Delete architecture-specific memchr code in std::sys 2024-02-20 22:27:39 +01:00
net.rs library: use addr_of! 2024-02-24 16:02:17 +03:00
process.rs also print clearing the environment entirely 2023-08-24 08:08:46 +02:00
tests.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
thread.rs Remove an allocation in min_stack 2023-12-10 13:28:59 -08:00
thread_info.rs Refactor thread_info to remove the RefCell 2023-09-11 14:11:37 -04:00
thread_local_dtor.rs std: abort instead of panicking if the global allocator uses TLS 2023-10-04 11:49:48 +02:00
thread_local_key.rs Remove unused std::sys_common::thread_local_key::Key. 2023-04-27 15:25:48 +02:00
wstr.rs Replace NonZero::<_>::new with NonZero::new. 2024-02-15 08:09:42 +01:00
wtf8.rs Move OsStr::slice_encoded_bytes validation to platform modules 2024-01-21 19:51:49 +01:00