CStr::from_ptr should be documented to not allow strings bigger than isize::MAX #63590
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
A-FFI
Area: Foreign function interface (FFI)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
In #53784,
slice::from_raw_parts
was documented to not allow slices larger thanisize::MAX
bytes. However,CStr::from_ptr
is not documented to have the same requirement, despite allowing the user to obtain a slice larger thanisize::MAX
bytes with itsto_bytes
method.The text was updated successfully, but these errors were encountered: