Skip to content

Commit 5e082af

Browse files
committed
adjust for current reality wrt. wide raw pointers
1 parent 38b9a76 commit 5e082af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/what-unsafe-does.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ to your program. You definitely *should not* invoke Undefined Behavior.
1616
Unlike C, Undefined Behavior is pretty limited in scope in Rust. All the core
1717
language cares about is preventing the following things:
1818

19-
* Dereferencing (using the `*` operator on) dangling, or unaligned pointers, or
20-
wide pointers with invalid metadata (see below)
19+
* Dereferencing (using the `*` operator on) dangling or unaligned pointers (see below)
2120
* Breaking the [pointer aliasing rules][]
2221
* Unwinding into another language
2322
* Causing a [data race][race]
@@ -36,6 +35,7 @@ language cares about is preventing the following things:
3635
`isize::MAX` bytes in memory
3736
* `dyn Trait` metadata is invalid if it is not a pointer to a vtable for
3837
`Trait` that matches the actual dynamic trait the reference points to
38+
* a wide raw pointer that has invalid metadata (see above)
3939
* a `str` that isn't valid UTF-8
4040
* an integer (`i*`/`u*`), floating point value (`f*`), or raw pointer read from
4141
[uninitialized memory][]

0 commit comments

Comments
 (0)