Closed
Description
This has come up in two places recently: #115333 (comment) and #116675 (comment).
We should do the following:
- On
ptr::null()
, document thatptr::null()
is equivalent to0usize as *const _
- Either before or after it lands, update the text in #116675 to document that "allocated objects" cannot contain the 0 address (alternatively, if that PR lands with text that says that an allocated object cannot contain the "null" address, update the text to mention that null is equal to 0)
Are there other places we should update too?