Skip to content

Commit d9f9519

Browse files
committed
---
yaml --- r: 66493 b: refs/heads/master c: 408eef0 h: refs/heads/master i: 66491: fa2c9e2 v: v3
1 parent 2e4eabc commit d9f9519

File tree

229 files changed

+1629
-1446
lines changed

Some content is hidden

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

229 files changed

+1629
-1446
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: ca835f482cebcd353db789e45f9cec72db1a24ed
2+
refs/heads/master: 408eef0d89f4520b5ede7e5868a8ca1bc83795bc
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/etc/ctags.rust

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@
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/

trunk/src/etc/vim/syntax/rust.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ 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
147146
hi def link rustCommentDoc SpecialComment
148147
hi def link rustComment Comment
149148
hi def link rustMacro Macro

trunk/src/libextra/arc.rs

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

4040
#[allow(missing_doc)];
4141

42+
use core::prelude::*;
4243

4344
use sync;
4445
use sync::{Mutex, mutex_with_condvars, RWlock, rwlock_with_condvars};
4546

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

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

514515
#[cfg(test)]
515516
mod tests {
517+
use core::prelude::*;
516518

517519
use arc::*;
518520

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

524526
#[test]
525527
fn manually_share_arc() {

trunk/src/libextra/arena.rs

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

3535
#[allow(missing_doc)];
3636

37+
use core::prelude::*;
3738

3839
use list::{MutList, MutCons, MutNil};
3940

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};
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};
4950

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

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

trunk/src/libextra/base64.rs

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

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

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

1617
/// A trait for converting a value to base64 encoding.
1718
pub trait ToBase64 {
@@ -198,7 +199,7 @@ impl<'self> FromBase64 for &'self str {
198199
* Convert any base64 encoded string (literal, `@`, `&`, or `~`)
199200
* to the byte values it encodes.
200201
*
201-
* You can use the `from_bytes` function in `std::str`
202+
* You can use the `from_bytes` function in `core::str`
202203
* to turn a `[u8]` into a string with characters corresponding to those values.
203204
*
204205
* # Example
@@ -209,7 +210,7 @@ impl<'self> FromBase64 for &'self str {
209210
* extern mod extra;
210211
* use extra::base64::ToBase64;
211212
* use extra::base64::FromBase64;
212-
* use std::str;
213+
* use core::str;
213214
*
214215
* fn main () {
215216
* let hello_str = "Hello, World".to_base64();

trunk/src/libextra/bitv.rs

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

1111
#[allow(missing_doc)];
1212

13+
use core::prelude::*;
1314

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

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

863864
#[cfg(test)]
864865
mod tests {
865-
use extra::test::BenchHarness;
866+
use std::test::BenchHarness;
866867

867868
use bitv::*;
868869
use bitv;
869870

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

875876
static bench_bits : uint = 1 << 14;
876877

trunk/src/libextra/c_vec.rs

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

39+
use core::prelude::*;
3940

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

4344
/**
4445
* The type representing a foreign chunk of memory
@@ -149,8 +150,8 @@ mod tests {
149150

150151
use c_vec::*;
151152

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

155156
fn malloc(n: size_t) -> CVec<u8> {
156157
unsafe {

trunk/src/libextra/comm.rs

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

1717
#[allow(missing_doc)];
1818

19+
use core::prelude::*;
1920

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

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

trunk/src/libextra/crypto/digest.rs

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

11+
use core::prelude::*;
1112

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

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

trunk/src/libextra/crypto/sha1.rs

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

25+
use core::prelude::*;
2526

2627
use digest::Digest;
2728

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

241242
#[cfg(test)]
242243
mod tests {
243-
use std::vec;
244+
use core::vec;
244245

245246
use digest::{Digest, DigestUtil};
246247
use sha1::Sha1;

trunk/src/libextra/crypto/sha2.rs

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

11+
use core::prelude::*;
1112

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

1415
use digest::Digest;
1516

trunk/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 std::cast::transmute;
15+
use core::cast::transmute;
1616
#[cfg(stage0)]
1717
use intrinsic::{get_tydesc};
1818
#[cfg(not(stage0))]
19-
use std::unstable::intrinsics::{get_tydesc};
19+
use core::unstable::intrinsics::{get_tydesc};
2020

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

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

trunk/src/libextra/deque.rs

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

1111
//! A double-ended queue implemented as a circular buffer
12+
use core::prelude::*;
1213

13-
use std::uint;
14-
use std::util::replace;
15-
use std::vec;
16-
use std::cast::transmute;
14+
use core::uint;
15+
use core::util::replace;
16+
use core::vec;
17+
use core::cast::transmute;
1718

1819
static initial_capacity: uint = 32u; // 2^5
1920

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

260261
#[test]
261262
fn test_simple() {
@@ -462,12 +463,12 @@ mod tests {
462463
#[test]
463464
fn test_iter() {
464465
let mut d = Deque::new();
465-
for int::range(0,5) |i| {
466+
for core::int::range(0,5) |i| {
466467
d.add_back(i);
467468
}
468469
assert_eq!(d.iter().collect::<~[&int]>(), ~[&0,&1,&2,&3,&4]);
469470

470-
for int::range(6,9) |i| {
471+
for core::int::range(6,9) |i| {
471472
d.add_front(i);
472473
}
473474
assert_eq!(d.iter().collect::<~[&int]>(), ~[&8,&7,&6,&0,&1,&2,&3,&4]);
@@ -476,12 +477,12 @@ mod tests {
476477
#[test]
477478
fn test_rev_iter() {
478479
let mut d = Deque::new();
479-
for int::range(0,5) |i| {
480+
for core::int::range(0,5) |i| {
480481
d.add_back(i);
481482
}
482483
assert_eq!(d.rev_iter().collect::<~[&int]>(), ~[&4,&3,&2,&1,&0]);
483484

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

trunk/src/libextra/dlist.rs

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

21+
use core::prelude::*;
2122

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

2425
pub type DListLink<T> = Option<@mut DListNode<T>>;
2526

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

522523
#[cfg(test)]
523524
mod tests {
525+
use core::prelude::*;
524526

525527
use super::*;
526528

0 commit comments

Comments
 (0)