Skip to content

Commit 3fb5cc5

Browse files
committed
---
yaml --- r: 23743 b: refs/heads/master c: f686896 h: refs/heads/master i: 23741: 0bdf739 23739: a240933 23735: 815d781 23727: a31c47b 23711: a4c603a 23679: 2128a59 v: v3
1 parent 32793e4 commit 3fb5cc5

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 47dac47e96fb47f84ac2f75781e2819ce80791a4
2+
refs/heads/master: f686896f60d901fd7f97add72fbc047691027baa
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/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();

trunk/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

trunk/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>> };

trunk/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

trunk/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

trunk/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

trunk/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) }

trunk/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) }

trunk/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;

trunk/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;

trunk/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;

trunk/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[

trunk/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 = ~[];

trunk/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]];

trunk/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 } }

trunk/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 } }

trunk/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]>;

trunk/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 {

trunk/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]>;

trunk/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,

trunk/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,

trunk/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 {

trunk/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

trunk/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];

trunk/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; }

trunk/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

trunk/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 {

trunk/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 {

trunk/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;

trunk/src/test/bench/shootout-pfib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313
use std;
1414

15-
import std::{time, getopts};
16-
import io::WriterUtil;
17-
import int::range;
18-
import pipes::Port;
19-
import pipes::Chan;
20-
import pipes::send;
21-
import pipes::recv;
22-
23-
import core::result;
24-
import result::{Ok, Err};
15+
use std::{time, getopts};
16+
use io::WriterUtil;
17+
use int::range;
18+
use pipes::Port;
19+
use pipes::Chan;
20+
use pipes::send;
21+
use pipes::recv;
22+
23+
use core::result;
24+
use result::{Ok, Err};
2525

2626
fn fib(n: int) -> int {
2727
fn pfib(c: Chan<int>, n: int) {

0 commit comments

Comments
 (0)