Skip to content

Commit 66b2b1e

Browse files
committed
---
yaml --- r: 149064 b: refs/heads/try2 c: 1b969e1 h: refs/heads/master v: v3
1 parent c071740 commit 66b2b1e

File tree

5 files changed

+8
-48
lines changed

5 files changed

+8
-48
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 838c62bb288d0fa6b395a9807ad8a519406e48c3
8+
refs/heads/try2: 1b969e11881eab81b9364fc4304dfdfcd2da1128
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/Makefile.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ ifdef TRACE
126126
endif
127127
ifdef CFG_DISABLE_RPATH
128128
# NOTE: make this CFG_RUSTC_FLAGS after stage0 snapshot
129-
RUSTFLAGS_STAGE1 += --no-rpath
130-
RUSTFLAGS_STAGE2 += --no-rpath
131-
RUSTFLAGS_STAGE3 += --no-rpath
129+
RUSTFLAGS_STAGE1 += -C no-rpath
130+
RUSTFLAGS_STAGE2 += -C no-rpath
131+
RUSTFLAGS_STAGE3 += -C no-rpath
132132
endif
133133

134134
# The executables crated during this compilation process have no need to include

branches/try2/src/libcollections/list.rs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,6 @@ pub fn find<T:Clone>(ls: @List<T>, f: |&T| -> bool) -> Option<T> {
6363
};
6464
}
6565

66-
/**
67-
* Returns true if a list contains an element that matches a given predicate
68-
*
69-
* Apply function `f` to each element of `ls`, starting from the first.
70-
* When function `f` returns true then it also returns true. If `f` matches no
71-
* elements then false is returned.
72-
*/
73-
pub fn any<T>(ls: @List<T>, f: |&T| -> bool) -> bool {
74-
let mut ls = ls;
75-
loop {
76-
ls = match *ls {
77-
Cons(ref hd, tl) => {
78-
if f(hd) { return true; }
79-
tl
80-
}
81-
Nil => return false
82-
}
83-
};
84-
}
85-
8666
/// Returns true if a list contains an element with the given value
8767
pub fn has<T:Eq>(ls: @List<T>, elt: T) -> bool {
8868
let mut found = false;
@@ -242,15 +222,6 @@ mod tests {
242222
assert_eq!(list::find(empty, match_), option::None::<int>);
243223
}
244224

245-
#[test]
246-
fn test_any() {
247-
fn match_(i: &int) -> bool { return *i == 2; }
248-
let l = from_vec([0, 1, 2]);
249-
let empty = @list::Nil::<int>;
250-
assert_eq!(list::any(l, match_), true);
251-
assert_eq!(list::any(empty, match_), false);
252-
}
253-
254225
#[test]
255226
fn test_has() {
256227
let l = from_vec([5, 8, 6]);

branches/try2/src/libstd/io/net/ip.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ use iter::Iterator;
1414
use option::{Option, None, Some};
1515
use str::StrSlice;
1616
use to_str::ToStr;
17-
use to_bytes::IterBytes;
1817
use vec::{MutableCloneableVector, ImmutableVector, MutableVector};
1918

2019
pub type Port = u16;
2120

22-
#[deriving(Eq, TotalEq, Clone, IterBytes)]
21+
#[deriving(Eq, TotalEq, Clone)]
2322
pub enum IpAddr {
2423
Ipv4Addr(u8, u8, u8, u8),
2524
Ipv6Addr(u16, u16, u16, u16, u16, u16, u16, u16)
@@ -49,7 +48,7 @@ impl ToStr for IpAddr {
4948
}
5049
}
5150

52-
#[deriving(Eq, TotalEq, Clone, IterBytes)]
51+
#[deriving(Eq, TotalEq, Clone)]
5352
pub struct SocketAddr {
5453
ip: IpAddr,
5554
port: Port,
@@ -340,7 +339,6 @@ impl FromStr for SocketAddr {
340339
mod test {
341340
use prelude::*;
342341
use super::*;
343-
use to_bytes::ToBytes;
344342

345343
#[test]
346344
fn test_from_str_ipv4() {
@@ -443,13 +441,4 @@ mod test {
443441
assert_eq!(Ipv6Addr(8, 9, 10, 11, 12, 13, 14, 15).to_str(), ~"8:9:a:b:c:d:e:f");
444442
}
445443

446-
#[test]
447-
fn ipv4_addr_to_bytes() {
448-
Ipv4Addr(123, 20, 12, 56).to_bytes(true);
449-
}
450-
451-
#[test]
452-
fn socket_addr_to_bytes() {
453-
SocketAddr { ip: Ipv4Addr(1, 2, 3, 4), port: 1234 }.to_bytes(true);
454-
}
455444
}

branches/try2/src/test/compile-fail/regions-variance-contravariant-use-covariant.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
// variance inference works in the first place.
1616

1717
// This is contravariant with respect to 'a, meaning that
18-
// Contravariant<'long> <: Contravariant<'short> iff
19-
// 'short <= 'long
18+
// Contravariant<'foo> <: Contravariant<'static> because
19+
// 'foo <= 'static
2020
struct Contravariant<'a> {
2121
f: &'a int
2222
}

0 commit comments

Comments
 (0)