Skip to content

Commit c195fa0

Browse files
authored
References must also be non-null
1 parent 36a9816 commit c195fa0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/primitive_docs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,7 @@ mod prim_usize {}
14671467
/// For all types, `T: ?Sized`, and for all `t: &T` or `t: &mut T`, when such values cross an API
14681468
/// boundary, the following invariants must generally be upheld:
14691469
///
1470+
/// * `t` is non-null
14701471
/// * `t` is aligned to `align_of_val(t)`
14711472
/// * if `size_of_val(t) > 0`, then `t` is dereferenceable for `size_of_val(t)` many bytes
14721473
///

0 commit comments

Comments
 (0)