Skip to content

Commit 2d8338b

Browse files
RalfJungGankra
authored andcommitted
handle recursion in the heading
1 parent 4500410 commit 2d8338b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/what-unsafe-does.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ language cares about is preventing the following things:
2121
`enum`/`struct`/array/slice/tuple field address
2222
* Reading [uninitialized memory][]
2323
* 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):
2526
* dangling/null/unaligned references
2627
* null `fn` pointers
2728
* a `bool` that isn't 0 or 1
2829
* an undefined `enum` discriminant
2930
* a `char` outside the ranges [0x0, 0xD7FF] and [0xE000, 0x10FFFF]
3031
* a non-utf8 `str`
3132
* a `NonNull` or `NonZero*` that is 0
32-
* a compound type (`enum`/`struct`/array/tuple) with an invalid field
3333
* Unwinding into another language
3434
* Causing a [data race][race]
3535

0 commit comments

Comments
 (0)