Commit 52ca838
haiku: Switch from
The enums used on Haiku are currently broken: they have no `repr`
attribute so Rust is treating them as a `u8` when they need to be
`c_int`. This is flagged by `improper_ctypes`, which only shows up now
that this lint got removed.
Since this is broken anyway, we may as well just switch to `c_enum!`.
This is a user-visible breaking change, but allowed as the target is
tier 3.
Partially cherry picked from commit a541bf4 ("libc: remove uses of
enum as per #4419").
Co-authored-by: mbyx <mbyx.dev@gmail.com>e! to c_enum!
1 parent 0ecd2f3 commit 52ca838
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments