Skip to content

Commit 6d71a3e

Browse files
committed
---
yaml --- r: 138701 b: refs/heads/try2 c: dfb5c10 h: refs/heads/master i: 138699: 9384333 v: v3
1 parent 9ab8c49 commit 6d71a3e

File tree

215 files changed

+20
-627
lines changed

Some content is hidden

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

215 files changed

+20
-627
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 55461d888f63e7113f1ea40e586e4917abe4815b
8+
refs/heads/try2: dfb5c10dea0dd7bc56950148fa23fd02a07706fa
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/compiletest/common.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
use core::prelude::*;
1212

13-
use cmp;
14-
1513
#[deriving_eq]
1614
pub enum mode {
1715
mode_compile_fail,

branches/try2/src/compiletest/compiletest.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ pub mod errors;
3232
use std::getopts;
3333
use std::test;
3434

35-
use core::{result, either};
3635
use core::result::{Ok, Err};
3736

3837
use common::config;

branches/try2/src/compiletest/errors.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
use core::prelude::*;
1212

13-
use common::config;
14-
1513
use core::io;
1614
use core::io::ReaderUtil;
1715
use core::str;

branches/try2/src/compiletest/procsrv.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@ use core::prelude::*;
1313
use core::io::{ReaderUtil, WriterUtil};
1414
use core::io;
1515
use core::libc::{c_int, pid_t};
16-
use core::libc;
1716
use core::os;
18-
use core::pipes;
1917
use core::run::spawn_process;
2018
use core::run;
2119
use core::str;
2220
use core::task;
23-
use core::vec;
2421

2522
#[cfg(target_os = "win32")]
2623
fn target_env(lib_path: ~str, prog: ~str) -> ~[(~str,~str)] {

branches/try2/src/compiletest/runtest.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010

1111
use core::prelude::*;
1212

13-
use common;
1413
use common::mode_run_pass;
1514
use common::mode_run_fail;
1615
use common::mode_compile_fail;
1716
use common::mode_pretty;
1817
use common::config;
1918
use errors;
20-
use header;
2119
use header::load_props;
2220
use header::TestProps;
2321
use procsrv;

branches/try2/src/compiletest/util.rs

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

1111
use core::prelude::*;
1212

13-
use common;
1413
use common::config;
1514

1615
use core::io;
1716
use core::os::getenv;
18-
use core::os;
1917

2018
pub fn make_new_path(path: ~str) -> ~str {
2119

branches/try2/src/libcore/bool.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
//! Boolean logic
1313
14-
use bool;
1514
use cmp;
16-
use cmp::Eq;
1715
use option::{None, Option, Some};
1816

1917
/// Negation / inverse

branches/try2/src/libcore/char.rs

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

1111
//! Utilities for manipulating the char type
1212
13-
use char;
1413
use cmp::Eq;
1514
use option::{None, Option, Some};
1615
use str;

branches/try2/src/libcore/dvec.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Note that recursive use is not permitted.
2020
*/
2121

2222
use cast;
23-
use cast::reinterpret_cast;
2423
use prelude::*;
2524
use ptr::null;
2625
use vec;

branches/try2/src/libcore/either.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//! A type that represents one of two alternatives
1212
1313
use cmp::Eq;
14-
use cmp;
1514
use kinds::Copy;
1615
use result::Result;
1716
use result;

branches/try2/src/libcore/flate.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Simple compression
1717
use libc;
1818
use libc::{c_void, size_t, c_int};
1919
use ptr;
20-
use rand;
2120
use vec;
2221

2322
extern mod rustrt {

branches/try2/src/libcore/hash.rs

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

2222
use io;
2323
use io::{Writer, WriterUtil};
24-
use os;
2524
use to_bytes::IterBytes;
2625
use uint;
2726
use vec;

branches/try2/src/libcore/hashmap.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@ pub mod linear {
1919
use iter::BaseIter;
2020
use hash::Hash;
2121
use iter;
22-
use kinds::Copy;
2322
use option::{None, Option, Some};
24-
use option;
2523
use rand;
26-
use to_bytes::IterBytes;
2724
use uint;
2825
use vec;
2926

branches/try2/src/libcore/io.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@ Basic input/output
1616

1717
use result::Result;
1818

19-
use cmp::Eq;
2019
use dvec::DVec;
2120
use int;
2221
use libc;
2322
use libc::{c_int, c_long, c_uint, c_void, size_t, ssize_t};
2423
use libc::consts::os::posix88::*;
25-
use libc::consts::os::extra::*;
26-
use option;
2724
use os;
2825
use prelude::*;
2926
use ptr;
@@ -715,7 +712,9 @@ pub fn mk_file_writer(path: &Path, flags: &[FileFlag])
715712
-> Result<Writer, ~str> {
716713

717714
#[cfg(windows)]
718-
fn wb() -> c_int { (O_WRONLY | O_BINARY) as c_int }
715+
fn wb() -> c_int {
716+
(O_WRONLY | libc::consts::os::extra::O_BINARY) as c_int
717+
}
719718

720719
#[cfg(unix)]
721720
fn wb() -> c_int { O_WRONLY as c_int }

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

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

1111
mod inst {
12-
use cast;
13-
use dlist;
1412
use dlist::DList;
1513
use managed;
1614
use option::{Option, Some};

branches/try2/src/libcore/libc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,6 @@ pub mod funcs {
10071007

10081008
pub mod c95 {
10091009
use libc::types::common::c95::{FILE, c_void, fpos_t};
1010-
use libc::types::common::posix88::dirent_t;
10111010
use libc::types::os::arch::c95::{c_char, c_double, c_int, c_long};
10121011
use libc::types::os::arch::c95::{c_uint, c_ulong, c_void, size_t};
10131012

branches/try2/src/libcore/managed.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010

1111
//! Operations on managed box types
1212
13-
use cast::transmute;
14-
use cmp::{Eq, Ord};
15-
use managed::raw::BoxRepr;
16-
use prelude::*;
1713
use ptr;
1814

15+
#[cfg(notest)] use cmp::{Eq, Ord};
1916

2017
pub mod raw {
2118

branches/try2/src/libcore/num/f64.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use cmath;
1414
use cmp;
1515
use libc::{c_double, c_int};
16-
use libc;
1716
use num::NumCast;
1817
use num::strconv;
1918
use num;

branches/try2/src/libcore/num/float.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,13 @@
2020

2121
// PORT this must match in width according to architecture
2222

23-
use m_float = f64;
24-
2523
use cmp::{Eq, Ord};
26-
use cmp;
2724
use f64;
2825
use num::NumCast;
2926
use num::strconv;
3027
use num;
3128
use ops;
3229
use option::{None, Option, Some};
33-
use str;
34-
use uint;
3530
use to_str;
3631
use from_str;
3732

branches/try2/src/libcore/num/int-template.rs

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

1111
use T = self::inst::T;
1212

13-
use char;
1413
use cmp::{Eq, Ord};
15-
use cmp;
1614
use to_str::ToStr;
1715
use from_str::FromStr;
1816
use num::{ToStrRadix, FromStrRadix};
1917
use num::strconv;
2018
use num;
2119
use prelude::*;
22-
use str;
23-
use uint;
24-
use vec;
25-
use i8;
26-
use i16;
27-
use i32;
20+
21+
#[cfg(notest)] use cmp::{Eq, Ord};
22+
2823
pub use cmp::{min, max};
2924

3025
pub const bits : uint = inst::bits;

branches/try2/src/libcore/num/num.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
use cmp::{Ord, Eq};
1313
use ops::{Add, Div, Modulo, Mul, Neg, Sub};
1414
use option::{None, Option, Some};
15-
use char;
16-
use str;
1715
use kinds::Copy;
18-
use vec;
1916

2017
pub mod strconv;
2118

branches/try2/src/libcore/num/uint-template.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,14 @@
1111
use T = self::inst::T;
1212
use T_SIGNED = self::inst::T_SIGNED;
1313

14-
use char;
1514
use cmp::{Eq, Ord};
16-
use cmp;
1715
use to_str::ToStr;
1816
use from_str::FromStr;
1917
use num::{ToStrRadix, FromStrRadix};
2018
use num::strconv;
2119
use num;
2220
use option::{None, Option, Some};
2321
use prelude::*;
24-
use str;
25-
use uint;
26-
use vec;
27-
use u8;
28-
use u16;
29-
use u32;
3022

3123
pub use cmp::{min, max};
3224

@@ -357,7 +349,6 @@ pub fn to_str_radix37() {
357349
uint::to_str_radix(100u, 37u);
358350
}
359351
360-
use io;
361352
#[test]
362353
pub fn test_ranges() {
363354
let mut l = ~[];

branches/try2/src/libcore/num/uint-template/uint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub use self::inst::{
1919

2020
pub mod inst {
2121
use sys;
22-
use uint;
2322
use iter;
2423

2524
pub type T = uint;

branches/try2/src/libcore/option.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ let unwrapped_msg = match msg {
4343

4444
use cmp::{Eq,Ord};
4545
use kinds::Copy;
46-
use option;
47-
use ptr;
48-
use str;
4946
use util;
5047
use num::Zero;
5148

branches/try2/src/libcore/os.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*/
2828

2929
use cast;
30-
use either;
3130
use io;
3231
use libc;
3332
use libc::{c_char, c_void, c_int, c_uint, size_t, ssize_t};
@@ -38,7 +37,6 @@ use prelude::*;
3837
use ptr;
3938
use str;
4039
use task;
41-
use task::TaskBuilder;
4240
use uint;
4341
use vec;
4442

branches/try2/src/libcore/path.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Cross-platform file path handling
1717
use cmp::Eq;
1818
use libc;
1919
use option::{None, Option, Some};
20-
use ptr;
2120
use str;
2221
use to_str::ToStr;
2322

@@ -830,7 +829,6 @@ pub pure fn normalize(components: &[~str]) -> ~[~str] {
830829
pub mod windows {
831830
use libc;
832831
use option::{None, Option, Some};
833-
use to_str::ToStr;
834832
835833
#[inline(always)]
836834
pub pure fn is_sep(u: u8) -> bool {

branches/try2/src/libcore/pipes.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,8 @@ use kinds::Owned;
9090
use libc;
9191
use option;
9292
use option::{None, Option, Some, unwrap};
93-
use pipes;
9493
use unstable::intrinsics;
9594
use ptr;
96-
use unstable;
9795
use task;
9896
use vec;
9997

branches/try2/src/libcore/ptr.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ use cmp::{Eq, Ord};
1515
use libc;
1616
use libc::{c_void, size_t};
1717
use unstable::intrinsics::{memmove32,memmove64};
18-
use ptr;
19-
use str;
2018
use sys;
21-
use vec;
2219

2320
#[nolink]
2421
#[abi = "cdecl"]

branches/try2/src/libcore/repr.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,19 @@ More runtime type reflection
1515
*/
1616

1717
use cast::transmute;
18-
use cast;
1918
use char;
2019
use dvec::DVec;
2120
use intrinsic;
2221
use intrinsic::{TyDesc, TyVisitor, visit_tydesc};
23-
use io;
2422
use io::{Writer, WriterUtil};
2523
use libc::c_void;
2624
use managed;
27-
use managed::raw::BoxHeaderRepr;
2825
use ptr;
2926
use reflect;
3027
use reflect::{MovePtr, MovePtrAdaptor, align};
31-
use repr;
3228
use str;
3329
use sys;
34-
use sys::TypeDesc;
3530
use to_str::ToStr;
36-
use uint;
3731
use vec::UnboxedVecRepr;
3832
use vec::raw::{VecRepr, SliceRepr};
3933
use vec;

branches/try2/src/libcore/result.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
1313
// NB: transitionary, de-mode-ing.
1414

15-
use cmp;
1615
use cmp::Eq;
1716
use either;
1817
use either::Either;

0 commit comments

Comments
 (0)