File tree 14 files changed +22
-0
lines changed
14 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ pub struct File {
60
60
/// represents known metadata about a file such as its permissions, size,
61
61
/// modification times, etc.
62
62
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
63
+ #[ derive( Clone ) ]
63
64
pub struct Metadata ( fs_imp:: FileAttr ) ;
64
65
65
66
/// Iterator over the entries in a directory.
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ mod arch {
39
39
pub type time_t = i32 ;
40
40
41
41
#[ repr( C ) ]
42
+ #[ derive( Clone ) ]
42
43
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
43
44
pub struct stat {
44
45
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
@@ -108,6 +109,7 @@ mod arch {
108
109
pub type time_t = i64 ;
109
110
110
111
#[ repr( C ) ]
112
+ #[ derive( Clone ) ]
111
113
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
112
114
pub struct stat {
113
115
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ use os::unix::raw::{uid_t, gid_t};
26
26
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i64 ;
27
27
28
28
#[ repr( C ) ]
29
+ #[ derive( Clone ) ]
29
30
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
30
31
pub struct stat {
31
32
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ use os::unix::raw::{uid_t, gid_t};
26
26
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i64 ;
27
27
28
28
#[ repr( C ) ]
29
+ #[ derive( Clone ) ]
29
30
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
30
31
pub struct stat {
31
32
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ mod arch {
33
33
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i32 ;
34
34
35
35
#[ repr( C ) ]
36
+ #[ derive( Clone ) ]
36
37
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
37
38
pub struct stat {
38
39
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
@@ -91,6 +92,7 @@ mod arch {
91
92
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i64 ;
92
93
93
94
#[ repr( C ) ]
95
+ #[ derive( Clone ) ]
94
96
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
95
97
pub struct stat {
96
98
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ use os::unix::raw::{uid_t, gid_t};
25
25
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = c_long ;
26
26
27
27
#[ repr( C ) ]
28
+ #[ derive( Clone ) ]
28
29
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
29
30
pub struct stat {
30
31
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ mod arch {
35
35
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i32 ;
36
36
37
37
#[ repr( C ) ]
38
+ #[ derive( Clone ) ]
38
39
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
39
40
pub struct stat {
40
41
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
@@ -95,6 +96,7 @@ mod arch {
95
96
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i32 ;
96
97
97
98
#[ repr( C ) ]
99
+ #[ derive( Clone ) ]
98
100
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
99
101
pub struct stat {
100
102
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
@@ -154,6 +156,7 @@ mod arch {
154
156
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i64 ;
155
157
156
158
#[ repr( C ) ]
159
+ #[ derive( Clone ) ]
157
160
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
158
161
pub struct stat {
159
162
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
@@ -211,6 +214,7 @@ mod arch {
211
214
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i64 ;
212
215
213
216
#[ repr( C ) ]
217
+ #[ derive( Clone ) ]
214
218
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
215
219
pub struct stat {
216
220
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ use os::unix::raw::{uid_t, gid_t};
25
25
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = c_long ;
26
26
27
27
#[ repr( C ) ]
28
+ #[ derive( Clone ) ]
28
29
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
29
30
pub struct stat {
30
31
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ mod arch {
34
34
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i32 ;
35
35
36
36
#[ repr( C ) ]
37
+ #[ derive( Clone ) ]
37
38
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
38
39
pub struct stat {
39
40
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
@@ -94,6 +95,7 @@ mod arch {
94
95
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i32 ;
95
96
96
97
#[ repr( C ) ]
98
+ #[ derive( Clone ) ]
97
99
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
98
100
pub struct stat {
99
101
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
@@ -153,6 +155,7 @@ mod arch {
153
155
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i64 ;
154
156
155
157
#[ repr( C ) ]
158
+ #[ derive( Clone ) ]
156
159
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
157
160
pub struct stat {
158
161
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
@@ -210,6 +213,7 @@ mod arch {
210
213
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i64 ;
211
214
212
215
#[ repr( C ) ]
216
+ #[ derive( Clone ) ]
213
217
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
214
218
pub struct stat {
215
219
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ use os::unix::raw::{uid_t, gid_t};
26
26
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i64 ;
27
27
28
28
#[ repr( C ) ]
29
+ #[ derive( Clone ) ]
29
30
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
30
31
pub struct stat {
31
32
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ use os::unix::raw::{uid_t, gid_t};
26
26
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = i64 ;
27
27
28
28
#[ repr( C ) ]
29
+ #[ derive( Clone ) ]
29
30
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
30
31
pub struct stat {
31
32
#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ use vec::Vec;
27
27
28
28
pub struct File ( FileDesc ) ;
29
29
30
+ #[ derive( Clone ) ]
30
31
pub struct FileAttr {
31
32
stat : raw:: stat ,
32
33
}
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ pub struct CONSOLE_SCREEN_BUFFER_INFO {
182
182
pub type PCONSOLE_SCREEN_BUFFER_INFO = * mut CONSOLE_SCREEN_BUFFER_INFO ;
183
183
184
184
#[ repr( C ) ]
185
+ #[ derive( Clone ) ]
185
186
pub struct WIN32_FILE_ATTRIBUTE_DATA {
186
187
pub dwFileAttributes : libc:: DWORD ,
187
188
pub ftCreationTime : libc:: FILETIME ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ use vec::Vec;
27
27
28
28
pub struct File { handle : Handle }
29
29
30
+ #[ derive( Clone ) ]
30
31
pub struct FileAttr {
31
32
data : c:: WIN32_FILE_ATTRIBUTE_DATA ,
32
33
reparse_tag : libc:: DWORD ,
You can’t perform that action at this time.
0 commit comments