Skip to content

Commit c72de78

Browse files
huonwthestinger
authored andcommitted
---
yaml --- r: 69574 b: refs/heads/auto c: 7c21ccc h: refs/heads/master v: v3
1 parent 3d9678a commit c72de78

File tree

104 files changed

+684
-805
lines changed

Some content is hidden

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

104 files changed

+684
-805
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: 479809a267dbbcc3e2ec87da677c63430d3d229a
17+
refs/heads/auto: 7c21ccc4835326e87d6baaaaa8d1c616a398d924
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/doc/tutorial-tasks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ an intermediate generation has already exited:
548548
~~~
549549
# use std::task;
550550
# fn sleep_forever() { loop { task::yield() } }
551-
# fn wait_for_a_while() { for 1000.times { task::yield() } }
551+
# fn wait_for_a_while() { do 1000.times { task::yield() } }
552552
# do task::try::<int> {
553553
do task::spawn_supervised {
554554
do task::spawn_supervised {
@@ -567,7 +567,7 @@ other at all, using `task::spawn_unlinked` for _isolated failure_.
567567
~~~
568568
# use std::task;
569569
# fn random() -> uint { 100 }
570-
# fn sleep_for(i: uint) { for i.times { task::yield() } }
570+
# fn sleep_for(i: uint) { do i.times { task::yield() } }
571571
# do task::try::<()> {
572572
let (time1, time2) = (random(), random());
573573
do task::spawn_unlinked {

branches/auto/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ struct TimeBomb {
18991899
19001900
impl Drop for TimeBomb {
19011901
fn drop(&self) {
1902-
for self.explosivity.times {
1902+
do self.explosivity.times {
19031903
println("blam!");
19041904
}
19051905
}

branches/auto/mk/tests.mk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,20 +215,25 @@ else
215215
ALL_CS := $(wildcard $(S)src/rt/*.cpp \
216216
$(S)src/rt/*/*.cpp \
217217
$(S)src/rt/*/*/*.cpp \
218-
$(S)src/rustllvm/*.cpp)
219-
ALL_CS := $(filter-out $(S)src/rt/miniz.cpp \
218+
$(S)srcrustllvm/*.cpp)
219+
ALL_CS := $(filter-out $(S)src/rt/bigint/bigint_ext.cpp \
220+
$(S)src/rt/bigint/bigint_int.cpp \
221+
$(S)src/rt/miniz.cpp \
220222
$(S)src/rt/linenoise/linenoise.c \
221223
$(S)src/rt/linenoise/utf8.c \
222224
,$(ALL_CS))
223225
ALL_HS := $(wildcard $(S)src/rt/*.h \
224226
$(S)src/rt/*/*.h \
225227
$(S)src/rt/*/*/*.h \
226-
$(S)src/rustllvm/*.h)
228+
$(S)srcrustllvm/*.h)
227229
ALL_HS := $(filter-out $(S)src/rt/vg/valgrind.h \
228230
$(S)src/rt/vg/memcheck.h \
231+
$(S)src/rt/uthash/uthash.h \
232+
$(S)src/rt/uthash/utlist.h \
229233
$(S)src/rt/msvc/typeof.h \
230234
$(S)src/rt/msvc/stdint.h \
231235
$(S)src/rt/msvc/inttypes.h \
236+
$(S)src/rt/bigint/bigint.h \
232237
$(S)src/rt/linenoise/linenoise.h \
233238
$(S)src/rt/linenoise/utf8.h \
234239
,$(ALL_HS))

branches/auto/src/libextra/arc.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* let numbers=vec::from_fn(100, |ind| (ind as float)*rand::random());
2424
* let shared_numbers=arc::Arc::new(numbers);
2525
*
26-
* for 10.times {
26+
* do 10.times {
2727
* let (port, chan) = stream();
2828
* chan.send(shared_numbers.clone());
2929
*
@@ -576,12 +576,16 @@ mod tests {
576576
let (p, c) = comm::stream();
577577
578578
do task::spawn() || {
579+
let p = comm::PortSet::new();
580+
c.send(p.chan());
581+
579582
let arc_v : Arc<~[int]> = p.recv();
580583
581584
let v = (*arc_v.get()).clone();
582585
assert_eq!(v[3], 4);
583586
};
584587
588+
let c = p.recv();
585589
c.send(arc_v.clone());
586590
587591
assert_eq!(arc_v.get()[2], 3);
@@ -761,7 +765,7 @@ mod tests {
761765
762766
do task::spawn || {
763767
do arc2.write |num| {
764-
for 10.times {
768+
do 10.times {
765769
let tmp = *num;
766770
*num = -1;
767771
task::yield();
@@ -773,7 +777,7 @@ mod tests {
773777
774778
// Readers try to catch the writer in the act
775779
let mut children = ~[];
776-
for 5.times {
780+
do 5.times {
777781
let arc3 = (*arc).clone();
778782
let mut builder = task::task();
779783
builder.future_result(|r| children.push(r));
@@ -807,7 +811,7 @@ mod tests {
807811
808812
// Reader tasks
809813
let mut reader_convos = ~[];
810-
for 10.times {
814+
do 10.times {
811815
let ((rp1,rc1),(rp2,rc2)) = (comm::stream(),comm::stream());
812816
reader_convos.push((rc1, rp2));
813817
let arcn = (*arc).clone();
@@ -921,7 +925,7 @@ mod tests {
921925
do read_mode.read |state| {
922926
// if writer mistakenly got in, make sure it mutates state
923927
// before we assert on it
924-
for 5.times { task::yield(); }
928+
do 5.times { task::yield(); }
925929
// make sure writer didn't get in.
926930
assert!(*state);
927931
}
@@ -933,6 +937,6 @@ mod tests {
933937
// helped to expose the race nearly 100% of the time... but adding
934938
// yields in the intuitively-right locations made it even less likely,
935939
// and I wasn't sure why :( . This is a mediocre "next best" option.
936-
for 8.times { test_rw_write_cond_downgrade_read_race_helper() }
940+
do 8.times { test_rw_write_cond_downgrade_read_race_helper() }
937941
}
938942
}

branches/auto/src/libextra/arena.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@ impl Drop for Arena {
7272
fn drop(&self) {
7373
unsafe {
7474
destroy_chunk(&self.head);
75-
for self.chunks.each |chunk| {
75+
do self.chunks.each |chunk| {
7676
if !chunk.is_pod {
7777
destroy_chunk(chunk);
7878
}
79-
}
79+
true
80+
};
8081
}
8182
}
8283
}

branches/auto/src/libextra/base64.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,9 @@ mod test {
358358
use std::rand::{task_rng, random, RngUtil};
359359
use std::vec;
360360
361-
for 1000.times {
361+
do 1000.times {
362362
let v: ~[u8] = do vec::build |push| {
363-
for task_rng().gen_uint_range(1, 100).times {
363+
do task_rng().gen_uint_range(1, 100).times {
364364
push(random());
365365
}
366366
};
@@ -389,4 +389,4 @@ mod test {
389389
bh.bytes = b.len() as u64;
390390
}
391391

392-
}
392+
}

0 commit comments

Comments
 (0)