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;
122122pub const SOCK_DGRAM : :: c_int = 128 ;
123123pub const SOCK_STREAM : :: c_int = 130 ;
124124
125+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
125126pub enum FILE { }
127+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
126128pub enum fpos_t { } // TODO: fill this out with a struct
127129
128130extern {
Original file line number Diff line number Diff line change @@ -100,9 +100,13 @@ pub type c_ulong = u64;
100100
101101// FIXME: why are these uninhabited types? that seems... wrong?
102102// Presumably these should be `()` or an `extern type` (when that stabilizes).
103+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
103104pub enum timezone { }
105+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
104106pub enum DIR { }
107+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
105108pub enum locale_t { }
109+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
106110pub enum fpos64_t { } // TODO: fill this out with a struct
107111
108112// PUB_STRUCT
@@ -3042,7 +3046,9 @@ f! {
30423046#[ link( name = "fdio" ) ]
30433047extern { }
30443048
3049+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
30453050pub enum FILE { }
3051+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
30463052pub enum fpos_t { } // TODO: fill this out with a struct
30473053
30483054extern {
Original file line number Diff line number Diff line change 156156#![ cfg_attr( feature = "rustc-dep-of-std" , no_core) ]
157157#![ cfg_attr( feature = "rustc-dep-of-std" , allow( warnings) ) ]
158158#![ 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) ) ]
159161
160162#[ cfg( all( not( cross_platform_docs) , feature = "use_std" ) ) ]
161163extern crate std as core;
Original file line number Diff line number Diff line change @@ -219,7 +219,9 @@ pub const SIGIO: ::c_int = 29;
219219pub const SIGPWR : :: c_int = 30 ;
220220pub const SIGSYS : :: c_int = 31 ;
221221
222+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
222223pub enum FILE { }
224+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
223225pub enum fpos_t { } // TODO: fill this out with a struct
224226
225227// 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;
3434pub type key_t = :: c_int ;
3535pub type shmatt_t = :: c_ushort ;
3636
37+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
3738pub enum timezone { }
3839
3940s ! {
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ pub type fsfilcnt_t = u64;
1717
1818pub type sem_t = * mut sem ;
1919
20+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
2021pub enum sem { }
2122
2223s ! {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pub type speed_t = ::c_uint;
1616pub type nl_item = :: c_int ;
1717pub type id_t = i64 ;
1818
19+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
1920pub enum timezone { }
2021
2122s ! {
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ pub type clockid_t = ::c_int;
1313pub type id_t = :: uint32_t ;
1414pub type sem_t = * mut sem ;
1515
16+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
1617pub enum timezone { }
18+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
1719pub enum sem { }
1820
1921s ! {
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ pub type nl_item = ::c_int;
3131pub type id_t = i32 ;
3232pub type idtype_t = :: c_uint ;
3333
34+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
3435pub enum timezone { }
3536
3637s ! {
Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ pub type in_port_t = u16;
4141pub type sighandler_t = :: size_t ;
4242pub type cc_t = :: c_uchar ;
4343
44+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
4445pub enum DIR { }
46+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
4547pub enum locale_t { }
4648
4749s ! {
@@ -365,7 +367,9 @@ cfg_if! {
365367 }
366368}
367369
370+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
368371pub enum FILE { }
372+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
369373pub enum fpos_t { } // TODO: fill this out with a struct
370374
371375extern {
You can’t perform that action at this time.
0 commit comments