Skip to content

Commit 0cd6b59

Browse files
committed
---
yaml --- r: 50668 b: refs/heads/try c: 968e0dd h: refs/heads/master v: v3
1 parent 00dc001 commit 0cd6b59

File tree

5 files changed

+9
-34
lines changed

5 files changed

+9
-34
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
5-
refs/heads/try: c64a5d2d37a91e2151da41324a7f5dfc2b9c05d3
5+
refs/heads/try: 968e0ddc6068e398275cbfc016a39094774186d6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libcore/core.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Implicitly, all crates behave as if they included the following prologue:
5656

5757
// On Linux, link to the runtime with -lrt.
5858
#[cfg(target_os = "linux")]
59+
#[doc(hidden)]
5960
pub mod linkhack {
6061
#[link_args="-lrustrt -lrt"]
6162
#[link_args = "-lpthread"]

branches/try/src/libcore/iter.rs

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

34-
pub trait MutableIter<A>: BaseIter<A> {
35-
fn each_mut(&mut self, blk: &fn(&mut A) -> bool);
36-
}
37-
3834
pub trait ExtendedIter<A> {
3935
pure fn eachi(&self, blk: &fn(uint, v: &A) -> bool);
4036
pure fn all(&self, blk: &fn(&A) -> bool) -> bool;

branches/try/src/libcore/prelude.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ pub use clone::Clone;
2727
pub use cmp::{Eq, Ord, TotalOrd, Ordering, Less, Equal, Greater};
2828
pub use container::{Container, Mutable, Map, Set};
2929
pub use hash::Hash;
30-
pub use iter::{BaseIter, ReverseIter, MutableIter, ExtendedIter, EqIter};
31-
pub use iter::{CopyableIter, CopyableOrderedIter, CopyableNonstrictIter};
32-
pub use iter::Times;
30+
pub use iter::{BaseIter, ReverseIter, ExtendedIter, EqIter, CopyableIter};
31+
pub use iter::{CopyableOrderedIter, CopyableNonstrictIter, Times};
3332
pub use num::NumCast;
3433
pub use path::GenericPath;
3534
pub use path::Path;

branches/try/src/libcore/vec.rs

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ pub pure fn each<T>(v: &r/[T], f: &fn(&r/T) -> bool) {
13581358
/// a vector with mutable contents and you would like
13591359
/// to mutate the contents as you iterate.
13601360
#[inline(always)]
1361-
pub fn each_mut<T>(v: &'r mut [T], f: &fn(elem: &'r mut T) -> bool) {
1361+
pub fn each_mut<T>(v: &mut [T], f: &fn(elem: &mut T) -> bool) {
13621362
let mut i = 0;
13631363
let n = v.len();
13641364
while i < n {
@@ -2282,9 +2282,11 @@ pub mod bytes {
22822282
// ___________________________________________________________________________
22832283
// ITERATION TRAIT METHODS
22842284

2285-
impl<A> iter::BaseIter<A> for &'self [A] {
2285+
impl<A> iter::BaseIter<A> for &self/[A] {
22862286
#[inline(always)]
2287-
pure fn each(&self, blk: &fn(v: &'self A) -> bool) { each(*self, blk) }
2287+
pub pure fn each(&self, blk: &fn(v: &'self A) -> bool) {
2288+
each(*self, blk)
2289+
}
22882290
#[inline(always)]
22892291
pure fn size_hint(&self) -> Option<uint> { Some(self.len()) }
22902292
}
@@ -2305,29 +2307,6 @@ impl<A> iter::BaseIter<A> for @[A] {
23052307
pure fn size_hint(&self) -> Option<uint> { Some(self.len()) }
23062308
}
23072309

2308-
impl<A> iter::MutableIter<A> for &'self mut [A] {
2309-
#[inline(always)]
2310-
fn each_mut(&mut self, blk: &fn(v: &'self mut A) -> bool) {
2311-
each_mut(*self, blk)
2312-
}
2313-
}
2314-
2315-
// FIXME(#4148): This should be redundant
2316-
impl<A> iter::MutableIter<A> for ~[A] {
2317-
#[inline(always)]
2318-
fn each_mut(&mut self, blk: &fn(v: &'self mut A) -> bool) {
2319-
each_mut(*self, blk)
2320-
}
2321-
}
2322-
2323-
// FIXME(#4148): This should be redundant
2324-
impl<A> iter::MutableIter<A> for @mut [A] {
2325-
#[inline(always)]
2326-
fn each_mut(&mut self, blk: &fn(v: &mut A) -> bool) {
2327-
each_mut(*self, blk)
2328-
}
2329-
}
2330-
23312310
impl<A> iter::ExtendedIter<A> for &self/[A] {
23322311
pub pure fn eachi(&self, blk: &fn(uint, v: &A) -> bool) {
23332312
iter::eachi(self, blk)

0 commit comments

Comments
 (0)