rust/library/std/src/sys
Thalia Archibald a8d78fec52 Specialize OsString::push for strings
When concatenating two WTF-8 strings, surrogate pairs at the boundaries
need to be joined. However, since UTF-8 strings cannot contain surrogate
halves, this check can be skipped when one string is UTF-8. Specialize
`OsString::push` to use a more efficient concatenation in this case.

Unfortunately, a specialization for `T: AsRef<str>` conflicts with
`T: AsRef<OsStr>`, so stamp out string types with a macro.
2025-02-28 13:42:31 -08:00
..
alloc std: Apply unsafe_attr_outside_unsafe 2025-02-13 13:10:27 -08:00
anonymous_pipe Move std::pipe::* into std::io 2025-01-17 01:30:05 +11:00
io std: get rid of sys_common::io 2025-02-07 16:54:07 +01:00
net Rollup merge of #136826 - xizheyin:issue-136737, r=thomcc 2025-02-23 02:44:16 -05:00
os_str Specialize OsString::push for strings 2025-02-28 13:42:31 -08:00
pal fix: attr cast for espidf 2025-02-25 16:07:05 +01:00
path uefi: Implement path 2025-01-16 10:19:22 +05:30
personality Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
random Fix *-win7-windows-msvc target since 26eeac1a1e 2025-02-19 18:05:37 +08:00
sync Fix *-win7-windows-msvc target since 26eeac1a1e 2025-02-19 18:05:37 +08:00
thread_local Remove obsolete MinGW ThinLTO+TLS workaround 2025-02-17 22:10:25 +00:00
backtrace.rs Improve comments for the default backtrace printer 2024-12-04 20:54:37 -05:00
cmath.rs Implement f{16,32,64,128}::{erf,erfc} 2025-02-14 01:23:16 +03:00
exit_guard.rs Attempt to fix CI 2024-07-08 09:19:25 -05:00
mod.rs std: move io module out of pal 2025-02-07 16:54:07 +01:00