Skip to content

Commit 29b0a7b

Browse files
committed
Remove value representation of repr(C) unions
1 parent bce7775 commit 29b0a7b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

reference/src/layout/unions.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,6 @@ assert_eq!(size_of::<U>(), 2);
6161
> unlike structs there is no "between the fields" that could be filled
6262
> with padding.
6363

64-
The bit `i` of a `repr(C)` union is a padding bit if the bit `i` of each of its
65-
fields is a padding bit or trailing padding. That is:
66-
67-
```rust
68-
#[repr(C)]
69-
union U { x: (u8, u16) }
70-
```
71-
72-
The byte at offset 1 of `U` is a padding byte.
73-
7464
#### Zero-sized fields
7565

7666
If a `#[repr(C)]` union contains a field of zero-size, that field does not

0 commit comments

Comments
 (0)