Commit c0851d7
committed
Update ABI compatibility docs about null-pointer-optimized enums.
Add that the enum must be `#[repr(Rust)]` and not `#[repr(packed)]` or `#[repr(align)]` in order to be ABI-compatible with its null-pointer-optimized field.1 parent 99426c5 commit c0851d7
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1833 | 1833 | | |
1834 | 1834 | | |
1835 | 1835 | | |
| 1836 | + | |
| 1837 | + | |
1836 | 1838 | | |
1837 | 1839 | | |
1838 | 1840 | | |
| |||
1906 | 1908 | | |
1907 | 1909 | | |
1908 | 1910 | | |
| 1911 | + | |
1909 | 1912 | | |
1910 | 1913 | | |
1911 | 1914 | | |
| |||
0 commit comments