File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed 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 @@ -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 {
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ pub type Elf64_Sxword = i64;
3838pub type Elf32_Section = u16 ;
3939pub type Elf64_Section = u16 ;
4040
41+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
4142pub enum fpos64_t { } // TODO: fill this out with a struct
4243
4344s ! {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pub type clockid_t = ::c_int;
88pub type key_t = :: c_int ;
99pub type id_t = :: c_uint ;
1010
11+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
1112pub enum timezone { }
1213
1314s ! {
You can’t perform that action at this time.
0 commit comments