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 @@ -21,15 +21,15 @@ language cares about is preventing the following things:
21
21
` enum ` /` struct ` /array/slice/tuple field address
22
22
* Reading [ uninitialized memory] [ ]
23
23
* Breaking the [ pointer aliasing rules] [ ]
24
- * Producing invalid primitive values:
24
+ * Producing invalid primitive values (either alone or as a field of a compound
25
+ type such as ` enum ` /` struct ` /array/tuple):
25
26
* dangling/null/unaligned references
26
27
* null ` fn ` pointers
27
28
* a ` bool ` that isn't 0 or 1
28
29
* an undefined ` enum ` discriminant
29
30
* a ` char ` outside the ranges [ 0x0, 0xD7FF] and [ 0xE000, 0x10FFFF]
30
31
* a non-utf8 ` str `
31
32
* a ` NonNull ` or ` NonZero* ` that is 0
32
- * a compound type (` enum ` /` struct ` /array/tuple) with an invalid field
33
33
* Unwinding into another language
34
34
* Causing a [ data race] [ race ]
35
35
You can’t perform that action at this time.
0 commit comments