Skip to content

Commit 29af647

Browse files
committed
---
yaml --- r: 55150 b: refs/heads/snap-stage3 c: 30266a7 h: refs/heads/master v: v3
1 parent b1fdbeb commit 29af647

Some content is hidden

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

74 files changed

+2201
-1568
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: d8024e2c3b89b3ad517b76a5495f2bcb2d6a7690
4+
refs/heads/snap-stage3: 30266a788f8399790024f0ffb7618cdd2c50935b
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/doc/tutorial.md

Lines changed: 5 additions & 6 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 iter::repeat(self.explosivity) {
1984+
for old_iter::repeat(self.explosivity) {
19851985
io::println("blam!");
19861986
}
19871987
}
@@ -2056,11 +2056,10 @@ 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`. 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:
2061+
type `T` replaces the `Self` type parameter with `T`. The following
2062+
trait describes types that support an equality operation:
20642063

20652064
~~~~
20662065
// In a trait, `self` refers to the self argument.
@@ -2076,7 +2075,7 @@ impl Eq for int {
20762075
~~~~
20772076

20782077
Notice that in the trait definition, `equals` takes a
2079-
second parameter of type `self`.
2078+
second parameter of type `Self`.
20802079
In contrast, in the `impl`, `equals` takes a second parameter of
20812080
type `int`, only using `self` as the name of the receiver.
20822081

branches/snap-stage3/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 iter;
15+
use old_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: iter::InitOp<T>) -> @[T] {
128+
pub fn from_fn<T>(n_elts: uint, op: old_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/snap-stage3/src/libcore/core.rc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,15 @@ 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 iter::{BaseIter, ExtendedIter, EqIter, CopyableIter};
103-
pub use iter::{CopyableOrderedIter, CopyableNonstrictIter, Times};
104-
pub use iter::{ExtendedMutableIter};
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;
105106

106107
pub use num::{Num, NumCast};
107-
pub use num::{Orderable, Signed, Unsigned, Integer};
108-
pub use num::{Round, Fractional, Real, RealExt};
108+
pub use num::{Orderable, Signed, Unsigned, Round};
109+
pub use num::{Algebraic, Trigonometric, Exponential, Hyperbolic};
110+
pub use num::{Integer, Fractional, Real, RealExt};
109111
pub use num::{Bitwise, BitCount, Bounded};
110112
pub use num::{Primitive, Int, Float};
111113

@@ -188,6 +190,7 @@ pub mod from_str;
188190
#[path = "num/num.rs"]
189191
pub mod num;
190192
pub mod iter;
193+
pub mod old_iter;
191194
pub mod iterator;
192195
pub mod to_str;
193196
pub mod to_bytes;

branches/snap-stage3/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 iter::BaseIter;
19+
use old_iter::BaseIter;
2020
use hash::Hash;
21-
use iter;
21+
use old_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-
iter::all(self, |v| !other.contains(v))
760+
old_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-
iter::all(self, |v| other.contains(v))
765+
old_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)