Skip to content

Commit 929fd20

Browse files
RalfJungGankra
authored andcommitted
raw ptrs must be initialized like integers
1 parent 307db2a commit 929fd20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/what-unsafe-does.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ language cares about is preventing the following things:
3535
* `dyn Trait` metadata is invalid if it is not a pointer to a vtable for
3636
`Trait` that matches the actual dynamic trait the reference points to
3737
* a non-utf8 `str`
38-
* an uninitialized integer (`i*`/`u*`) or floating point value (`f*`)
38+
* an uninitialized integer (`i*`/`u*`), floating point value (`f*`), or raw
39+
pointer
3940
* an invalid library type with custom invalid values, such as a `NonNull` or
4041
`NonZero*` that is 0
4142
* Unwinding into another language

0 commit comments

Comments
 (0)