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
..
2022-01-07 13:59:27 -08:00
2021-10-25 22:44:41 -05:00
2022-01-29 16:37:21 -05:00
2022-02-10 23:49:27 +09:00
2022-02-10 18:26:12 -08:00
2022-01-28 15:01:07 +01:00
2022-01-28 15:01:07 +01:00
2021-10-25 22:44:41 -05:00
2021-10-25 22:44:41 -05:00
2022-01-06 14:59:33 +00:00
2022-02-13 01:06:36 +01:00