File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,14 @@ language cares about is preventing the following things:
22
22
* Breaking the [ pointer aliasing rules] [ ]
23
23
* Producing invalid primitive values (either alone or as a field of a compound
24
24
type such as ` enum ` /` struct ` /array/tuple):
25
- * dangling/null/unaligned references, references that do themselves point to
26
- invalid values, or fat references (to a dynamically sized type) with
27
- invalid metadata
28
- * null ` fn ` pointers
29
25
* a ` bool ` that isn't 0 or 1
30
26
* an undefined ` enum ` discriminant
27
+ * null ` fn ` pointers
31
28
* a ` char ` outside the ranges [ 0x0, 0xD7FF] and [ 0xE000, 0x10FFFF]
29
+ * a ` ! ` (all values are invalid for this type)
30
+ * dangling/null/unaligned references, references that do themselves point to
31
+ invalid values, or fat references (to a dynamically sized type) with
32
+ invalid metadata
32
33
* a non-utf8 ` str `
33
34
* an uninitialized integer (` i* ` /` u* ` ) or floating point value (` f* ` )
34
35
* an invalid library type with custom invalid values, such as a ` NonNull ` or
You can’t perform that action at this time.
0 commit comments