Skip to content

Commit 8179e26

Browse files
committed
Register snapshots
1 parent be6613e commit 8179e26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+475
-5514
lines changed

Diff for: src/compiletest/common.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
enum mode { mode_compile_fail, mode_run_fail, mode_run_pass, mode_pretty, }
22

3-
#[cfg(stage0)]
4-
impl mode : cmp::Eq {
5-
pure fn eq(other: &mode) -> bool {
6-
(*other) as int == self as int
7-
}
8-
pure fn ne(other: &mode) -> bool { !self.eq(other) }
9-
}
10-
#[cfg(stage1)]
11-
#[cfg(stage2)]
123
impl mode : cmp::Eq {
134
pure fn eq(&self, other: &mode) -> bool {
145
(*other) as int == (*self) as int

Diff for: src/libcargo/cargo.rc

-41
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,6 @@ struct Package {
6565
}
6666

6767
impl Package : cmp::Ord {
68-
#[cfg(stage0)]
69-
pure fn lt(other: &Package) -> bool {
70-
if self.name.lt(&(*other).name) { return true; }
71-
if (*other).name.lt(&self.name) { return false; }
72-
if self.uuid.lt(&(*other).uuid) { return true; }
73-
if (*other).uuid.lt(&self.uuid) { return false; }
74-
if self.url.lt(&(*other).url) { return true; }
75-
if (*other).url.lt(&self.url) { return false; }
76-
if self.method.lt(&(*other).method) { return true; }
77-
if (*other).method.lt(&self.method) { return false; }
78-
if self.description.lt(&(*other).description) { return true; }
79-
if (*other).description.lt(&self.description) { return false; }
80-
if self.tags.lt(&(*other).tags) { return true; }
81-
if (*other).tags.lt(&self.tags) { return false; }
82-
if self.versions.lt(&(*other).versions) { return true; }
83-
return false;
84-
}
85-
#[cfg(stage1)]
86-
#[cfg(stage2)]
8768
pure fn lt(&self, other: &Package) -> bool {
8869
if (*self).name.lt(&(*other).name) { return true; }
8970
if (*other).name.lt(&(*self).name) { return false; }
@@ -100,20 +81,8 @@ impl Package : cmp::Ord {
10081
if (*self).versions.lt(&(*other).versions) { return true; }
10182
return false;
10283
}
103-
#[cfg(stage0)]
104-
pure fn le(other: &Package) -> bool { !(*other).lt(&self) }
105-
#[cfg(stage1)]
106-
#[cfg(stage2)]
10784
pure fn le(&self, other: &Package) -> bool { !(*other).lt(&(*self)) }
108-
#[cfg(stage0)]
109-
pure fn ge(other: &Package) -> bool { !self.lt(other) }
110-
#[cfg(stage1)]
111-
#[cfg(stage2)]
11285
pure fn ge(&self, other: &Package) -> bool { !(*self).lt(other) }
113-
#[cfg(stage0)]
114-
pure fn gt(other: &Package) -> bool { (*other).lt(&self) }
115-
#[cfg(stage1)]
116-
#[cfg(stage2)]
11786
pure fn gt(&self, other: &Package) -> bool { (*other).lt(&(*self)) }
11887
}
11988

@@ -160,19 +129,9 @@ struct Options {
160129
enum Mode { SystemMode, UserMode, LocalMode }
161130

162131
impl Mode : cmp::Eq {
163-
#[cfg(stage0)]
164-
pure fn eq(other: &Mode) -> bool {
165-
(self as uint) == ((*other) as uint)
166-
}
167-
#[cfg(stage1)]
168-
#[cfg(stage2)]
169132
pure fn eq(&self, other: &Mode) -> bool {
170133
((*self) as uint) == ((*other) as uint)
171134
}
172-
#[cfg(stage0)]
173-
pure fn ne(other: &Mode) -> bool { !self.eq(other) }
174-
#[cfg(stage1)]
175-
#[cfg(stage2)]
176135
pure fn ne(&self, other: &Mode) -> bool { !(*self).eq(other) }
177136
}
178137

Diff for: src/libcore/alternate_crate.rc

-273
This file was deleted.

Diff for: src/libcore/bool.rs

-8
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,7 @@ pub fn all_values(blk: fn(v: bool)) {
6666
pub pure fn to_bit(v: bool) -> u8 { if v { 1u8 } else { 0u8 } }
6767

6868
impl bool : cmp::Eq {
69-
#[cfg(stage0)]
70-
pure fn eq(other: &bool) -> bool { self == (*other) }
71-
#[cfg(stage1)]
72-
#[cfg(stage2)]
7369
pure fn eq(&self, other: &bool) -> bool { (*self) == (*other) }
74-
#[cfg(stage0)]
75-
pure fn ne(other: &bool) -> bool { self != (*other) }
76-
#[cfg(stage1)]
77-
#[cfg(stage2)]
7870
pure fn ne(&self, other: &bool) -> bool { (*self) != (*other) }
7971
}
8072

0 commit comments

Comments
 (0)