rust/library/std/src/ffi
Matthias Krüger 26dd6ac830
Rollup merge of #93979 - SUPERCILEX:debug_check, r=dtolnay
Add debug assertions to validate NUL terminator in c strings

The `unchecked` variants from the stdlib usually perform the check anyway if debug assertions are on (for example, `unwrap_unchecked`). This PR does the same thing for `CStr` and `CString`, validating the correctness for the NUL byte in debug mode.
2022-02-19 06:45:30 +01:00
..
c_str Add debug asserts to validate NUL terminator in c strings 2022-02-16 18:34:17 -08:00
os_str std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
c_str.rs Rollup merge of #93979 - SUPERCILEX:debug_check, r=dtolnay 2022-02-19 06:45:30 +01:00
mod.rs Emphasise that an OsStr[ing] is not necessarily a platform string 2021-12-02 21:02:56 +00:00
os_str.rs Rollup merge of #89869 - kpreid:from-doc, r=yaahc 2022-02-17 06:29:57 +01:00