rust/library/std/src/sys
bors 1e6fe5855a Auto merge of #94079 - petrochenkov:cstr, r=joshtriplett
library: Move `CStr` to libcore, and `CString` to liballoc

Closes https://github.com/rust-lang/rust/issues/46736

Interesting points:
- Stability:
    - To make `CStr(ing)` from libcore/liballoc unusable without enabling features I had to make these structures unstable, and reexport them from libstd using stable type aliases instead of `pub use` reexports. (Because stability of `use` items is not checked.)
- Relying on target ABI in libcore is ok:
    - https://github.com/rust-lang/rust/pull/94079#issuecomment-1044263371
- `trait CStrExt` (UPDATE: used only in `cfg(bootstrap)` mode, otherwise lang items are used instead)
    - https://github.com/rust-lang/rust/pull/94079#issuecomment-1047863450
- `strlen`
    - https://github.com/rust-lang/rust/pull/94079#issuecomment-1047863450

Otherwise it's just a code move + some minor hackery usual for liballoc in `cfg(test)` mode.
2022-04-15 15:47:17 +00:00
..
common resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
hermit library: Remove definitions and reexports of strlen from libstd 2022-04-14 21:57:01 +03:00
itron Move std::sys::{mutex, condvar, rwlock} to std::sys::locks. 2022-03-22 18:19:47 +01:00
sgx library: Remove definitions and reexports of strlen from libstd 2022-04-14 21:57:01 +03:00
solid library: Remove definitions and reexports of strlen from libstd 2022-04-14 21:57:01 +03:00
unix library: Remove definitions and reexports of strlen from libstd 2022-04-14 21:57:01 +03:00
unsupported library: Remove definitions and reexports of strlen from libstd 2022-04-14 21:57:01 +03:00
wasi Move std::sys::{mutex, condvar, rwlock} to std::sys::locks. 2022-03-22 18:19:47 +01:00
wasm Rename RWLock to RwLock in std::sys. 2022-04-06 16:33:53 +02:00
windows Auto merge of #94079 - petrochenkov:cstr, r=joshtriplett 2022-04-15 15:47:17 +00:00
mod.rs Use target_family = "wasm" 2021-11-10 08:35:42 -08:00