Skip to content

Commit

Permalink
References must also be non-null
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlf authored May 11, 2024
1 parent 1cefaa7 commit 15df3d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1467,6 +1467,7 @@ mod prim_usize {}
/// For all types, `T: ?Sized`, and for all `t: &T` or `t: &mut T`, when such values cross an API
/// boundary, the following invariants must generally be upheld:
///
/// * `t` is non-null
/// * `t` is aligned to `align_of_val(t)`
/// * if `size_of_val(t) > 0`, then `t` is dereferenceable for `size_of_val(t)` many bytes
///
Expand Down

0 comments on commit 15df3d7

Please sign in to comment.