Skip to content

Commit a70ee76

Browse files
garethgareth
authored andcommitted
---
yaml --- r: 63916 b: refs/heads/snap-stage3 c: 3100483 h: refs/heads/master v: v3
1 parent c0929c9 commit a70ee76

File tree

231 files changed

+1525
-1733
lines changed

Some content is hidden

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

231 files changed

+1525
-1733
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: 4a29d6eb3f20c2b7a05bb9c9c2f964da606e39ca
4+
refs/heads/snap-stage3: 31004835e22de0385b2c8ed59ac66be1042c6527
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/etc/ctags.rust

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
--regex-rust=/[ \t]*static[ \t]+([a-zA-Z0-9_]+)/\1/m,consts/
99
--regex-rust=/[ \t]*trait[ \t]+([a-zA-Z0-9_]+)/\1/m,traits/
1010
--regex-rust=/[ \t]*impl[ \t]+([a-zA-Z0-9_]+)/\1/m,impls/
11+
--regex-rust=/[ \t]*macro_rules![ \t]+([a-zA-Z0-9_]+)/\1/m,macros/

branches/snap-stage3/src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ hi def link rustConditional Conditional
143143
hi def link rustIdentifier Identifier
144144
hi def link rustModPath Include
145145
hi def link rustFuncName Function
146+
hi def link rustFuncCall Function
146147
hi def link rustCommentDoc SpecialComment
147148
hi def link rustComment Comment
148149
hi def link rustMacro Macro

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,14 @@
3939

4040
#[allow(missing_doc)];
4141

42-
use core::prelude::*;
4342

4443
use sync;
4544
use sync::{Mutex, mutex_with_condvars, RWlock, rwlock_with_condvars};
4645

47-
use core::cast;
48-
use core::unstable::sync::UnsafeAtomicRcBox;
49-
use core::task;
50-
use core::borrow;
46+
use std::cast;
47+
use std::unstable::sync::UnsafeAtomicRcBox;
48+
use std::task;
49+
use std::borrow;
5150

5251
/// As sync::condvar, a mechanism for unlock-and-descheduling and signaling.
5352
pub struct Condvar<'self> {
@@ -514,14 +513,13 @@ impl<'self, T:Freeze + Send> RWReadMode<'self, T> {
514513

515514
#[cfg(test)]
516515
mod tests {
517-
use core::prelude::*;
518516

519517
use arc::*;
520518

521-
use core::cell::Cell;
522-
use core::comm;
523-
use core::task;
524-
use core::uint;
519+
use std::cell::Cell;
520+
use std::comm;
521+
use std::task;
522+
use std::uint;
525523

526524
#[test]
527525
fn manually_share_arc() {

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

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,21 @@
3434

3535
#[allow(missing_doc)];
3636

37-
use core::prelude::*;
3837

3938
use list::{MutList, MutCons, MutNil};
4039

41-
use core::at_vec;
42-
use core::cast::{transmute, transmute_mut, transmute_mut_region};
43-
use core::cast;
44-
use core::ptr;
45-
use core::sys;
46-
use core::uint;
47-
use core::vec;
48-
use core::unstable::intrinsics;
49-
use core::unstable::intrinsics::{TyDesc};
40+
use std::at_vec;
41+
use std::cast::{transmute, transmute_mut, transmute_mut_region};
42+
use std::cast;
43+
use std::ptr;
44+
use std::sys;
45+
use std::uint;
46+
use std::vec;
47+
use std::unstable::intrinsics;
48+
use std::unstable::intrinsics::{TyDesc};
5049

5150
#[cfg(not(stage0))]
52-
use core::unstable::intrinsics::{get_tydesc};
51+
use std::unstable::intrinsics::{get_tydesc};
5352

5453
#[cfg(stage0)]
5554
unsafe fn get_tydesc<T>() -> *TyDesc {

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

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

1111
//! Base64 binary-to-text encoding
1212
13-
use core::prelude::*;
1413

15-
use core::vec;
14+
use std::vec;
1615

1716
/// A trait for converting a value to base64 encoding.
1817
pub trait ToBase64 {
@@ -199,7 +198,7 @@ impl<'self> FromBase64 for &'self str {
199198
* Convert any base64 encoded string (literal, `@`, `&`, or `~`)
200199
* to the byte values it encodes.
201200
*
202-
* You can use the `from_bytes` function in `core::str`
201+
* You can use the `from_bytes` function in `std::str`
203202
* to turn a `[u8]` into a string with characters corresponding to those values.
204203
*
205204
* # Example
@@ -210,7 +209,7 @@ impl<'self> FromBase64 for &'self str {
210209
* extern mod extra;
211210
* use extra::base64::ToBase64;
212211
* use extra::base64::FromBase64;
213-
* use core::str;
212+
* use std::str;
214213
*
215214
* fn main () {
216215
* let hello_str = "Hello, World".to_base64();

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

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

1111
#[allow(missing_doc)];
1212

13-
use core::prelude::*;
1413

15-
use core::cmp;
16-
use core::ops;
17-
use core::uint;
18-
use core::vec;
14+
use std::cmp;
15+
use std::ops;
16+
use std::uint;
17+
use std::vec;
1918

2019
struct SmallBitv {
2120
/// only the lowest nbits of this value are used. the rest is undefined.
@@ -863,15 +862,15 @@ impl BitvSet {
863862

864863
#[cfg(test)]
865864
mod tests {
866-
use std::test::BenchHarness;
865+
use extra::test::BenchHarness;
867866

868867
use bitv::*;
869868
use bitv;
870869

871-
use core::uint;
872-
use core::vec;
873-
use core::rand;
874-
use core::rand::Rng;
870+
use std::uint;
871+
use std::vec;
872+
use std::rand;
873+
use std::rand::Rng;
875874

876875
static bench_bits : uint = 1 << 14;
877876

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@
3636
* still held if needed.
3737
*/
3838

39-
use core::prelude::*;
4039

41-
use core::option;
42-
use core::ptr;
40+
use std::option;
41+
use std::ptr;
4342

4443
/**
4544
* The type representing a foreign chunk of memory
@@ -150,8 +149,8 @@ mod tests {
150149

151150
use c_vec::*;
152151

153-
use core::libc::*;
154-
use core::libc;
152+
use std::libc::*;
153+
use std::libc;
155154

156155
fn malloc(n: size_t) -> CVec<u8> {
157156
unsafe {

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ Higher level communication abstractions.
1616

1717
#[allow(missing_doc)];
1818

19-
use core::prelude::*;
2019

21-
use core::comm::{GenericChan, GenericSmartChan, GenericPort};
22-
use core::comm::{Chan, Port, Selectable, Peekable};
23-
use core::comm;
24-
use core::pipes;
20+
use std::comm::{GenericChan, GenericSmartChan, GenericPort};
21+
use std::comm::{Chan, Port, Selectable, Peekable};
22+
use std::comm;
23+
use std::pipes;
2524

2625
/// An extension of `pipes::stream` that allows both sending and receiving.
2726
pub struct DuplexStream<T, U> {

branches/snap-stage3/src/libextra/crypto/digest.rs

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

11-
use core::prelude::*;
1211

13-
use core::uint;
14-
use core::vec;
12+
use std::uint;
13+
use std::vec;
1514

1615
/**
1716
* The Digest trait specifies an interface common to digest functions, such as SHA-1 and the SHA-2

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* the `reset` method.
2323
*/
2424

25-
use core::prelude::*;
2625

2726
use digest::Digest;
2827

@@ -241,7 +240,7 @@ impl Digest for Sha1 {
241240

242241
#[cfg(test)]
243242
mod tests {
244-
use core::vec;
243+
use std::vec;
245244

246245
use digest::{Digest, DigestUtil};
247246
use sha1::Sha1;

branches/snap-stage3/src/libextra/crypto/sha2.rs

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

11-
use core::prelude::*;
1211

13-
use core::uint;
12+
use std::uint;
1413

1514
use digest::Digest;
1615

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
1313
#[allow(missing_doc)];
1414

15-
use core::cast::transmute;
15+
use std::cast::transmute;
1616
#[cfg(stage0)]
1717
use intrinsic::{get_tydesc};
1818
#[cfg(not(stage0))]
19-
use core::unstable::intrinsics::{get_tydesc};
19+
use std::unstable::intrinsics::{get_tydesc};
2020

2121
pub mod rustrt {
2222
#[cfg(stage0)]
2323
use intrinsic::{TyDesc};
2424
#[cfg(not(stage0))]
25-
use core::unstable::intrinsics::{TyDesc};
25+
use std::unstable::intrinsics::{TyDesc};
2626

2727
#[abi = "cdecl"]
2828
pub extern {

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
// except according to those terms.
1010

1111
//! A double-ended queue implemented as a circular buffer
12-
use core::prelude::*;
1312
14-
use core::uint;
15-
use core::util::replace;
16-
use core::vec;
17-
use core::cast::transmute;
13+
use std::uint;
14+
use std::util::replace;
15+
use std::vec;
16+
use std::cast::transmute;
1817

1918
static initial_capacity: uint = 32u; // 2^5
2019

@@ -254,9 +253,9 @@ fn get<'r, T>(elts: &'r [Option<T>], i: uint) -> &'r T {
254253
#[cfg(test)]
255254
mod tests {
256255
use super::*;
257-
use core::cmp::Eq;
258-
use core::kinds::Copy;
259-
use core;
256+
use std::cmp::Eq;
257+
use std::kinds::Copy;
258+
use std::int;
260259

261260
#[test]
262261
fn test_simple() {
@@ -463,12 +462,12 @@ mod tests {
463462
#[test]
464463
fn test_iter() {
465464
let mut d = Deque::new();
466-
for core::int::range(0,5) |i| {
465+
for int::range(0,5) |i| {
467466
d.add_back(i);
468467
}
469468
assert_eq!(d.iter().collect::<~[&int]>(), ~[&0,&1,&2,&3,&4]);
470469

471-
for core::int::range(6,9) |i| {
470+
for int::range(6,9) |i| {
472471
d.add_front(i);
473472
}
474473
assert_eq!(d.iter().collect::<~[&int]>(), ~[&8,&7,&6,&0,&1,&2,&3,&4]);
@@ -477,12 +476,12 @@ mod tests {
477476
#[test]
478477
fn test_rev_iter() {
479478
let mut d = Deque::new();
480-
for core::int::range(0,5) |i| {
479+
for int::range(0,5) |i| {
481480
d.add_back(i);
482481
}
483482
assert_eq!(d.rev_iter().collect::<~[&int]>(), ~[&4,&3,&2,&1,&0]);
484483

485-
for core::int::range(6,9) |i| {
484+
for int::range(6,9) |i| {
486485
d.add_front(i);
487486
}
488487
assert_eq!(d.rev_iter().collect::<~[&int]>(), ~[&4,&3,&2,&1,&0,&6,&7,&8]);

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ Do not use ==, !=, <, etc on doubly-linked lists -- it may not terminate.
1818
1919
*/
2020

21-
use core::prelude::*;
2221

23-
use core::managed;
22+
use std::managed;
2423

2524
pub type DListLink<T> = Option<@mut DListNode<T>>;
2625

@@ -522,7 +521,6 @@ impl<T:Copy> DList<T> {
522521

523522
#[cfg(test)]
524523
mod tests {
525-
use core::prelude::*;
526524

527525
use super::*;
528526

0 commit comments

Comments
 (0)