@@ -102,12 +102,28 @@ pub type c_ulong = u64;
102102// Presumably these should be `()` or an `extern type` (when that stabilizes).
103103#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
104104pub enum timezone { }
105+ impl :: dox:: Copy for timezone { }
106+ impl :: dox:: Clone for timezone {
107+ fn clone ( & self ) -> timezone { * self }
108+ }
105109#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
106110pub enum DIR { }
111+ impl :: dox:: Copy for DIR { }
112+ impl :: dox:: Clone for DIR {
113+ fn clone ( & self ) -> DIR { * self }
114+ }
107115#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
108116pub enum locale_t { }
117+ impl :: dox:: Copy for locale_t { }
118+ impl :: dox:: Clone for locale_t {
119+ fn clone ( & self ) -> locale_t { * self }
120+ }
109121#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
110122pub enum fpos64_t { } // TODO: fill this out with a struct
123+ impl :: dox:: Copy for fpos64_t { }
124+ impl :: dox:: Clone for fpos64_t {
125+ fn clone ( & self ) -> fpos64_t { * self }
126+ }
111127
112128// PUB_STRUCT
113129
@@ -3048,8 +3064,16 @@ extern {}
30483064
30493065#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
30503066pub enum FILE { }
3067+ impl :: dox:: Copy for FILE { }
3068+ impl :: dox:: Clone for FILE {
3069+ fn clone ( & self ) -> FILE { * self }
3070+ }
30513071#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
30523072pub enum fpos_t { } // TODO: fill this out with a struct
3073+ impl :: dox:: Copy for fpos_t { }
3074+ impl :: dox:: Clone for fpos_t {
3075+ fn clone ( & self ) -> fpos_t { * self }
3076+ }
30533077
30543078extern {
30553079 pub fn isalnum ( c : c_int ) -> c_int ;
@@ -4103,6 +4127,7 @@ cfg_if! {
41034127 // enable more optimization opportunities around it recognizing things
41044128 // like malloc/free.
41054129 #[ repr( u8 ) ]
4130+ #[ allow( missing_copy_implementations) ]
41064131 pub enum c_void {
41074132 // Two dummy variants so the #[repr] attribute can be used.
41084133 #[ doc( hidden) ]
0 commit comments