rust/library/std/src/ffi
Jacob Pratt 9aae60befc
Rollup merge of #140936 - teor2345:wtf-surrogate-docs, r=workingjubilee
Clarify WTF-8 safety docs

This PR is a follow-up to PR #140159, which clarifies ~~two things~~:
- the WTF-8 safety comment [was confusing](https://github.com/rust-lang/rust/pull/140159#discussion_r2082766965), either surrogate condition is actually sufficient for safety, both are not required
- ~~the private `os_str::Slice` type name is easily confused with `std::slice`~~

~~Happy to bikeshed the `OsSlice` name, other alternatives are `OsStrSlice` and `StrSlice`. Now it's got a distinct name from `std::slice`, it's easy to search and replace.~~

cc ``@thaliaarchi`` ``@workingjubilee``
2025-05-26 03:38:17 +02:00
..
os_str Add inherent versions of MaybeUninit methods for slices 2025-01-11 23:57:00 -05:00
c_str.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
mod.rs limit impls of VaArgSafe to just types that are actually safe 2025-05-21 15:36:29 +02:00
os_str.rs Rollup merge of #140936 - teor2345:wtf-surrogate-docs, r=workingjubilee 2025-05-26 03:38:17 +02:00