File tree 4 files changed +8
-0
lines changed
4 files changed +8
-0
lines changed 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 @@ -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 {
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ pub type Elf64_Sxword = i64;
38
38
pub type Elf32_Section = u16 ;
39
39
pub type Elf64_Section = u16 ;
40
40
41
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
41
42
pub enum fpos64_t { } // TODO: fill this out with a struct
42
43
43
44
s ! {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pub type clockid_t = ::c_int;
8
8
pub type key_t = :: c_int ;
9
9
pub type id_t = :: c_uint ;
10
10
11
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
11
12
pub enum timezone { }
12
13
13
14
s ! {
You can’t perform that action at this time.
0 commit comments