File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,8 @@ 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
- * Loading from or storing to null, dangling, or unaligned references or raw
20
- pointers
21
- * Performing out-of-bounds arithmetic for the computation of an
22
- ` enum ` /` struct ` /array/slice/tuple field address
19
+ * Dereferencing (using the ` * ` operator on) null, dangling, or unaligned
20
+ references or raw pointers
23
21
* Reading [ uninitialized memory] [ ]
24
22
* Breaking the [ pointer aliasing rules] [ ]
25
23
* Producing invalid primitive values (either alone or as a field of a compound
You can’t perform that action at this time.
0 commit comments