Skip to content

Commit c62e4a5

Browse files
committed
---
yaml --- r: 63342 b: refs/heads/snap-stage3 c: da42e6b h: refs/heads/master v: v3
1 parent c79a983 commit c62e4a5

File tree

161 files changed

+719
-708
lines changed

Some content is hidden

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

161 files changed

+719
-708
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: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c7013ba1fcad7fcc84d7e6e93d7a0306c13bce47
4+
refs/heads/snap-stage3: da42e6b7a0fcadcca819d221738894dcb6c4b76d
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/RELEASES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Version 0.7 (July 2013)
44
* ??? changes, numerous bugfixes
55

66
* Syntax changes
7-
* `#[deriving(Encodable)]`, `#[deriving(Decodable)]`
7+
* `#[deriving(Encodable)]`, `#[deriving(Decodable)]`
88

99
* Semantic changes
1010
* The `self` parameter no longer implicitly means `&'self self`,

branches/snap-stage3/doc/tutorial-tasks.md

Lines changed: 1 addition & 2 deletions
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));
@@ -351,7 +351,6 @@ a single large vector of floats. Each task needs the full vector to perform its
351351
# use std::vec;
352352
# use std::uint;
353353
# use std::rand;
354-
# use std::iterator::IteratorUtil;
355354
use extra::arc::ARC;
356355
357356
fn pnorm(nums: &~[float], p: uint) -> float {

branches/snap-stage3/src/compiletest/header.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use core::prelude::*;
1313
use common::config;
1414
use common;
1515

16-
use core::iterator::IteratorUtil;
1716
use core::io;
1817
use core::os;
1918

branches/snap-stage3/src/compiletest/procsrv.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
use core::prelude::*;
12-
use core::iterator::IteratorUtil;
1312

1413
use core::os;
1514
use core::run;

branches/snap-stage3/src/compiletest/runtest.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use procsrv;
2222
use util;
2323
use util::logv;
2424

25-
use core::iterator::IteratorUtil;
2625
use core::io;
2726
use core::os;
2827
use core::str;

branches/snap-stage3/src/etc/adb_run_wrapper.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# usage : adb_run_wrapper [test dir - where test executables exist] [test executable]
33
#
44

5-
# Sometimes android shell produce exitcode "1 : Text File Busy"
5+
# Sometimes android shell produce exitcode "1 : Text File Busy"
66
# Retry after $WAIT seconds, expecting resource cleaned-up
77
WAIT=10
88
PATH=$1
@@ -20,15 +20,15 @@ then
2020
while [ $L_RET -eq 1 ]
2121
do
2222
LD_LIBRARY_PATH=$PATH $PATH/$RUN $@ 1>$PATH/$RUN.stdout 2>$PATH/$RUN.stderr
23-
L_RET=$?
23+
L_RET=$?
2424
if [ $L_COUNT -gt 0 ]
2525
then
2626
/system/bin/sleep $WAIT
2727
/system/bin/sync
2828
fi
2929
L_COUNT=`expr $L_COUNT+1`
3030
done
31-
31+
3232
echo $L_RET > $PATH/$RUN.exitcode
3333

3434
fi

branches/snap-stage3/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;

branches/snap-stage3/src/libextra/dlist.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Do not use ==, !=, <, etc on doubly-linked lists -- it may not terminate.
2020

2121
use core::prelude::*;
2222

23-
use core::iterator::IteratorUtil;
2423
use core::managed;
2524
use core::old_iter;
2625
use core::vec;

branches/snap-stage3/src/libextra/fileinput.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ mod test {
414414
415415
use super::{FileInput, pathify, input_vec, input_vec_state};
416416
417-
use core::iterator::IteratorUtil;
418417
use core::io;
419418
use core::uint;
420419
use core::vec;

branches/snap-stage3/src/libextra/getopts.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383

8484
use core::prelude::*;
8585

86-
use core::iterator::IteratorUtil;
8786
use core::cmp::Eq;
8887
use core::result::{Err, Ok};
8988
use core::result;

branches/snap-stage3/src/libextra/json.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
1919
use core::prelude::*;
2020

21-
use core::iterator::IteratorUtil;
2221
use core::char;
2322
use core::float;
2423
use core::hashmap::HashMap;

branches/snap-stage3/src/libextra/list.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
1313
use core::prelude::*;
1414

15-
use core::iterator::IteratorUtil;
1615

1716
#[deriving(Eq)]
1817
pub enum List<T> {

branches/snap-stage3/src/libextra/net_ip.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
use core::prelude::*;
1616

17-
use core::iterator::IteratorUtil;
1817
use core::libc;
1918
use core::comm::{stream, SharedChan};
2019
use core::ptr;

branches/snap-stage3/src/libextra/net_url.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
use core::prelude::*;
1616

17-
use core::iterator::IteratorUtil;
1817
use core::cmp::Eq;
1918
use core::io::{Reader, ReaderUtil};
2019
use core::io;

branches/snap-stage3/src/libextra/num/bigint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ A BigInt is a combination of BigUint and Sign.
1919
#[allow(missing_doc)];
2020

2121
use core::prelude::*;
22-
use core::iterator::IteratorUtil;
2322
use core::cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater};
2423
use core::int;
2524
use core::num::{IntConvertible, Zero, One, ToStrRadix, FromStrRadix, Orderable};

branches/snap-stage3/src/libextra/num/rational.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
1313
use core::prelude::*;
1414

15-
use core::iterator::IteratorUtil;
1615
use core::cmp;
1716
use core::from_str::FromStr;
1817
use core::num::{Zero,One,ToStrRadix,FromStrRadix,Round};

branches/snap-stage3/src/libextra/par.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
use core::prelude::*;
1212

13-
use core::iterator::IteratorUtil;
1413
use core::cast;
1514
use core::ptr;
1615
use core::sys;

branches/snap-stage3/src/libextra/rope.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
use core::prelude::*;
3939

40-
use core::iterator::IteratorUtil;
4140
use core::uint;
4241
use core::vec;
4342
use core::str;

branches/snap-stage3/src/libextra/semver.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
use core::prelude::*;
1616

17-
use core::iterator::IteratorUtil;
1817
use core::char;
1918
use core::cmp;
2019
use core::io::{ReaderUtil};

branches/snap-stage3/src/libextra/sha1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
use core::prelude::*;
2626

27-
use core::iterator::IteratorUtil;
27+
use core::str;
2828
use core::uint;
2929
use core::vec;
3030

branches/snap-stage3/src/libextra/stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use core::prelude::*;
1414

15-
use core::iterator::*;
15+
use core::vec;
1616
use core::f64;
1717
use core::cmp;
1818
use core::num;

branches/snap-stage3/src/libextra/term.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use core::os;
2020
use terminfo::*;
2121
use terminfo::searcher::open;
2222
use terminfo::parser::compiled::parse;
23-
use terminfo::parm::{expand, Number};
23+
use terminfo::parm::{expand, Number, Variables};
2424

2525
// FIXME (#2807): Windows support.
2626

@@ -84,7 +84,7 @@ impl Terminal {
8484
pub fn fg(&self, color: u8) {
8585
if self.color_supported {
8686
let s = expand(*self.ti.strings.find_equiv(&("setaf")).unwrap(),
87-
[Number(color as int)], [], []);
87+
[Number(color as int)], &mut Variables::new());
8888
if s.is_ok() {
8989
self.out.write(s.get());
9090
} else {
@@ -95,7 +95,7 @@ impl Terminal {
9595
pub fn bg(&self, color: u8) {
9696
if self.color_supported {
9797
let s = expand(*self.ti.strings.find_equiv(&("setab")).unwrap(),
98-
[Number(color as int)], [], []);
98+
[Number(color as int)], &mut Variables::new());
9999
if s.is_ok() {
100100
self.out.write(s.get());
101101
} else {
@@ -105,7 +105,8 @@ impl Terminal {
105105
}
106106
pub fn reset(&self) {
107107
if self.color_supported {
108-
let s = expand(*self.ti.strings.find_equiv(&("op")).unwrap(), [], [], []);
108+
let mut vars = Variables::new();
109+
let s = expand(*self.ti.strings.find_equiv(&("op")).unwrap(), [], &mut vars);
109110
if s.is_ok() {
110111
self.out.write(s.get());
111112
} else {

0 commit comments

Comments
 (0)