From c73730bb8a14a2a3eb22e8dbd392e08faa9e8929 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 26 Jul 2019 09:13:24 +0200 Subject: [PATCH] raw ptrs must be initialized like integers --- src/what-unsafe-does.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/what-unsafe-does.md b/src/what-unsafe-does.md index e7c1a8c..5bb7c92 100644 --- a/src/what-unsafe-does.md +++ b/src/what-unsafe-does.md @@ -35,7 +35,8 @@ language cares about is preventing the following things: * `dyn Trait` metadata is invalid if it is not a pointer to a vtable for `Trait` that matches the actual dynamic trait the reference points to * a non-utf8 `str` - * an uninitialized integer (`i*`/`u*`) or floating point value (`f*`) + * an uninitialized integer (`i*`/`u*`), floating point value (`f*`), or raw + pointer * an invalid library type with custom invalid values, such as a `NonNull` or `NonZero*` that is 0 * Unwinding into another language