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.
16
16
Unlike C, Undefined Behavior is pretty limited in scope in Rust. All the core
17
17
language cares about is preventing the following things:
18
18
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)
21
20
* Breaking the [ pointer aliasing rules] [ ]
22
21
* Unwinding into another language
23
22
* Causing a [ data race] [ race ]
@@ -36,6 +35,7 @@ language cares about is preventing the following things:
36
35
` isize::MAX ` bytes in memory
37
36
* ` dyn Trait ` metadata is invalid if it is not a pointer to a vtable for
38
37
` Trait ` that matches the actual dynamic trait the reference points to
38
+ * a wide raw pointer that has invalid metadata (see above)
39
39
* a ` str ` that isn't valid UTF-8
40
40
* an integer (` i* ` /` u* ` ), floating point value (` f* ` ), or raw pointer read from
41
41
[ uninitialized memory] [ ]
You can’t perform that action at this time.
0 commit comments