-
Notifications
You must be signed in to change notification settings - Fork 1.2k
libc: remove uses of enum as per #4419 #4575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
99cd358
to
2f1e1da
Compare
src/macros.rs
Outdated
( | ||
($( | ||
$(#[repr($repr:ty)])? | ||
enum $ty_name:ident { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this require the pub
keyword since we make the types pub
? Similar to the other macros
src/unix/linux_like/linux/mod.rs
Outdated
@@ -798,7 +798,6 @@ s! { | |||
} | |||
|
|||
// linux/openat2.h | |||
#[non_exhaustive] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these changes here?
This caused rust-lang/rust#145952 |
Not this PR, it's f0a2c3e specifically (which has a bit more context in the message) |
std: haiku: fix `B_FIND_PATH_IMAGE_PATH` Fixes rust-lang#145952, which was caused by rust-lang/libc#4575 `@rustbot` label T-libs O-haiku
std: haiku: fix `B_FIND_PATH_IMAGE_PATH` Fixes rust-lang#145952, which was caused by rust-lang/libc#4575 ```@rustbot``` label T-libs O-haiku
std: haiku: fix `B_FIND_PATH_IMAGE_PATH` Fixes rust-lang#145952, which was caused by rust-lang/libc#4575 ````@rustbot```` label T-libs O-haiku
std: haiku: fix `B_FIND_PATH_IMAGE_PATH` Fixes rust-lang#145952, which was caused by rust-lang/libc#4575 `````@rustbot````` label T-libs O-haiku
std: haiku: fix `B_FIND_PATH_IMAGE_PATH` Fixes rust-lang#145952, which was caused by rust-lang/libc#4575 ``````@rustbot`````` label T-libs O-haiku
std: haiku: fix `B_FIND_PATH_IMAGE_PATH` Fixes rust-lang#145952, which was caused by rust-lang/libc#4575 ```````@rustbot``````` label T-libs O-haiku
Rollup merge of #145991 - GrigorenkoPV:haiku, r=tgross35 std: haiku: fix `B_FIND_PATH_IMAGE_PATH` Fixes #145952, which was caused by rust-lang/libc#4575 ```````@rustbot``````` label T-libs O-haiku
std: haiku: fix `B_FIND_PATH_IMAGE_PATH` Fixes rust-lang/rust#145952, which was caused by rust-lang/libc#4575 ```````@rustbot``````` label T-libs O-haiku
Removes all uses of
enum
s, replacing them withc_enums
. Since c_enums creates numeric types and constants,cfg_attr
s were also removed for derivingCopy
andClone
. As per #4419Additionally allow
c_enum
to take more than oneenum
as input, similar to the other macros.