-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Document that null is 0 #116895
Copy link
Copy link
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]T-opsemRelevant to the opsem teamRelevant to the opsem team
Description
Activity
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]T-opsemRelevant to the opsem teamRelevant to the opsem team
This has come up in two places recently: #115333 (comment) and #116675 (comment).
We should do the following:
ptr::null(), document thatptr::null()is equivalent to0usize as *const _Are there other places we should update too?
cc @the8472 @tmandry @RalfJung