Skip to content

Commit 90e7654

Browse files
committed
---
yaml --- r: 39604 b: refs/heads/incoming c: a51661e h: refs/heads/master v: v3
1 parent db5c655 commit 90e7654

File tree

266 files changed

+834
-2539
lines changed

Some content is hidden

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

266 files changed

+834
-2539
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: 57c599914a19861686030b238a0edc7ebb996068
9+
refs/heads/incoming: a51661e8c1d62f88a5b6f368f397fa6b33785973
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/driver/driver.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
extern mod core(vers = "0.6");
1313

1414
#[cfg(cargo)]
15-
extern mod this(name = "cargo", vers = "0.6");
15+
extern mod self(name = "cargo", vers = "0.6");
1616

1717
#[cfg(fuzzer)]
18-
extern mod this(name = "fuzzer", vers = "0.6");
18+
extern mod self(name = "fuzzer", vers = "0.6");
1919

2020
#[cfg(rustdoc)]
21-
extern mod this(name = "rustdoc", vers = "0.6");
21+
extern mod self(name = "rustdoc", vers = "0.6");
2222

2323
#[cfg(rusti)]
24-
extern mod this(name = "rusti", vers = "0.6");
24+
extern mod self(name = "rusti", vers = "0.6");
2525

2626
#[cfg(rustc)]
27-
extern mod this(name = "rustc", vers = "0.6");
27+
extern mod self(name = "rustc", vers = "0.6");
2828

29-
fn main() { this::main() }
29+
fn main() { self::main() }

branches/incoming/src/libcargo/pgp.rs

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

11-
use core::os;
12-
use core::run;
13-
1411
fn gpgv(args: ~[~str]) -> { status: int, out: ~str, err: ~str } {
1512
return run::program_output(~"gpgv", args);
1613
}

branches/incoming/src/libcore/at_vec.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,21 @@
1515
#[forbid(deprecated_pattern)];
1616

1717
use cast::transmute;
18-
use iter;
19-
use libc;
2018
use ptr::addr_of;
21-
use sys;
22-
use uint;
23-
use vec;
2419

2520
/// Code for dealing with @-vectors. This is pretty incomplete, and
2621
/// contains a bunch of duplication from the code for ~-vectors.
2722
2823
#[abi = "cdecl"]
29-
pub extern mod rustrt {
24+
extern mod rustrt {
3025
#[legacy_exports];
3126
fn vec_reserve_shared_actual(++t: *sys::TypeDesc,
3227
++v: **vec::raw::VecRepr,
3328
++n: libc::size_t);
3429
}
3530

3631
#[abi = "rust-intrinsic"]
37-
pub extern mod rusti {
32+
extern mod rusti {
3833
#[legacy_exports];
3934
fn move_val_init<T>(dst: &mut T, -src: T);
4035
}
@@ -162,13 +157,6 @@ pub mod traits {
162157
pub mod traits {}
163158

164159
pub mod raw {
165-
use at_vec::{rusti, rustrt};
166-
use libc;
167-
use ptr;
168-
use sys;
169-
use uint;
170-
use vec;
171-
172160
pub type VecRepr = vec::raw::VecRepr;
173161
pub type SliceRepr = vec::raw::SliceRepr;
174162

branches/incoming/src/libcore/bool.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
//! Boolean logic
1818
19-
use cmp;
2019
use cmp::Eq;
2120

2221
/// Negation / inverse

branches/incoming/src/libcore/char.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
#[forbid(deprecated_pattern)];
1616

1717
use cmp::Eq;
18-
use str;
19-
use u32;
20-
use uint;
21-
use unicode;
2218

2319
/*
2420
Lu Uppercase_Letter an uppercase letter

branches/incoming/src/libcore/condition.rs

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

11-
use task;
12-
1311
// helper for transmutation, shown below.
1412
type RustClosure = (int,int);
1513
pub struct Handler<T, U> {

branches/incoming/src/libcore/core.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ mod stackwalk;
235235
// 'core' so that macro-expanded references to core::error and such
236236
// can be resolved within libcore.
237237
#[doc(hidden)] // FIXME #3538
238-
pub mod core {
238+
mod core {
239239
pub const error : u32 = 1_u32;
240240
pub const warn : u32 = 2_u32;
241241
pub const info : u32 = 3_u32;

branches/incoming/src/libcore/dlist.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ Do not use ==, !=, <, etc on doubly-linked lists -- it may not terminate.
2222
#[forbid(deprecated_mode)];
2323
#[forbid(deprecated_pattern)];
2424

25-
use managed;
26-
use option;
27-
use vec;
28-
2925
type DListLink<T> = Option<DListNode<T>>;
3026

3127
enum DListNode<T> = @{

branches/incoming/src/libcore/dvec.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ Note that recursive use is not permitted.
2323
#[forbid(deprecated_mode)];
2424
#[forbid(deprecated_pattern)];
2525

26-
use cast;
2726
use cast::reinterpret_cast;
2827
use ptr::null;
29-
use vec;
3028

3129
/**
3230
* A growable, modifiable vector type that accumulates elements into a

branches/incoming/src/libcore/either.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@
1414

1515
//! A type that represents one of two alternatives
1616
17-
use cmp;
1817
use cmp::Eq;
19-
use result;
2018
use result::Result;
21-
use vec;
2219

2320
/// The either type
2421
#[deriving_eq]

branches/incoming/src/libcore/extfmt.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ debug!("hello, %s!", "world");
8282

8383
use cmp::Eq;
8484
use option::{Some, None};
85-
use str;
85+
8686

8787
/*
8888
* We have a 'ct' (compile-time) module that parses format strings into a
@@ -98,10 +98,6 @@ use str;
9898
// Functions used by the fmt extension at compile time
9999
#[doc(hidden)]
100100
pub mod ct {
101-
use char;
102-
use str;
103-
use vec;
104-
105101
pub enum Signedness { Signed, Unsigned, }
106102
pub enum Caseness { CaseUpper, CaseLower, }
107103
pub enum Ty {
@@ -336,12 +332,6 @@ pub mod ct {
336332
// implement it 0this way, I think.
337333
#[doc(hidden)]
338334
pub mod rt {
339-
use float;
340-
use str;
341-
use sys;
342-
use uint;
343-
use vec;
344-
345335
pub const flag_none : u32 = 0u32;
346336
pub const flag_left_justify : u32 = 0b00000000000001u32;
347337
pub const flag_left_zero_pad : u32 = 0b00000000000010u32;

branches/incoming/src/libcore/f32.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
//! Operations and constants for `f32`
1616
17-
use cmp;
18-
use num;
19-
2017
pub use cmath::c_float_utils::*;
2118
pub use cmath::c_float_targ_consts::*;
2219

branches/incoming/src/libcore/f64.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414

1515
//! Operations and constants for `f64`
1616
17-
use cmath;
18-
use cmp;
19-
use libc;
20-
use num;
21-
2217
pub use cmath::c_double_utils::*;
2318
pub use cmath::c_double_targ_consts::*;
2419

branches/incoming/src/libcore/flate.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ Simple compression
1818
#[forbid(deprecated_mode)];
1919
#[forbid(deprecated_pattern)];
2020

21-
use libc;
2221
use libc::{c_void, size_t, c_int};
23-
use ptr;
24-
use vec;
2522

2623
extern mod rustrt {
2724
fn tdefl_compress_mem_to_heap(psrc_buf: *const c_void,

branches/incoming/src/libcore/float.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@
2626

2727
use m_float = f64;
2828

29-
use cmp::{Eq, Ord};
30-
use f64;
31-
use num;
32-
use num::Num::from_int;
33-
use str;
34-
use uint;
35-
3629
pub use f64::{add, sub, mul, div, rem, lt, le, eq, ne, ge, gt};
3730
pub use f64::logarithm;
3831
pub use f64::{acos, asin, atan2, cbrt, ceil, copysign, cosh, floor};
@@ -42,6 +35,8 @@ pub use f64::{lgamma, ln, log_radix, ln1p, log10, log2, ilog_radix};
4235
pub use f64::{modf, pow, round, sinh, tanh, tgamma, trunc};
4336
pub use f64::signbit;
4437
pub use f64::{j0, j1, jn, y0, y1, yn};
38+
use cmp::{Eq, Ord};
39+
use num::Num::from_int;
4540

4641
pub const NaN: float = 0.0/0.0;
4742

branches/incoming/src/libcore/gc.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,10 @@ with destructors.
3939
#[forbid(deprecated_mode)];
4040
#[forbid(deprecated_pattern)];
4141

42-
use cast;
43-
use io;
44-
use libc::{size_t, uintptr_t};
45-
use ptr;
46-
use send_map::linear::LinearMap;
47-
use stackwalk;
48-
use sys;
49-
5042
pub use stackwalk::Word;
43+
use libc::size_t;
44+
use libc::uintptr_t;
45+
use send_map::linear::LinearMap;
5146

5247
// Mirrors rust_stack.h stk_seg
5348
struct StackSegment {

branches/incoming/src/libcore/hash.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@
2323
* CPRNG like rand::rng.
2424
*/
2525

26-
use io;
27-
use io::{Writer, WriterUtil};
28-
use os;
26+
use io::Writer;
27+
use io::WriterUtil;
2928
use to_bytes::IterBytes;
30-
use uint;
31-
use vec;
3229

3330
/**
3431
* Types that can meaningfully be hashed should implement this.

branches/incoming/src/libcore/int-template.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@
1414

1515
use T = self::inst::T;
1616

17-
use char;
1817
use cmp::{Eq, Ord};
1918
use from_str::FromStr;
20-
use iter;
21-
use num;
2219
use num::Num::from_int;
23-
use str;
24-
use uint;
25-
use vec;
2620

2721
pub const bits : uint = inst::bits;
2822
pub const bytes : uint = (inst::bits / 8);

branches/incoming/src/libcore/int-template/i16.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
1313
mod inst {
1414
pub type T = i16;
15-
pub const bits: uint = ::u16::bits;
16-
}
15+
pub const bits: uint = u16::bits;
16+
}

branches/incoming/src/libcore/int-template/i32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
1313
mod inst {
1414
pub type T = i32;
15-
pub const bits: uint = ::u32::bits;
15+
pub const bits: uint = u32::bits;
1616
}

branches/incoming/src/libcore/int-template/i64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
1313
mod inst {
1414
pub type T = i64;
15-
pub const bits: uint = ::u64::bits;
16-
}
15+
pub const bits: uint = u64::bits;
16+
}

branches/incoming/src/libcore/int-template/i8.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
1313
mod inst {
1414
pub type T = i8;
15-
pub const bits: uint = ::u8::bits;
16-
}
15+
pub const bits: uint = u8::bits;
16+
}

branches/incoming/src/libcore/int-template/int.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub use self::inst::pow;
1414

1515
mod inst {
1616
pub type T = int;
17-
pub const bits: uint = ::uint::bits;
17+
pub const bits: uint = uint::bits;
1818

1919
/// Returns `base` raised to the power of `exponent`
2020
pub pure fn pow(base: int, exponent: uint) -> int {

branches/incoming/src/libcore/io.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,9 @@ use result::Result;
2121

2222
use cmp::Eq;
2323
use dvec::DVec;
24-
use int;
25-
use libc;
2624
use libc::{c_int, c_long, c_uint, c_void, size_t, ssize_t};
2725
use libc::consts::os::posix88::*;
2826
use libc::consts::os::extra::*;
29-
use option;
30-
use os;
31-
use ptr;
32-
use result;
33-
use str;
34-
use uint;
35-
use vec;
3627

3728
#[allow(non_camel_case_types)] // not sure what to do about this
3829
type fd_t = c_int;
@@ -1028,9 +1019,6 @@ pub fn read_whole_file(file: &Path) -> Result<~[u8], ~str> {
10281019
// fsync related
10291020

10301021
pub mod fsync {
1031-
use libc;
1032-
use option;
1033-
use os;
10341022

10351023
pub enum Level {
10361024
// whatever fsync does on that platform

branches/incoming/src/libcore/iter-trait.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#[forbid(deprecated_pattern)];
1717

1818
use cmp::{Eq, Ord};
19-
use iter;
2019

2120
use self::inst::{IMPL_T, EACH, SIZE_HINT};
2221

branches/incoming/src/libcore/iter-trait/dlist.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
// except according to those terms.
1010

1111
mod inst {
12-
use dlist;
13-
use managed;
14-
use option;
15-
1612
#[allow(non_camel_case_types)]
1713
pub type IMPL_T<A> = dlist::DList<A>;
1814

@@ -49,4 +45,4 @@ mod inst {
4945
pub pure fn SIZE_HINT<A>(self: &IMPL_T<A>) -> Option<uint> {
5046
Some(self.len())
5147
}
52-
}
48+
}

0 commit comments

Comments
 (0)