Register snapshots. Remove redundant Eq impls, Makefile hacks
This commit is contained in:
parent
2dae768624
commit
afd91f8a56
76 changed files with 8 additions and 3677 deletions
|
@ -32,15 +32,6 @@ type filename = ~str;
|
|||
|
||||
type file_pos = {ch: uint, byte: uint};
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl file_pos: cmp::Eq {
|
||||
pure fn eq(&&other: file_pos) -> bool {
|
||||
self.ch == other.ch && self.byte == other.byte
|
||||
}
|
||||
pure fn ne(&&other: file_pos) -> bool { !self.eq(other) }
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl file_pos : cmp::Eq {
|
||||
pure fn eq(other: &file_pos) -> bool {
|
||||
self.ch == (*other).ch && self.byte == (*other).byte
|
||||
|
@ -180,15 +171,6 @@ type expn_info = Option<@expn_info_>;
|
|||
|
||||
type span = {lo: uint, hi: uint, expn_info: expn_info};
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl span : cmp::Eq {
|
||||
pure fn eq(&&other: span) -> bool {
|
||||
return self.lo == other.lo && self.hi == other.hi;
|
||||
}
|
||||
pure fn ne(&&other: span) -> bool { !self.eq(other) }
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl span : cmp::Eq {
|
||||
pure fn eq(other: &span) -> bool {
|
||||
return self.lo == (*other).lo && self.hi == (*other).hi;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue