Skip to content

Commit 7fcc9a4

Browse files
committed
---
yaml --- r: 60639 b: refs/heads/auto c: 1be40be h: refs/heads/master i: 60637: 26db4e2 60635: 59d288e 60631: 797689d 60623: fda5b6f 60607: ac989bd v: v3
1 parent 328959a commit 7fcc9a4

File tree

273 files changed

+566
-566
lines changed

Some content is hidden

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

273 files changed

+566
-566
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: c10e0cb9c984ece484a5c8c9c4c20369e2be499b
17+
refs/heads/auto: 1be40be613177d4849f42da284a3af74e1d58da2
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

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

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

11-
use core::comm::*;
11+
use std::comm::*;
1212

1313
pub fn foo<T:Owned + Copy>(x: T) -> Port<T> {
1414
let (p, c) = stream();

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

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

11-
use core::to_str::*;
11+
use std::to_str::*;
1212

1313
pub mod kitty {
1414
pub struct cat {

branches/auto/src/test/auxiliary/issue-2526.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
uuid = "54cc1bc9-02b8-447c-a227-75ebc923bc29")];
1414
#[crate_type = "lib"];
1515

16-
extern mod std;
16+
extern mod extra;
1717

1818
struct arc_destruct<T> {
1919
_data: int,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
#[link(name = "req")];
1212
#[crate_type = "lib"];
1313

14-
extern mod std;
14+
extern mod extra;
1515

16-
use core::hashmap::HashMap;
16+
use std::hashmap::HashMap;
1717

1818
pub type header_map = HashMap<~str, @mut ~[@~str]>;
1919

branches/auto/src/test/auxiliary/trait_inheritance_overloading_xc.rs

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

11-
use core::cmp::Eq;
11+
use std::cmp::Eq;
1212

1313
pub trait MyNum : Add<Self,Self> + Sub<Self,Self> + Mul<Self,Self> + Eq {
1414
}

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

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

11-
extern mod std;
11+
extern mod extra;
1212

13-
use core::io;
14-
use std::time;
15-
use std::treemap::TreeMap;
16-
use core::hashmap::{HashMap, HashSet};
17-
use core::trie::TrieMap;
18-
use core::rand::Rng;
13+
use std::io;
14+
use extra::time;
15+
use extra::treemap::TreeMap;
16+
use std::hashmap::{HashMap, HashSet};
17+
use std::trie::TrieMap;
18+
use std::rand::Rng;
1919

2020
fn timed(label: &str, f: &fn()) {
2121
let start = time::precise_time_s();
@@ -103,7 +103,7 @@ fn main() {
103103
let mut rand = vec::with_capacity(n_keys);
104104

105105
{
106-
let mut rng = core::rand::IsaacRng::new_seeded([1, 1, 1, 1, 1, 1, 1]);
106+
let mut rng = std::rand::IsaacRng::new_seeded([1, 1, 1, 1, 1, 1, 1]);
107107
let mut set = HashSet::new();
108108
while set.len() != n_keys {
109109
let next = rng.next() as uint;

branches/auto/src/test/bench/core-set.rs

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

11-
extern mod std;
12-
use core::hashmap::HashSet;
13-
use std::bitv::BitvSet;
14-
use std::treemap::TreeSet;
11+
extern mod extra;
12+
use std::hashmap::HashSet;
13+
use extra::bitv::BitvSet;
14+
use extra::treemap::TreeSet;
1515

1616
struct Results {
1717
sequential_ints: float,
@@ -24,9 +24,9 @@ struct Results {
2424
}
2525

2626
fn timed(result: &mut float, op: &fn()) {
27-
let start = std::time::precise_time_s();
27+
let start = extra::time::precise_time_s();
2828
op();
29-
let end = std::time::precise_time_s();
29+
let end = extra::time::precise_time_s();
3030
*result = (end - start);
3131
}
3232

@@ -168,21 +168,21 @@ fn main() {
168168
let mut results = empty_results();
169169
results.bench_int(&mut rng, num_keys, max, || HashSet::new::<uint>());
170170
results.bench_str(&mut rng, num_keys, || HashSet::new::<~str>());
171-
write_results("core::hashmap::HashSet", &results);
171+
write_results("std::hashmap::HashSet", &results);
172172
}
173173

174174
{
175175
let mut rng = rand::IsaacRng::new_seeded(seed);
176176
let mut results = empty_results();
177177
results.bench_int(&mut rng, num_keys, max, || TreeSet::new::<uint>());
178178
results.bench_str(&mut rng, num_keys, || TreeSet::new::<~str>());
179-
write_results("std::treemap::TreeSet", &results);
179+
write_results("extra::treemap::TreeSet", &results);
180180
}
181181

182182
{
183183
let mut rng = rand::IsaacRng::new_seeded(seed);
184184
let mut results = empty_results();
185185
results.bench_int(&mut rng, num_keys, max, || BitvSet::new());
186-
write_results("std::bitv::BitvSet", &results);
186+
write_results("extra::bitv::BitvSet", &results);
187187
}
188188
}

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

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

11-
// Microbenchmarks for various functions in core and std
11+
// Microbenchmarks for various functions in std and extra
1212

13-
extern mod std;
13+
extern mod extra;
1414

15-
use std::time::precise_time_s;
16-
use core::rand::RngUtil;
17-
use core::util;
15+
use extra::time::precise_time_s;
16+
use std::rand::RngUtil;
17+
use std::util;
1818

1919
macro_rules! bench (
2020
($id:ident) => (maybe_run_test(argv, stringify!($id).to_owned(), $id))

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ An implementation of the Graph500 Breadth First Search problem in Rust.
1616
1717
*/
1818

19-
extern mod std;
20-
use std::arc;
21-
use std::time;
22-
use std::deque::Deque;
23-
use std::par;
24-
use core::hashmap::HashSet;
25-
use core::int::abs;
26-
use core::rand::RngUtil;
19+
extern mod extra;
20+
use extra::arc;
21+
use extra::time;
22+
use extra::deque::Deque;
23+
use extra::par;
24+
use std::hashmap::HashSet;
25+
use std::int::abs;
26+
use std::rand::RngUtil;
2727

2828
type node_id = i64;
2929
type graph = ~[~[node_id]];

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
// different scalability characteristics compared to the select
1919
// version.
2020

21-
extern mod std;
22-
use core::io::Writer;
23-
use core::io::WriterUtil;
21+
extern mod extra;
22+
use std::io::Writer;
23+
use std::io::WriterUtil;
2424

25-
use core::comm::{Port, Chan, SharedChan};
25+
use std::comm::{Port, Chan, SharedChan};
2626

2727
macro_rules! move_out (
2828
{ $x:expr } => { unsafe { let y = *ptr::to_unsafe_ptr(&($x)); y } }
@@ -61,7 +61,7 @@ fn run(args: &[~str]) {
6161
let size = uint::from_str(args[1]).get();
6262
let workers = uint::from_str(args[2]).get();
6363
let num_bytes = 100;
64-
let start = std::time::precise_time_s();
64+
let start = extra::time::precise_time_s();
6565
let mut worker_results = ~[];
6666
for uint::range(0, workers) |_i| {
6767
let to_child = to_child.clone();
@@ -87,7 +87,7 @@ fn run(args: &[~str]) {
8787
to_child.send(stop);
8888
move_out!(to_child);
8989
let result = from_child.recv();
90-
let end = std::time::precise_time_s();
90+
let end = extra::time::precise_time_s();
9191
let elapsed = end - start;
9292
io::stdout().write_str(fmt!("Count is %?\n", result));
9393
io::stdout().write_str(fmt!("Test took %? seconds\n", elapsed));

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
//
1515
// I *think* it's the same, more or less.
1616

17-
extern mod std;
18-
use core::io::Writer;
19-
use core::io::WriterUtil;
17+
extern mod extra;
18+
use std::io::Writer;
19+
use std::io::WriterUtil;
2020

21-
use core::comm::{Port, PortSet, Chan, stream};
21+
use std::comm::{Port, PortSet, Chan, stream};
2222

2323
macro_rules! move_out (
2424
{ $x:expr } => { unsafe { let y = *ptr::to_unsafe_ptr(&($x)); y } }
@@ -57,7 +57,7 @@ fn run(args: &[~str]) {
5757
let size = uint::from_str(args[1]).get();
5858
let workers = uint::from_str(args[2]).get();
5959
let num_bytes = 100;
60-
let start = std::time::precise_time_s();
60+
let start = extra::time::precise_time_s();
6161
let mut worker_results = ~[];
6262
for uint::range(0, workers) |_i| {
6363
let (from_parent_, to_child) = stream();
@@ -84,7 +84,7 @@ fn run(args: &[~str]) {
8484
to_child.send(stop);
8585
move_out!(to_child);
8686
let result = from_child.recv();
87-
let end = std::time::precise_time_s();
87+
let end = extra::time::precise_time_s();
8888
let elapsed = end - start;
8989
io::stdout().write_str(fmt!("Count is %?\n", result));
9090
io::stdout().write_str(fmt!("Test took %? seconds\n", elapsed));

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
// This also serves as a pipes test, because ARCs are implemented with pipes.
1717

18-
extern mod std;
19-
use std::time;
20-
use std::arc;
21-
use std::future;
22-
use core::cell::Cell;
18+
extern mod extra;
19+
use extra::time;
20+
use extra::arc;
21+
use extra::future;
22+
use std::cell::Cell;
2323

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

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
// This version uses automatically compiled channel contracts.
1818

19-
extern mod std;
19+
extern mod extra;
2020

21-
use core::cell::Cell;
22-
use core::pipes::recv;
23-
use core::util;
24-
use std::time;
25-
use std::future;
21+
use std::cell::Cell;
22+
use std::pipes::recv;
23+
use std::util;
24+
use extra::time;
25+
use extra::future;
2626

2727
proto! ring (
2828
num:send {

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515

1616
// This also serves as a pipes test, because ARCs are implemented with pipes.
1717

18-
extern mod std;
18+
extern mod extra;
1919

20-
use core::cell::Cell;
21-
use std::time;
22-
use std::arc;
23-
use std::future;
20+
use std::cell::Cell;
21+
use extra::time;
22+
use extra::arc;
23+
use extra::future;
2424

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

branches/auto/src/test/bench/noise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Perlin noise benchmark from https://gist.github.com/1170424
22

3-
use core::rand::{Rng, RngUtil};
3+
use std::rand::{Rng, RngUtil};
44

55
struct Vec2 {
66
x: f32,

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

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

1313
// xfail-pretty
1414

15-
extern mod std;
15+
extern mod extra;
1616

17-
use core::cell::Cell;
18-
use core::pipes::*;
19-
use std::time::precise_time_s;
17+
use std::cell::Cell;
18+
use std::pipes::*;
19+
use extra::time::precise_time_s;
2020

2121
proto! pingpong (
2222
ping: send {
@@ -117,10 +117,10 @@ pub fn spawn_service_recv<T:Owned,Tb:Owned>(
117117
client
118118
}
119119

120-
fn switch<T:Owned,Tb:Owned,U>(endp: core::pipes::RecvPacketBuffered<T, Tb>,
120+
fn switch<T:Owned,Tb:Owned,U>(endp: std::pipes::RecvPacketBuffered<T, Tb>,
121121
f: &fn(v: Option<T>) -> U)
122122
-> U {
123-
f(core::pipes::try_recv(endp))
123+
f(std::pipes::try_recv(endp))
124124
}
125125

126126
// Here's the benchmark

branches/auto/src/test/bench/shootout-ackermann.rs

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

11-
extern mod std;
11+
extern mod extra;
1212

1313
fn ack(m: int, n: int) -> int {
1414
if m == 0 {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// option. This file may not be copied, modified, or distributed
1313
// except according to those terms.
1414

15-
extern mod std;
16-
use std::arena;
15+
extern mod extra;
16+
use extra::arena;
1717

1818
enum tree<'self> {
1919
nil,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
// chameneos
1212

13-
extern mod std;
14-
use std::sort;
15-
use core::cell::Cell;
16-
use core::comm::*;
13+
extern mod extra;
14+
use extra::sort;
15+
use std::cell::Cell;
16+
use std::comm::*;
1717

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

branches/auto/src/test/bench/shootout-fannkuch-redux.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use core::from_str::FromStr;
2-
use core::i32::range;
3-
use core::vec::MutableVector;
1+
use std::from_str::FromStr;
2+
use std::i32::range;
3+
use std::vec::MutableVector;
44

55
fn max(a: i32, b: i32) -> i32 {
66
if a > b {

branches/auto/src/test/bench/shootout-fasta-redux.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use core::cast::transmute;
2-
use core::from_str::FromStr;
3-
use core::libc::{FILE, STDOUT_FILENO, c_int, fdopen, fputc, fputs, fwrite, size_t};
4-
use core::uint::{min, range};
5-
use core::vec::bytes::copy_memory;
1+
use std::cast::transmute;
2+
use std::from_str::FromStr;
3+
use std::libc::{FILE, STDOUT_FILENO, c_int, fdopen, fputc, fputs, fwrite, size_t};
4+
use std::uint::{min, range};
5+
use std::vec::bytes::copy_memory;
66

77
static LINE_LEN: uint = 60;
88
static LOOKUP_SIZE: uint = 4 * 1024;

0 commit comments

Comments
 (0)