Skip to content

Commit b37ffe4

Browse files
committed
---
yaml --- r: 65911 b: refs/heads/master c: d68be89 h: refs/heads/master i: 65909: f27b9b1 65907: 98764f4 65903: d8d977e v: v3
1 parent 2cee540 commit b37ffe4

File tree

9 files changed

+7
-34
lines changed

9 files changed

+7
-34
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8111701604976d3b0e9e70db621784aefda456b0
2+
refs/heads/master: d68be89e6912a394beb12c2731bdc6240a81655b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/doc/tutorial-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ fn main() {
327327
let mut futures = vec::from_fn(1000, |ind| do extra::future::spawn { partial_sum(ind) });
328328
329329
let mut final_res = 0f64;
330-
for futures.each_mut |ft| {
330+
for futures.mut_iter().advance |ft| {
331331
final_res += ft.get();
332332
}
333333
println(fmt!("π^2/6 is not far from : %?", final_res));

trunk/src/libextra/deque.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl<T> Container for Deque<T> {
3737
impl<T> Mutable for Deque<T> {
3838
/// Clear the deque, removing all values.
3939
fn clear(&mut self) {
40-
for self.elts.each_mut |x| { *x = None }
40+
for self.elts.mut_iter().advance |x| { *x = None }
4141
self.nelts = 0;
4242
self.lo = 0;
4343
self.hi = 0;

trunk/src/libstd/old_iter.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ pub trait ReverseIter<A>: BaseIter<A> {
3333
fn each_reverse(&self, blk: &fn(&A) -> bool) -> bool;
3434
}
3535

36-
pub trait MutableIter<A>: BaseIter<A> {
37-
fn each_mut(&mut self, blk: &fn(&mut A) -> bool) -> bool;
38-
}
39-
4036
pub trait ExtendedIter<A> {
4137
fn eachi(&self, blk: &fn(uint, v: &A) -> bool) -> bool;
4238
fn all(&self, blk: &fn(&A) -> bool) -> bool;

trunk/src/libstd/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub use cmp::{Eq, ApproxEq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Great
4646
pub use char::Char;
4747
pub use container::{Container, Mutable, Map, Set};
4848
pub use hash::Hash;
49-
pub use old_iter::{BaseIter, ReverseIter, MutableIter, ExtendedIter, EqIter};
49+
pub use old_iter::{BaseIter, ReverseIter, ExtendedIter, EqIter};
5050
pub use old_iter::{CopyableIter, CopyableOrderedIter, CopyableNonstrictIter};
5151
pub use iter::{Times, FromIter};
5252
pub use iterator::{Iterator, IteratorUtil};

trunk/src/libstd/vec.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2487,29 +2487,6 @@ impl<A> old_iter::BaseIter<A> for @[A] {
24872487
fn size_hint(&self) -> Option<uint> { Some(self.len()) }
24882488
}
24892489

2490-
impl<'self,A> old_iter::MutableIter<A> for &'self mut [A] {
2491-
#[inline(always)]
2492-
fn each_mut<'a>(&'a mut self, blk: &fn(v: &'a mut A) -> bool) -> bool {
2493-
self.mut_iter().advance(blk)
2494-
}
2495-
}
2496-
2497-
// FIXME(#4148): This should be redundant
2498-
impl<A> old_iter::MutableIter<A> for ~[A] {
2499-
#[inline(always)]
2500-
fn each_mut<'a>(&'a mut self, blk: &fn(v: &'a mut A) -> bool) -> bool {
2501-
self.mut_iter().advance(blk)
2502-
}
2503-
}
2504-
2505-
// FIXME(#4148): This should be redundant
2506-
impl<A> old_iter::MutableIter<A> for @mut [A] {
2507-
#[inline(always)]
2508-
fn each_mut(&mut self, blk: &fn(v: &mut A) -> bool) -> bool {
2509-
self.mut_iter().advance(blk)
2510-
}
2511-
}
2512-
25132490
impl<'self,A> old_iter::ExtendedIter<A> for &'self [A] {
25142491
pub fn eachi(&self, blk: &fn(uint, v: &A) -> bool) -> bool {
25152492
old_iter::eachi(self, blk)

trunk/src/test/bench/msgsend-ring-mutex-arcs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn main() {
109109
thread_ring(0, msg_per_task, num_chan.take(), num_port);
110110

111111
// synchronize
112-
for futures.each_mut |f| {
112+
for futures.mut_iter().advance |f| {
113113
f.get()
114114
}
115115

trunk/src/test/bench/msgsend-ring-pipes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fn main() {
9999
thread_ring(0, msg_per_task, num_chan.take(), num_port);
100100

101101
// synchronize
102-
for futures.each_mut |f| {
102+
for futures.mut_iter().advance |f| {
103103
let _ = f.get();
104104
}
105105

trunk/src/test/bench/msgsend-ring-rw-arcs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fn main() {
105105
thread_ring(0, msg_per_task, num_chan.take(), num_port);
106106

107107
// synchronize
108-
for futures.each_mut |f| {
108+
for futures.mut_iter().advance |f| {
109109
let _ = f.get();
110110
}
111111

0 commit comments

Comments
 (0)