Box::into_raw doesn't document that the returned pointer will not be null #52806
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
The existence of the unstable
Box::into_raw_non_null
kind of hints that this is the case (as does an understanding of how Box internally works), but it would be nice for unsafe code to actually guarantee this.The text was updated successfully, but these errors were encountered: