diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-06-07 17:25:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-07 17:25:42 +0200 |
| commit | a9c4a7e1aabb478e5dc6d9c324b06c8e810c4bf7 (patch) | |
| tree | 7dc11091675f1b68474e74d7c0a119fdc19b40c7 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | 7fe2c4b00dfbc33643e1af4b293eb057306a8339 (diff) | |
| parent | 0dda42bc143309e3036341298414269351627528 (diff) | |
| download | rust-a9c4a7e1aabb478e5dc6d9c324b06c8e810c4bf7.tar.gz rust-a9c4a7e1aabb478e5dc6d9c324b06c8e810c4bf7.zip | |
Rollup merge of #95948 - Nilstrieb:improve-cstr-safety-docs, r=RalfJung
Improve the safety docs for `CStr` Namely, the two functions `from_ptr` and `from_bytes_with_nul_unchecked`. Before, these functions didn't state the requirements clearly enough, and I was not immediately able to find them like for other functions. This doesn't change the content of the docs, but simply rewords them for clarity. note: I'm not entirely sure about the '`ptr` must be valid for reads of `u8`.', there might be room for improvement for this (and maybe for the other docs as well 😄)
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
