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
|
@ -804,17 +804,6 @@ pure fn gt(a: &str, b: &str) -> bool {
|
|||
!le(a, b)
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl &str: Eq {
|
||||
#[inline(always)]
|
||||
pure fn eq(&&other: &str) -> bool {
|
||||
eq_slice(self, other)
|
||||
}
|
||||
#[inline(always)]
|
||||
pure fn ne(&&other: &str) -> bool { !self.eq(other) }
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl &str : Eq {
|
||||
#[inline(always)]
|
||||
pure fn eq(other: & &str) -> bool {
|
||||
|
@ -824,17 +813,6 @@ impl &str : Eq {
|
|||
pure fn ne(other: & &str) -> bool { !self.eq(other) }
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl ~str: Eq {
|
||||
#[inline(always)]
|
||||
pure fn eq(&&other: ~str) -> bool {
|
||||
eq_slice(self, other)
|
||||
}
|
||||
#[inline(always)]
|
||||
pure fn ne(&&other: ~str) -> bool { !self.eq(other) }
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl ~str : Eq {
|
||||
#[inline(always)]
|
||||
pure fn eq(other: &~str) -> bool {
|
||||
|
@ -844,17 +822,6 @@ impl ~str : Eq {
|
|||
pure fn ne(other: &~str) -> bool { !self.eq(other) }
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl @str: Eq {
|
||||
#[inline(always)]
|
||||
pure fn eq(&&other: @str) -> bool {
|
||||
eq_slice(self, other)
|
||||
}
|
||||
#[inline(always)]
|
||||
pure fn ne(&&other: @str) -> bool { !self.eq(other) }
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl @str : Eq {
|
||||
#[inline(always)]
|
||||
pure fn eq(other: &@str) -> bool {
|
||||
|
@ -864,19 +831,6 @@ impl @str : Eq {
|
|||
pure fn ne(other: &@str) -> bool { !self.eq(other) }
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl ~str : Ord {
|
||||
#[inline(always)]
|
||||
pure fn lt(&&other: ~str) -> bool { lt(self, other) }
|
||||
#[inline(always)]
|
||||
pure fn le(&&other: ~str) -> bool { le(self, other) }
|
||||
#[inline(always)]
|
||||
pure fn ge(&&other: ~str) -> bool { ge(self, other) }
|
||||
#[inline(always)]
|
||||
pure fn gt(&&other: ~str) -> bool { gt(self, other) }
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl ~str : Ord {
|
||||
#[inline(always)]
|
||||
pure fn lt(other: &~str) -> bool { lt(self, (*other)) }
|
||||
|
@ -888,19 +842,6 @@ impl ~str : Ord {
|
|||
pure fn gt(other: &~str) -> bool { gt(self, (*other)) }
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl &str : Ord {
|
||||
#[inline(always)]
|
||||
pure fn lt(&&other: &str) -> bool { lt(self, other) }
|
||||
#[inline(always)]
|
||||
pure fn le(&&other: &str) -> bool { le(self, other) }
|
||||
#[inline(always)]
|
||||
pure fn ge(&&other: &str) -> bool { ge(self, other) }
|
||||
#[inline(always)]
|
||||
pure fn gt(&&other: &str) -> bool { gt(self, other) }
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl &str : Ord {
|
||||
#[inline(always)]
|
||||
pure fn lt(other: & &str) -> bool { lt(self, (*other)) }
|
||||
|
@ -912,19 +853,6 @@ impl &str : Ord {
|
|||
pure fn gt(other: & &str) -> bool { gt(self, (*other)) }
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl @str : Ord {
|
||||
#[inline(always)]
|
||||
pure fn lt(&&other: @str) -> bool { lt(self, other) }
|
||||
#[inline(always)]
|
||||
pure fn le(&&other: @str) -> bool { le(self, other) }
|
||||
#[inline(always)]
|
||||
pure fn ge(&&other: @str) -> bool { ge(self, other) }
|
||||
#[inline(always)]
|
||||
pure fn gt(&&other: @str) -> bool { gt(self, other) }
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl @str : Ord {
|
||||
#[inline(always)]
|
||||
pure fn lt(other: &@str) -> bool { lt(self, (*other)) }
|
||||
|
@ -2244,15 +2172,6 @@ impl ~str: UniqueStr {
|
|||
#[cfg(notest)]
|
||||
mod traits {
|
||||
#[legacy_exports];
|
||||
#[cfg(stage0)]
|
||||
impl ~str: Add<&str,~str> {
|
||||
#[inline(always)]
|
||||
pure fn add(rhs: &str) -> ~str {
|
||||
append(copy self, rhs)
|
||||
}
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl ~str : Add<&str,~str> {
|
||||
#[inline(always)]
|
||||
pure fn add(rhs: & &str) -> ~str {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue