Skip to content

Commit 09aaa33

Browse files
committed
---
yaml --- r: 60533 b: refs/heads/auto c: f323b0c h: refs/heads/master i: 60531: 1130b80 v: v3
1 parent 4df6829 commit 09aaa33

File tree

747 files changed

+7905
-14776
lines changed

Some content is hidden

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

747 files changed

+7905
-14776
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: eef03c39cf2f25f2e2182a68d0fcad14f378d5ac
17+
refs/heads/auto: f323b0c8bac704366eb307437faea231fb73b8d1
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1977,7 +1977,7 @@ struct TimeBomb {
19771977
19781978
impl Drop for TimeBomb {
19791979
fn finalize(&self) {
1980-
for old_iter::repeat(self.explosivity) {
1980+
for self.explosivity.times {
19811981
println("blam!");
19821982
}
19831983
}

branches/auto/src/compiletest/compiletest.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#[allow(non_camel_case_types)];
1414

15-
extern mod std(vers = "0.7-pre");
15+
extern mod std;
1616

1717
use core::*;
1818

branches/auto/src/driver/driver.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
// except according to those terms.
1010

1111
#[cfg(rustpkg)]
12-
extern mod this(name = "rustpkg", vers = "0.7-pre");
12+
extern mod this(name = "rustpkg");
1313

1414
#[cfg(fuzzer)]
15-
extern mod this(name = "fuzzer", vers = "0.7-pre");
15+
extern mod this(name = "fuzzer");
1616

1717
#[cfg(rustdoc)]
18-
extern mod this(name = "rustdoc", vers = "0.7-pre");
18+
extern mod this(name = "rustdoc");
1919

2020
#[cfg(rusti)]
21-
extern mod this(name = "rusti", vers = "0.7-pre");
21+
extern mod this(name = "rusti");
2222

2323
#[cfg(rust)]
24-
extern mod this(name = "rust", vers = "0.7-pre");
24+
extern mod this(name = "rust");
2525

2626
#[cfg(rustc)]
27-
extern mod this(name = "rustc", vers = "0.7-pre");
27+
extern mod this(name = "rustc");
2828

2929
fn main() { this::main() }

branches/auto/src/libcore/at_vec.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -294,30 +294,30 @@ mod test {
294294
}
295295

296296
assert_eq!(seq_range(10, 15), @[10, 11, 12, 13, 14]);
297-
assert!(from_fn(5, |x| x+1) == @[1, 2, 3, 4, 5]);
298-
assert!(from_elem(5, 3.14) == @[3.14, 3.14, 3.14, 3.14, 3.14]);
297+
assert_eq!(from_fn(5, |x| x+1), @[1, 2, 3, 4, 5]);
298+
assert_eq!(from_elem(5, 3.14), @[3.14, 3.14, 3.14, 3.14, 3.14]);
299299
}
300300

301301
#[test]
302302
fn append_test() {
303-
assert!(@[1,2,3] + @[4,5,6] == @[1,2,3,4,5,6]);
303+
assert_eq!(@[1,2,3] + @[4,5,6], @[1,2,3,4,5,6]);
304304
}
305305

306306
#[test]
307307
fn test_to_managed_consume() {
308-
assert!(to_managed_consume::<int>(~[]) == @[]);
309-
assert!(to_managed_consume(~[true]) == @[true]);
310-
assert!(to_managed_consume(~[1, 2, 3, 4, 5]) == @[1, 2, 3, 4, 5]);
311-
assert!(to_managed_consume(~[~"abc", ~"123"]) == @[~"abc", ~"123"]);
312-
assert!(to_managed_consume(~[~[42]]) == @[~[42]]);
308+
assert_eq!(to_managed_consume::<int>(~[]), @[]);
309+
assert_eq!(to_managed_consume(~[true]), @[true]);
310+
assert_eq!(to_managed_consume(~[1, 2, 3, 4, 5]), @[1, 2, 3, 4, 5]);
311+
assert_eq!(to_managed_consume(~[~"abc", ~"123"]), @[~"abc", ~"123"]);
312+
assert_eq!(to_managed_consume(~[~[42]]), @[~[42]]);
313313
}
314314
315315
#[test]
316316
fn test_to_managed() {
317-
assert!(to_managed::<int>([]) == @[]);
318-
assert!(to_managed([true]) == @[true]);
319-
assert!(to_managed([1, 2, 3, 4, 5]) == @[1, 2, 3, 4, 5]);
320-
assert!(to_managed([@"abc", @"123"]) == @[@"abc", @"123"]);
321-
assert!(to_managed([@[42]]) == @[@[42]]);
317+
assert_eq!(to_managed::<int>([]), @[]);
318+
assert_eq!(to_managed([true]), @[true]);
319+
assert_eq!(to_managed([1, 2, 3, 4, 5]), @[1, 2, 3, 4, 5]);
320+
assert_eq!(to_managed([@"abc", @"123"]), @[@"abc", @"123"]);
321+
assert_eq!(to_managed([@[42]]), @[@[42]]);
322322
}
323323
}

branches/auto/src/libcore/bool.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ mod tests {
113113

114114
#[test]
115115
fn test_bool_to_str() {
116-
assert!(to_str(false) == ~"false");
117-
assert!(to_str(true) == ~"true");
116+
assert_eq!(to_str(false), ~"false");
117+
assert_eq!(to_str(true), ~"true");
118118
}
119119

120120
#[test]
121121
fn test_bool_to_bit() {
122122
do all_values |v| {
123-
assert!(to_bit(v) == if is_true(v) { 1u8 } else { 0u8 });
123+
assert_eq!(to_bit(v), if is_true(v) { 1u8 } else { 0u8 });
124124
}
125125
}
126126

branches/auto/src/libcore/cast.rs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,6 @@ pub mod rusti {
2424
}
2525

2626
/// Casts the value at `src` to U. The two types must have the same length.
27-
#[cfg(not(stage0))]
28-
pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
29-
let mut dest: U = unstable::intrinsics::uninit();
30-
{
31-
let dest_ptr: *mut u8 = rusti::transmute(&mut dest);
32-
let src_ptr: *u8 = rusti::transmute(src);
33-
unstable::intrinsics::memmove64(dest_ptr,
34-
src_ptr,
35-
sys::size_of::<U>() as u64);
36-
}
37-
dest
38-
}
39-
40-
#[cfg(stage0)]
4127
pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
4228
let mut dest: U = unstable::intrinsics::init();
4329
{
@@ -145,7 +131,7 @@ mod tests {
145131

146132
#[test]
147133
fn test_transmute_copy() {
148-
assert!(1u == unsafe { ::cast::transmute_copy(&1) });
134+
assert_eq!(1u, unsafe { ::cast::transmute_copy(&1) });
149135
}
150136

151137
#[test]
@@ -177,7 +163,7 @@ mod tests {
177163
#[test]
178164
fn test_transmute2() {
179165
unsafe {
180-
assert!(~[76u8, 0u8] == transmute(~"L"));
166+
assert_eq!(~[76u8, 0u8], transmute(~"L"));
181167
}
182168
}
183169
}

branches/auto/src/libcore/cell.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn test_with_ref() {
122122
let good = 6;
123123
let c = Cell(~[1, 2, 3, 4, 5, 6]);
124124
let l = do c.with_ref() |v| { v.len() };
125-
assert!(l == good);
125+
assert_eq!(l, good);
126126
}
127127

128128
#[test]
@@ -132,5 +132,5 @@ fn test_with_mut_ref() {
132132
let c = Cell(v);
133133
do c.with_mut_ref() |v| { v.push(3); }
134134
let v = c.take();
135-
assert!(v == good);
135+
assert_eq!(v, good);
136136
}

0 commit comments

Comments
 (0)