Skip to content

Commit d303d9f

Browse files
committed
---
yaml --- r: 140181 b: refs/heads/try2 c: 9968ccf h: refs/heads/master i: 140179: 6720947 v: v3
1 parent 81fdfae commit d303d9f

Some content is hidden

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

62 files changed

+1255
-1907
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: 32901104cb54a37211ac1c05f377f69ee702485c
8+
refs/heads/try2: 9968ccfc303f6cc6fed614118400faabcb9a6760
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/doc/tutorial.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,7 +1981,7 @@ struct TimeBomb {
19811981
19821982
impl Drop for TimeBomb {
19831983
fn finalize(&self) {
1984-
for old_iter::repeat(self.explosivity) {
1984+
for iter::repeat(self.explosivity) {
19851985
io::println("blam!");
19861986
}
19871987
}
@@ -2056,10 +2056,11 @@ method declarations. So, re-declaring the type parameter
20562056
`T` as an explicit type parameter for `len`, in either the trait or
20572057
the impl, would be a compile-time error.
20582058

2059-
Within a trait definition, `Self` is a special type that you can think
2059+
Within a trait definition, `self` is a special type that you can think
20602060
of as a type parameter. An implementation of the trait for any given
2061-
type `T` replaces the `Self` type parameter with `T`. The following
2062-
trait describes types that support an equality operation:
2061+
type `T` replaces the `self` type parameter with `T`. Simply, in a
2062+
trait, `self` is a type, and in an impl, `self` is a value. The
2063+
following trait describes types that support an equality operation:
20632064

20642065
~~~~
20652066
// In a trait, `self` refers to the self argument.
@@ -2075,7 +2076,7 @@ impl Eq for int {
20752076
~~~~
20762077

20772078
Notice that in the trait definition, `equals` takes a
2078-
second parameter of type `Self`.
2079+
second parameter of type `self`.
20792080
In contrast, in the `impl`, `equals` takes a second parameter of
20802081
type `int`, only using `self` as the name of the receiver.
20812082

branches/try2/src/libcore/at_vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
use cast::transmute;
1414
use kinds::Copy;
15-
use old_iter;
15+
use iter;
1616
use option::Option;
1717
use ptr::addr_of;
1818
use sys;
@@ -125,7 +125,7 @@ pub fn map<T, U>(v: &[T], f: &fn(x: &T) -> U) -> @[U] {
125125
* Creates an immutable vector of size `n_elts` and initializes the elements
126126
* to the value returned by the function `op`.
127127
*/
128-
pub fn from_fn<T>(n_elts: uint, op: old_iter::InitOp<T>) -> @[T] {
128+
pub fn from_fn<T>(n_elts: uint, op: iter::InitOp<T>) -> @[T] {
129129
do build_sized(n_elts) |push| {
130130
let mut i: uint = 0u;
131131
while i < n_elts { push(op(i)); i += 1u; }

branches/try2/src/libcore/core.rc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,9 @@ pub use container::{Container, Mutable};
9999
pub use vec::{CopyableVector, ImmutableVector};
100100
pub use vec::{ImmutableEqVector, ImmutableCopyableVector};
101101
pub use vec::{OwnedVector, OwnedCopyableVector, MutableVector};
102-
pub use old_iter::{BaseIter, ExtendedIter, EqIter, CopyableIter};
103-
pub use old_iter::{CopyableOrderedIter, CopyableNonstrictIter};
104-
pub use old_iter::{ExtendedMutableIter};
105-
pub use iter::Times;
102+
pub use iter::{BaseIter, ExtendedIter, EqIter, CopyableIter};
103+
pub use iter::{CopyableOrderedIter, CopyableNonstrictIter, Times};
104+
pub use iter::{ExtendedMutableIter};
106105

107106
pub use num::{Num, NumCast};
108107
pub use num::{Orderable, Signed, Unsigned, Integer};
@@ -189,7 +188,6 @@ pub mod from_str;
189188
#[path = "num/num.rs"]
190189
pub mod num;
191190
pub mod iter;
192-
pub mod old_iter;
193191
pub mod iterator;
194192
pub mod to_str;
195193
pub mod to_bytes;

branches/try2/src/libcore/hashmap.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
use container::{Container, Mutable, Map, Set};
1717
use cmp::{Eq, Equiv};
1818
use hash::Hash;
19-
use old_iter::BaseIter;
19+
use iter::BaseIter;
2020
use hash::Hash;
21-
use old_iter;
21+
use iter;
2222
use option::{None, Option, Some};
2323
use rand::RngUtil;
2424
use rand;
@@ -757,12 +757,12 @@ impl<T:Hash + Eq> Set<T> for HashSet<T> {
757757
/// Return true if the set has no elements in common with `other`.
758758
/// This is equivalent to checking for an empty intersection.
759759
fn is_disjoint(&self, other: &HashSet<T>) -> bool {
760-
old_iter::all(self, |v| !other.contains(v))
760+
iter::all(self, |v| !other.contains(v))
761761
}
762762

763763
/// Return true if the set is a subset of another
764764
fn is_subset(&self, other: &HashSet<T>) -> bool {
765-
old_iter::all(self, |v| other.contains(v))
765+
iter::all(self, |v| other.contains(v))
766766
}
767767

768768
/// Return true if the set is a superset of another

0 commit comments

Comments
 (0)