Skip to content

Commit 51b6edc

Browse files
authored
Merge pull request #115 from matthewjasper/unions-unsafe
Add missing unsafe features
2 parents d02c02b + 09751b9 commit 51b6edc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unsafety.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ Rust:
88

99
- Dereferencing a [raw pointer](types.html#pointer-types).
1010
- Reading or writing a [mutable static variable](items.html#mutable-statics).
11+
- Reading a field of a [`union`](items.html#unions), or writing to a field of a
12+
union that isn't [`Copy`](the-copy-trait.html).
1113
- Calling an unsafe function (including an intrinsic or foreign function).
14+
- Implementing an unsafe trait.

0 commit comments

Comments
 (0)