Skip to content

Commit d7f8469

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 178439 b: refs/heads/try c: c300d68 h: refs/heads/master i: 178437: e74071f 178435: 90247cf 178431: ffdfc35 v: v3
1 parent 8a3d766 commit d7f8469

Some content is hidden

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

88 files changed

+241
-216
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: 336c8d2e9c6b276b162bdb3edd43706372e6eddd
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 474b324eda10440d6568ef872a7307d38e7de95b
5-
refs/heads/try: 3d6f5100aff24aa97275dc92ade728caac605560
5+
refs/heads/try: c300d681bd2e901ef39591bbfb1ea4568ac6be70
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ Olivier Saut <[email protected]>
516516
Olle Jonsson <[email protected]>
517517
Or Brostovski <[email protected]>
518518
Oren Hazi <[email protected]>
519-
Orpheus Lummis <o@orpheuslummis.com>
519+
Orphée Lafond-Lummis <o@orftz.com>
520520
521521
Pablo Brasero <[email protected]>
522522
Palmer Cox <[email protected]>

branches/try/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ example, if it's 2014, and you change a Rust file that was created in
5050
# Coordination and communication
5151

5252
Get feedback from other developers on
53-
[internals.rust-lang.org][internals], and
53+
[discuss.rust-lang.org][discuss], and
5454
[#rust-internals][pound-rust-internals].
5555

5656
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
57-
[internals]: http://internals.rust-lang.org
57+
[discuss]: http://discuss.rust-lang.org
5858

5959
For more details, please refer to
6060
[Note-development-policy](https://github.com/rust-lang/rust/wiki/Note-development-policy).

branches/try/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ documentation.
3030

3131
To build from the [tarball] do:
3232

33-
$ curl -O https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
34-
$ tar -xzf rustc-nightly-src.tar.gz
35-
$ cd rustc-nightly
33+
$ curl -O https://static.rust-lang.org/dist/rust-nightly.tar.gz
34+
$ tar -xzf rust-nightly.tar.gz
35+
$ cd rust-nightly
3636

3737
Or to build from the [repo] do:
3838

@@ -80,7 +80,7 @@ $ pacman -S base-devel
8080
$ make && make install
8181

8282
[repo]: https://github.com/rust-lang/rust
83-
[tarball]: https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
83+
[tarball]: https://static.rust-lang.org/dist/rust-nightly.tar.gz
8484
[trpl]: http://doc.rust-lang.org/book/index.html
8585

8686
## Notes
@@ -112,11 +112,11 @@ The Rust community congregates in a few places:
112112

113113
* [StackOverflow] - Get help here.
114114
* [/r/rust] - General discussion.
115-
* [internals.rust-lang.org] - For development of the Rust language itself.
115+
* [discuss.rust-lang.org] - For development of the Rust language itself.
116116

117117
[StackOverflow]: http://stackoverflow.com/questions/tagged/rust
118118
[/r/rust]: http://reddit.com/r/rust
119-
[internals.rust-lang.org]: http://internals.rust-lang.org/
119+
[discuss.rust-lang.org]: http://discuss.rust-lang.org/
120120

121121
## License
122122

branches/try/src/doc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ problem might reveal someone who has asked it before!
4141
There is an active [subreddit](http://reddit.com/r/rust) with lots of
4242
discussion about Rust.
4343

44-
There is also a [developer forum](http://internals.rust-lang.org/), where the
44+
There is also a [developer forum](http://discuss.rust-lang.org/), where the
4545
development of Rust itself is discussed.
4646

4747
# Specification

branches/try/src/etc/local_stage0.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,19 @@ case $OS in
2121
("Linux"|"FreeBSD"|"DragonFly")
2222
BIN_SUF=
2323
LIB_SUF=.so
24+
break
2425
;;
2526
("Darwin")
2627
BIN_SUF=
2728
LIB_SUF=.dylib
29+
break
2830
;;
2931
(*)
3032
BIN_SUF=.exe
3133
LIB_SUF=.dll
3234
LIB_DIR=bin
3335
LIB_PREFIX=
36+
break
3437
;;
3538
esac
3639

branches/try/src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ use heap::deallocate;
9595
/// use std::thread::Thread;
9696
///
9797
/// fn main() {
98-
/// let numbers: Vec<_> = range(0, 100u32).map(|i| i as f32).collect();
98+
/// let numbers: Vec<_> = (0..100u32).map(|i| i as f32).collect();
9999
/// let shared_numbers = Arc::new(numbers);
100100
///
101101
/// for _ in range(0u, 10) {

branches/try/src/liballoc/heap.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[cfg(not(test))]
1211
use core::ptr::PtrExt;
1312

1413
// FIXME: #13996: mark the `allocate` and `reallocate` return value as `noalias`

branches/try/src/libcollections/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub fn find_rand_n<M, T, I, F>(n: uint,
7070
{
7171
// setup
7272
let mut rng = rand::weak_rng();
73-
let mut keys = range(0, n).map(|_| rng.gen::<uint>() % n)
73+
let mut keys = (0..n).map(|_| rng.gen::<uint>() % n)
7474
.collect::<Vec<_>>();
7575

7676
for k in keys.iter() {

branches/try/src/libcollections/bit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ impl Bitv {
660660

661661
let len = self.nbits/8 +
662662
if self.nbits % 8 == 0 { 0 } else { 1 };
663-
range(0, len).map(|i|
663+
(0..len).map(|i|
664664
bit(self, i, 0) |
665665
bit(self, i, 1) |
666666
bit(self, i, 2) |
@@ -2283,7 +2283,7 @@ mod tests {
22832283

22842284
assert_eq!(bitv.iter().collect::<Vec<bool>>(), bools);
22852285

2286-
let long = range(0, 10000).map(|i| i % 2 == 0).collect::<Vec<_>>();
2286+
let long = (0..10000).map(|i| i % 2 == 0).collect::<Vec<_>>();
22872287
let bitv: Bitv = long.iter().map(|n| *n).collect();
22882288
assert_eq!(bitv.iter().collect::<Vec<bool>>(), long)
22892289
}
@@ -2647,7 +2647,7 @@ mod bitv_set_test {
26472647
let idxs: Vec<uint> = bitv.iter().collect();
26482648
assert_eq!(idxs, vec![0, 2, 3]);
26492649

2650-
let long: BitvSet = range(0u, 10000).filter(|&n| n % 2 == 0).collect();
2650+
let long: BitvSet = (0u..10000).filter(|&n| n % 2 == 0).collect();
26512651
let real = range_step(0, 10000, 2).collect::<Vec<uint>>();
26522652

26532653
let idxs: Vec<uint> = long.iter().collect();

branches/try/src/libcollections/btree/map.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ mod test {
16611661
let size = 10000u;
16621662

16631663
// Forwards
1664-
let mut map: BTreeMap<uint, uint> = range(0, size).map(|i| (i, i)).collect();
1664+
let mut map: BTreeMap<uint, uint> = (0..size).map(|i| (i, i)).collect();
16651665

16661666
fn test<T>(size: uint, mut iter: T) where T: Iterator<Item=(uint, uint)> {
16671667
for i in range(0, size) {
@@ -1681,7 +1681,7 @@ mod test {
16811681
let size = 10000u;
16821682

16831683
// Forwards
1684-
let mut map: BTreeMap<uint, uint> = range(0, size).map(|i| (i, i)).collect();
1684+
let mut map: BTreeMap<uint, uint> = (0..size).map(|i| (i, i)).collect();
16851685

16861686
fn test<T>(size: uint, mut iter: T) where T: Iterator<Item=(uint, uint)> {
16871687
for i in range(0, size) {
@@ -1701,7 +1701,7 @@ mod test {
17011701
let size = 10000u;
17021702

17031703
// Forwards
1704-
let mut map: BTreeMap<uint, uint> = range(0, size).map(|i| (i, i)).collect();
1704+
let mut map: BTreeMap<uint, uint> = (0..size).map(|i| (i, i)).collect();
17051705

17061706
fn test<T>(size: uint, mut iter: T)
17071707
where T: Iterator<Item=(uint, uint)> + DoubleEndedIterator {
@@ -1727,7 +1727,7 @@ mod test {
17271727
let size = 5u;
17281728

17291729
// Forwards
1730-
let map: BTreeMap<uint, uint> = range(0, size).map(|i| (i, i)).collect();
1730+
let map: BTreeMap<uint, uint> = (0..size).map(|i| (i, i)).collect();
17311731

17321732
let mut j = 0u;
17331733
for ((&k, &v), i) in map.range(Included(&2), Unbounded).zip(range(2u, size)) {
@@ -1741,11 +1741,11 @@ mod test {
17411741
#[test]
17421742
fn test_range_1000() {
17431743
let size = 1000u;
1744-
let map: BTreeMap<uint, uint> = range(0, size).map(|i| (i, i)).collect();
1744+
let map: BTreeMap<uint, uint> = (0..size).map(|i| (i, i)).collect();
17451745

17461746
fn test(map: &BTreeMap<uint, uint>, size: uint, min: Bound<&uint>, max: Bound<&uint>) {
17471747
let mut kvs = map.range(min, max).map(|(&k, &v)| (k, v));
1748-
let mut pairs = range(0, size).map(|i| (i, i));
1748+
let mut pairs = (0..size).map(|i| (i, i));
17491749

17501750
for (kv, pair) in kvs.by_ref().zip(pairs.by_ref()) {
17511751
assert_eq!(kv, pair);
@@ -1764,7 +1764,7 @@ mod test {
17641764
#[test]
17651765
fn test_range() {
17661766
let size = 200u;
1767-
let map: BTreeMap<uint, uint> = range(0, size).map(|i| (i, i)).collect();
1767+
let map: BTreeMap<uint, uint> = (0..size).map(|i| (i, i)).collect();
17681768

17691769
for i in range(0, size) {
17701770
for j in range(i, size) {

branches/try/src/libcollections/dlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ mod tests {
13341334

13351335
#[test]
13361336
fn test_show() {
1337-
let list: DList<int> = range(0i, 10).collect();
1337+
let list: DList<int> = (0i..10).collect();
13381338
assert_eq!(format!("{:?}", list), "DList [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]");
13391339

13401340
let list: DList<&str> = vec!["just", "one", "test", "more"].iter()

branches/try/src/libcollections/ring_buf.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ mod tests {
18281828

18291829
#[bench]
18301830
fn bench_iter_1000(b: &mut test::Bencher) {
1831-
let ring: RingBuf<int> = range(0i, 1000).collect();
1831+
let ring: RingBuf<int> = (0i..1000).collect();
18321832

18331833
b.iter(|| {
18341834
let mut sum = 0;
@@ -1841,7 +1841,7 @@ mod tests {
18411841

18421842
#[bench]
18431843
fn bench_mut_iter_1000(b: &mut test::Bencher) {
1844-
let mut ring: RingBuf<int> = range(0i, 1000).collect();
1844+
let mut ring: RingBuf<int> = (0i..1000).collect();
18451845

18461846
b.iter(|| {
18471847
let mut sum = 0;
@@ -1977,7 +1977,7 @@ mod tests {
19771977

19781978
#[test]
19791979
fn test_swap() {
1980-
let mut d: RingBuf<int> = range(0i, 5).collect();
1980+
let mut d: RingBuf<int> = (0i..5).collect();
19811981
d.pop_front();
19821982
d.swap(0, 3);
19831983
assert_eq!(d.iter().map(|&x|x).collect::<Vec<int>>(), vec!(4, 2, 3, 1));
@@ -2309,7 +2309,7 @@ mod tests {
23092309

23102310
#[test]
23112311
fn test_show() {
2312-
let ringbuf: RingBuf<int> = range(0i, 10).collect();
2312+
let ringbuf: RingBuf<int> = (0i..10).collect();
23132313
assert_eq!(format!("{:?}", ringbuf), "RingBuf [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]");
23142314

23152315
let ringbuf: RingBuf<&str> = vec!["just", "one", "test", "more"].iter()
@@ -2494,9 +2494,9 @@ mod tests {
24942494

24952495
for len in range(0, final_len) {
24962496
let expected = if back {
2497-
range(0, len).collect()
2497+
(0..len).collect()
24982498
} else {
2499-
range(0, len).rev().collect()
2499+
(0..len).rev().collect()
25002500
};
25012501
for tail_pos in range(0, usable_cap) {
25022502
tester.tail = tail_pos;
@@ -2652,16 +2652,16 @@ mod tests {
26522652
ring.push_back(i);
26532653

26542654
let (left, right) = ring.as_slices();
2655-
let expected: Vec<_> = range(0, i+1).collect();
2655+
let expected: Vec<_> = (0..i+1).collect();
26562656
assert_eq!(left, expected);
26572657
assert_eq!(right, []);
26582658
}
26592659

26602660
for j in range(-last, 0) {
26612661
ring.push_front(j);
26622662
let (left, right) = ring.as_slices();
2663-
let expected_left: Vec<_> = range(-last, j+1).rev().collect();
2664-
let expected_right: Vec<_> = range(0, first).collect();
2663+
let expected_left: Vec<_> = (-last..j+1).rev().collect();
2664+
let expected_right: Vec<_> = (0..first).collect();
26652665
assert_eq!(left, expected_left);
26662666
assert_eq!(right, expected_right);
26672667
}
@@ -2680,16 +2680,16 @@ mod tests {
26802680
ring.push_back(i);
26812681

26822682
let (left, right) = ring.as_mut_slices();
2683-
let expected: Vec<_> = range(0, i+1).collect();
2683+
let expected: Vec<_> = (0..i+1).collect();
26842684
assert_eq!(left, expected);
26852685
assert_eq!(right, []);
26862686
}
26872687

26882688
for j in range(-last, 0) {
26892689
ring.push_front(j);
26902690
let (left, right) = ring.as_mut_slices();
2691-
let expected_left: Vec<_> = range(-last, j+1).rev().collect();
2692-
let expected_right: Vec<_> = range(0, first).collect();
2691+
let expected_left: Vec<_> = (-last..j+1).rev().collect();
2692+
let expected_right: Vec<_> = (0..first).collect();
26932693
assert_eq!(left, expected_left);
26942694
assert_eq!(right, expected_right);
26952695
}

0 commit comments

Comments
 (0)