File tree Expand file tree Collapse file tree 6 files changed +13
-1
lines changed Expand file tree Collapse file tree 6 files changed +13
-1
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 @@ -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 @@ -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 ! {
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ cfg_if! {
4747pub type off_t = i32 ;
4848pub type dev_t = u32 ;
4949pub type ino_t = u16 ;
50+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
5051pub enum timezone { }
5152pub type time64_t = i64 ;
5253
@@ -201,7 +202,9 @@ pub const SIG_ERR: ::c_int = -1;
201202#[ link( name = "libcmt" , cfg( target_feature = "crt-static" ) ) ]
202203extern { }
203204
205+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
204206pub enum FILE { }
207+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
205208pub enum fpos_t { } // TODO: fill this out with a struct
206209
207210extern {
@@ -446,4 +449,4 @@ cfg_if! {
446449 } else {
447450 // Unknown target_env
448451 }
449- }
452+ }
You can’t perform that action at this time.
0 commit comments