Skip to content

Commit b8f5fef

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 164650 b: refs/heads/auto c: 86f8c12 h: refs/heads/master v: v3
1 parent 68ecac2 commit b8f5fef

File tree

20 files changed

+78
-217
lines changed

20 files changed

+78
-217
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: a77e8a63d5d4c0fa04a878995824e727870135f9
13+
refs/heads/auto: 86f8c127dd806940fe201b510b9284750fb17271
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libsyntax/abi.rs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub use self::AbiArchitecture::*;
1515

1616
use std::fmt;
1717

18-
#[deriving(PartialEq)]
18+
#[deriving(Copy, PartialEq)]
1919
pub enum Os {
2020
OsWindows,
2121
OsMacos,
@@ -26,9 +26,7 @@ pub enum Os {
2626
OsDragonfly,
2727
}
2828

29-
impl Copy for Os {}
30-
31-
#[deriving(PartialEq, Eq, Hash, Encodable, Decodable, Clone)]
29+
#[deriving(Copy, PartialEq, Eq, Hash, Encodable, Decodable, Clone)]
3230
pub enum Abi {
3331
// NB: This ordering MUST match the AbiDatas array below.
3432
// (This is ensured by the test indices_are_correct().)
@@ -48,10 +46,8 @@ pub enum Abi {
4846
RustCall,
4947
}
5048

51-
impl Copy for Abi {}
52-
5349
#[allow(non_camel_case_types)]
54-
#[deriving(PartialEq)]
50+
#[deriving(Copy, PartialEq)]
5551
pub enum Architecture {
5652
X86,
5753
X86_64,
@@ -60,17 +56,15 @@ pub enum Architecture {
6056
Mipsel
6157
}
6258

63-
impl Copy for Architecture {}
64-
59+
#[deriving(Copy)]
6560
pub struct AbiData {
6661
abi: Abi,
6762

6863
// Name of this ABI as we like it called.
6964
name: &'static str,
7065
}
7166

72-
impl Copy for AbiData {}
73-
67+
#[deriving(Copy)]
7468
pub enum AbiArchitecture {
7569
/// Not a real ABI (e.g., intrinsic)
7670
RustArch,
@@ -80,9 +74,6 @@ pub enum AbiArchitecture {
8074
Archs(u32)
8175
}
8276

83-
#[allow(non_upper_case_globals)]
84-
impl Copy for AbiArchitecture {}
85-
8677
#[allow(non_upper_case_globals)]
8778
static AbiDatas: &'static [AbiData] = &[
8879
// Platform-specific ABIs

0 commit comments

Comments
 (0)