File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ to your program. You definitely *should not* invoke Undefined Behavior.
1616Unlike C, Undefined Behavior is pretty limited in scope in Rust. All the core
1717language 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] [ ]
You can’t perform that action at this time.
0 commit comments