@@ -15,7 +15,7 @@ pub use self::AbiArchitecture::*;
15
15
16
16
use std:: fmt;
17
17
18
- #[ deriving( PartialEq ) ]
18
+ #[ deriving( Copy , PartialEq ) ]
19
19
pub enum Os {
20
20
OsWindows ,
21
21
OsMacos ,
@@ -26,9 +26,7 @@ pub enum Os {
26
26
OsDragonfly ,
27
27
}
28
28
29
- impl Copy for Os { }
30
-
31
- #[ deriving( PartialEq , Eq , Hash , Encodable , Decodable , Clone ) ]
29
+ #[ deriving( Copy , PartialEq , Eq , Hash , Encodable , Decodable , Clone ) ]
32
30
pub enum Abi {
33
31
// NB: This ordering MUST match the AbiDatas array below.
34
32
// (This is ensured by the test indices_are_correct().)
@@ -48,10 +46,8 @@ pub enum Abi {
48
46
RustCall ,
49
47
}
50
48
51
- impl Copy for Abi { }
52
-
53
49
#[ allow( non_camel_case_types) ]
54
- #[ deriving( PartialEq ) ]
50
+ #[ deriving( Copy , PartialEq ) ]
55
51
pub enum Architecture {
56
52
X86 ,
57
53
X86_64 ,
@@ -60,17 +56,15 @@ pub enum Architecture {
60
56
Mipsel
61
57
}
62
58
63
- impl Copy for Architecture { }
64
-
59
+ #[ deriving( Copy ) ]
65
60
pub struct AbiData {
66
61
abi : Abi ,
67
62
68
63
// Name of this ABI as we like it called.
69
64
name : & ' static str ,
70
65
}
71
66
72
- impl Copy for AbiData { }
73
-
67
+ #[ deriving( Copy ) ]
74
68
pub enum AbiArchitecture {
75
69
/// Not a real ABI (e.g., intrinsic)
76
70
RustArch ,
@@ -80,9 +74,6 @@ pub enum AbiArchitecture {
80
74
Archs ( u32 )
81
75
}
82
76
83
- #[ allow( non_upper_case_globals) ]
84
- impl Copy for AbiArchitecture { }
85
-
86
77
#[ allow( non_upper_case_globals) ]
87
78
static AbiDatas : & ' static [ AbiData ] = & [
88
79
// Platform-specific ABIs
0 commit comments