File tree Expand file tree Collapse file tree 17 files changed +36
-5
lines changed Expand file tree Collapse file tree 17 files changed +36
-5
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,9 @@ pub const PTHREAD_STACK_MIN: ::size_t = 1024;
122
122
pub const SOCK_DGRAM : :: c_int = 128 ;
123
123
pub const SOCK_STREAM : :: c_int = 130 ;
124
124
125
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
125
126
pub enum FILE { }
127
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
126
128
pub enum fpos_t { } // TODO: fill this out with a struct
127
129
128
130
extern {
Original file line number Diff line number Diff line change @@ -100,9 +100,13 @@ pub type c_ulong = u64;
100
100
101
101
// FIXME: why are these uninhabited types? that seems... wrong?
102
102
// Presumably these should be `()` or an `extern type` (when that stabilizes).
103
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
103
104
pub enum timezone { }
105
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
104
106
pub enum DIR { }
107
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
105
108
pub enum locale_t { }
109
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
106
110
pub enum fpos64_t { } // TODO: fill this out with a struct
107
111
108
112
// PUB_STRUCT
@@ -3042,7 +3046,9 @@ f! {
3042
3046
#[ link( name = "fdio" ) ]
3043
3047
extern { }
3044
3048
3049
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
3045
3050
pub enum FILE { }
3051
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
3046
3052
pub enum fpos_t { } // TODO: fill this out with a struct
3047
3053
3048
3054
extern {
Original file line number Diff line number Diff line change 156
156
#![ cfg_attr( feature = "rustc-dep-of-std" , no_core) ]
157
157
#![ cfg_attr( feature = "rustc-dep-of-std" , allow( warnings) ) ]
158
158
#![ cfg_attr( not( any( feature = "use_std" , feature = "rustc-dep-of-std" ) ) , no_std) ]
159
+ // Enable lints
160
+ #![ cfg_attr( feature = "extra_traits" , deny( missing_debug_implementations) ) ]
159
161
160
162
#[ cfg( all( not( cross_platform_docs) , feature = "use_std" ) ) ]
161
163
extern crate std as core;
Original file line number Diff line number Diff line change @@ -219,7 +219,9 @@ pub const SIGIO: ::c_int = 29;
219
219
pub const SIGPWR : :: c_int = 30 ;
220
220
pub const SIGSYS : :: c_int = 31 ;
221
221
222
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
222
223
pub enum FILE { }
224
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
223
225
pub enum fpos_t { } // TODO: fill this out with a struct
224
226
225
227
// intentionally not public, only used for fd_set
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ pub type posix_spawn_file_actions_t = *mut ::c_void;
34
34
pub type key_t = :: c_int ;
35
35
pub type shmatt_t = :: c_ushort ;
36
36
37
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
37
38
pub enum timezone { }
38
39
39
40
s ! {
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ pub type fsfilcnt_t = u64;
17
17
18
18
pub type sem_t = * mut sem ;
19
19
20
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
20
21
pub enum sem { }
21
22
22
23
s ! {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pub type speed_t = ::c_uint;
16
16
pub type nl_item = :: c_int ;
17
17
pub type id_t = i64 ;
18
18
19
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
19
20
pub enum timezone { }
20
21
21
22
s ! {
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ pub type clockid_t = ::c_int;
13
13
pub type id_t = :: uint32_t ;
14
14
pub type sem_t = * mut sem ;
15
15
16
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
16
17
pub enum timezone { }
18
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
17
19
pub enum sem { }
18
20
19
21
s ! {
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ pub type nl_item = ::c_int;
31
31
pub type id_t = i32 ;
32
32
pub type idtype_t = :: c_uint ;
33
33
34
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
34
35
pub enum timezone { }
35
36
36
37
s ! {
Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ pub type in_port_t = u16;
41
41
pub type sighandler_t = :: size_t ;
42
42
pub type cc_t = :: c_uchar ;
43
43
44
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
44
45
pub enum DIR { }
46
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
45
47
pub enum locale_t { }
46
48
47
49
s ! {
@@ -365,7 +367,9 @@ cfg_if! {
365
367
}
366
368
}
367
369
370
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
368
371
pub enum FILE { }
372
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
369
373
pub enum fpos_t { } // TODO: fill this out with a struct
370
374
371
375
extern {
You can’t perform that action at this time.
0 commit comments