File tree 3 files changed +8
-22
lines changed
src/unix/linux_like/linux
3 files changed +8
-22
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ const ALLOWED_CFGS: &'static [&'static str] = &[
18
18
"libc_const_extern_fn_unstable" ,
19
19
"libc_deny_warnings" ,
20
20
"libc_long_array" ,
21
- "libc_non_exhaustive" ,
22
21
"libc_ptr_addr_of" ,
23
22
"libc_thread_local" ,
24
23
"libc_underscore_const_names" ,
@@ -83,11 +82,6 @@ fn main() {
83
82
set_cfg ( "libc_deny_warnings" ) ;
84
83
}
85
84
86
- // Rust >= 1.40 supports #[non_exhaustive].
87
- if rustc_minor_ver >= 40 || rustc_dep_of_std {
88
- set_cfg ( "libc_non_exhaustive" ) ;
89
- }
90
-
91
85
// Rust >= 1.47 supports long array:
92
86
if rustc_minor_ver >= 47 || rustc_dep_of_std {
93
87
set_cfg ( "libc_long_array" ) ;
Original file line number Diff line number Diff line change @@ -953,6 +953,14 @@ s! {
953
953
pub pid: :: c_int,
954
954
}
955
955
956
+ // linux/openat2.h
957
+ #[ non_exhaustive]
958
+ pub struct open_how {
959
+ pub flags: :: __u64,
960
+ pub mode: :: __u64,
961
+ pub resolve: :: __u64,
962
+ }
963
+
956
964
#[ repr( align( 8 ) ) ]
957
965
pub struct tpacket_rollover_stats {
958
966
pub tp_all: :: __u64,
@@ -6183,10 +6191,3 @@ cfg_if! {
6183
6191
6184
6192
mod arch;
6185
6193
pub use self :: arch:: * ;
6186
-
6187
- cfg_if ! {
6188
- if #[ cfg( libc_non_exhaustive) ] {
6189
- mod non_exhaustive;
6190
- pub use self :: non_exhaustive:: * ;
6191
- }
6192
- }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments