Skip to content

Commit 0043b97

Browse files
committed
---
yaml --- r: 30343 b: refs/heads/incoming c: f686896 h: refs/heads/master i: 30341: b38b9f8 30339: 672997b 30335: 145ca46 v: v3
1 parent 8f59be6 commit 0043b97

File tree

271 files changed

+410
-563
lines changed

Some content is hidden

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

271 files changed

+410
-563
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 47dac47e96fb47f84ac2f75781e2819ce80791a4
9+
refs/heads/incoming: f686896f60d901fd7f97add72fbc047691027baa
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/test/auxiliary/cci_capture_clause.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export foo;
22

3-
import comm::*;
3+
use comm::*;
44

55
fn foo<T: send copy>(x: T) -> Port<T> {
66
let p = Port();

branches/incoming/src/test/auxiliary/cci_class_cast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import to_str::*;
2-
import to_str::ToStr;
1+
use to_str::*;
2+
use to_str::ToStr;
33

44
mod kitty {
55

branches/incoming/src/test/auxiliary/cci_nested_lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import dvec::DVec;
1+
use dvec::DVec;
22

33
type entry<A,B> = {key: A, value: B};
44
type alist<A,B> = { eq_fn: fn@(A,A) -> bool, data: DVec<entry<A,B>> };

branches/incoming/src/test/auxiliary/crate-method-reexport-grrrrrrr2.rs

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

33
export rust;
44

5-
import name_pool::add;
5+
use name_pool::add;
66

77
mod name_pool {
88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import b::d;
1+
use b::d;
22

33
type t = uint;
44

branches/incoming/src/test/auxiliary/issue-2631-a.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
use std;
55

6-
import dvec::*;
7-
import dvec::DVec;
8-
import std::map::hashmap;
6+
use dvec::*;
7+
use dvec::DVec;
8+
use std::map::hashmap;
99

1010
type header_map = hashmap<~str, @DVec<@~str>>;
1111

branches/incoming/src/test/auxiliary/issue2378b.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use issue2378a;
22

3-
import issue2378a::maybe;
4-
import issue2378a::methods;
3+
use issue2378a::maybe;
4+
use issue2378a::methods;
55

66
type two_maybes<T> = {a: maybe<T>, b: maybe<T>};
77

branches/incoming/src/test/auxiliary/issue_2242_b.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#[crate_type = "lib"];
33

44
use a;
5-
import a::to_strz;
5+
use a::to_strz;
66

77
impl int: to_strz {
88
fn to_strz() -> ~str { fmt!("%?", self) }

branches/incoming/src/test/auxiliary/issue_2242_c.rs

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

44
use a;
55

6-
import a::to_strz;
6+
use a::to_strz;
77

88
impl bool: to_strz {
99
fn to_strz() -> ~str { fmt!("%b", self) }

branches/incoming/src/test/auxiliary/issue_2316_b.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use issue_2316_a;
22

33
mod cloth {
44

5-
import issue_2316_a::*;
5+
use issue_2316_a::*;
66

77
export calico, gingham, flannel;
88
export fabric;

branches/incoming/src/test/auxiliary/test_comm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Could probably be more minimal.
55
*/
66

7-
import libc::size_t;
7+
use libc::size_t;
88

99
export port::{};
1010
export port;

branches/incoming/src/test/bench/core-map.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
*/
66

77
use std;
8-
import rand;
9-
import std::map;
10-
import managed::Managed;
11-
import send_map::linear::*;
12-
import io::WriterUtil;
8+
use std::map;
9+
use managed::Managed;
10+
use send_map::linear::*;
11+
use io::WriterUtil;
1312

1413
struct Results {
1514
sequential_ints: float;

branches/incoming/src/test/bench/core-std.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
use std;
44

5-
import std::time::precise_time_s;
6-
import std::map;
7-
import std::map::{map, hashmap};
5+
use std::time::precise_time_s;
6+
use std::map;
7+
use std::map::{map, hashmap};
88

9-
import io::{Reader, ReaderUtil};
9+
use io::{Reader, ReaderUtil};
1010

1111
fn main(argv: ~[~str]) {
1212
#macro[

branches/incoming/src/test/bench/core-vec-append.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// A raw test of vector appending performance.
22

33
use std;
4-
import dvec::DVec;
5-
import io::WriterUtil;
4+
use dvec::DVec;
5+
use io::WriterUtil;
66

77
fn collect_raw(num: uint) -> ~[uint] {
88
let mut result = ~[];

branches/incoming/src/test/bench/graph500-bfs.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ An implementation of the Graph500 Breadth First Search problem in Rust.
55
*/
66

77
use std;
8-
import std::arc;
9-
import std::time;
10-
import std::map;
11-
import std::map::map;
12-
import std::map::hashmap;
13-
import std::deque;
14-
import std::deque::Deque;
15-
import std::par;
16-
import io::WriterUtil;
17-
import comm::*;
18-
import int::abs;
8+
use std::arc;
9+
use std::time;
10+
use std::map;
11+
use std::map::map;
12+
use std::map::hashmap;
13+
use std::deque;
14+
use std::deque::Deque;
15+
use std::par;
16+
use io::WriterUtil;
17+
use comm::*;
18+
use int::abs;
1919

2020
type node_id = i64;
2121
type graph = ~[~[node_id]];

branches/incoming/src/test/bench/msgsend-pipes-shared.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
// xfail-pretty
1212

1313
use std;
14-
import io::Writer;
15-
import io::WriterUtil;
14+
use io::Writer;
15+
use io::WriterUtil;
1616

17-
import pipes::{Port, Chan, SharedChan};
17+
use pipes::{Port, Chan, SharedChan};
1818

1919
macro_rules! move_out (
2020
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }

branches/incoming/src/test/bench/msgsend-pipes.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
// xfail-pretty
88

99
use std;
10-
import io::Writer;
11-
import io::WriterUtil;
10+
use io::Writer;
11+
use io::WriterUtil;
1212

13-
import pipes::{Port, PortSet, Chan};
13+
use pipes::{Port, PortSet, Chan};
1414

1515
macro_rules! move_out (
1616
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }

branches/incoming/src/test/bench/msgsend-ring-mutex-arcs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
// xfail-pretty
99

10-
import future::future;
10+
use future::future;
1111

1212
use std;
13-
import std::time;
14-
import std::arc;
13+
use std::time;
14+
use std::arc;
1515

1616
// A poor man's pipe.
1717
type pipe = arc::MutexARC<~[uint]>;

branches/incoming/src/test/bench/msgsend-ring-pipes.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
// xfail-pretty
1010

11-
import future::future;
11+
use future::future;
1212

1313
use std;
14-
import std::time;
14+
use std::time;
1515

16-
import pipes::recv;
16+
use pipes::recv;
1717

1818
proto! ring (
1919
num:send {

branches/incoming/src/test/bench/msgsend-ring-rw-arcs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
// xfail-pretty
99

10-
import future::future;
10+
use future::future;
1111

1212
use std;
13-
import std::time;
14-
import std::arc;
13+
use std::time;
14+
use std::arc;
1515

1616
// A poor man's pipe.
1717
type pipe = arc::RWARC<~[uint]>;

branches/incoming/src/test/bench/msgsend-ring.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// that things will look really good once we get that lock out of the
55
// message path.
66

7-
import comm::*;
8-
import future::future;
7+
use comm::*;
8+
use future::future;
99

1010
use std;
11-
import std::time;
11+
use std::time;
1212

1313
fn thread_ring(i: uint,
1414
count: uint,

branches/incoming/src/test/bench/msgsend.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// I *think* it's the same, more or less.
66

77
use std;
8-
import io::Writer;
9-
import io::WriterUtil;
8+
use io::Writer;
9+
use io::WriterUtil;
1010

1111
enum request {
1212
get_count,

branches/incoming/src/test/bench/pingpong.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use std;
66

7-
import pipes::{spawn_service, recv};
8-
import std::time::precise_time_s;
7+
use pipes::{spawn_service, recv};
8+
use std::time::precise_time_s;
99

1010
proto! pingpong (
1111
ping: send {

branches/incoming/src/test/bench/shootout-binarytrees.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std;
2-
import std::arena;
3-
import methods = std::arena::Arena;
2+
use std::arena;
3+
use methods = std::arena::Arena;
44

55
enum tree/& { nil, node(&tree, &tree, int), }
66

branches/incoming/src/test/bench/shootout-chameneos-redux.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// chameneos
22

33
use std;
4-
import std::map;
5-
import std::map::hashmap;
6-
import std::sort;
4+
use std::map;
5+
use std::map::hashmap;
6+
use std::sort;
77

88
fn print_complements() {
99
let all = ~[Blue, Red, Yellow];

branches/incoming/src/test/bench/shootout-fannkuchredux.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Based on Isaac Gouy's fannkuchredux.csharp
22
use std;
3-
import int;
4-
import vec;
53

64
fn fannkuch(n: int) -> int {
75
fn perm1init(i: uint) -> int { return i as int; }

branches/incoming/src/test/bench/shootout-fasta.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
* http://shootout.alioth.debian.org/
77
*/
88
use std;
9-
import vec;
10-
import uint;
11-
import int;
12-
import str;
13-
import io::WriterUtil;
9+
use io::WriterUtil;
1410

1511
fn LINE_LENGTH() -> uint { return 60u; }
1612

branches/incoming/src/test/bench/shootout-k-nucleotide-pipes.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// multi tasking k-nucleotide
44

55
use std;
6-
import std::map;
7-
import std::map::hashmap;
8-
import std::sort;
9-
import io::ReaderUtil;
10-
import pipes::{stream, Port, Chan};
6+
use std::map;
7+
use std::map::hashmap;
8+
use std::sort;
9+
use io::ReaderUtil;
10+
use pipes::{stream, Port, Chan};
1111

1212
// given a map, print a sorted version of it
1313
fn sort_and_fmt(mm: hashmap<~[u8], uint>, total: uint) -> ~str {

branches/incoming/src/test/bench/shootout-k-nucleotide.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// multi tasking k-nucleotide
44

55
use std;
6-
import std::map;
7-
import std::map::hashmap;
8-
import std::sort;
9-
import io::ReaderUtil;
6+
use std::map;
7+
use std::map::hashmap;
8+
use std::sort;
9+
use io::ReaderUtil;
1010

1111
// given a map, print a sorted version of it
1212
fn sort_and_fmt(mm: hashmap<~[u8], uint>, total: uint) -> ~str {

branches/incoming/src/test/bench/shootout-mandelbrot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
// writes pbm image to output path
1414

1515
use std;
16-
import io::WriterUtil;
17-
import std::map::hashmap;
16+
use io::WriterUtil;
17+
use std::map::hashmap;
1818

1919
struct cmplx {
2020
re: f64;

0 commit comments

Comments
 (0)