mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
60f5011005
This PR fixes #7235 and #3371, which removes trailing nulls from `str` types. Instead, it replaces the creation of c strings with a new type, `std::c_str::CString`, which wraps a malloced byte array, and respects: * No interior nulls * Ends with a trailing null