Skip to content

Commit 3598209

Browse files
committed
---
yaml --- r: 52047 b: refs/heads/dist-snap c: 5ec3aba h: refs/heads/master i: 52045: d30696f 52043: 5a202a9 52039: 4cf72aa 52031: bd24528 v: v3
1 parent 7b154d0 commit 3598209

File tree

273 files changed

+856
-2924
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

+856
-2924
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: fa5ee934edecff9c3fa82ade705bd964dc734525
10+
refs/heads/dist-snap: 5ec3aba8cc977f5b396a8e2636bd0ddbbfa9af66
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/CONTRIBUTING.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

branches/dist-snap/doc/rust.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,19 +1107,6 @@ let mut a: Animal = Dog;
11071107
a = Cat;
11081108
~~~~
11091109

1110-
Enumeration constructors can have either named or unnamed fields:
1111-
~~~~
1112-
enum Animal {
1113-
Dog (~str, float),
1114-
Cat { name: ~str, weight: float }
1115-
}
1116-
1117-
let mut a: Animal = Dog(~"Cocoa", 37.2);
1118-
a = Cat{ name: ~"Spotty", weight: 2.7 };
1119-
~~~~
1120-
1121-
In this example, `Cat` is a _struct-like enum variant_,
1122-
whereas `Dog` is simply called an enum variant.
11231110
### Constants
11241111

11251112
~~~~~~~~ {.ebnf .gram}

branches/dist-snap/doc/tutorial.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -733,24 +733,6 @@ fn point_from_direction(dir: Direction) -> Point {
733733
}
734734
~~~~
735735

736-
A special kind of enum variant, called _struct-like enums_,
737-
can have its fields extracted with dot notation and not just destructuring.
738-
For example:
739-
740-
~~~~
741-
# struct Point {x: float, y: float}
742-
# fn square(x: float) -> float { x * x }
743-
enum Shape {
744-
Circle { center: Point, radius: float },
745-
Rectangle { left: Point, right: Point }
746-
}
747-
fn area(sh: Shape) -> float {
748-
match sh {
749-
Circle(c) => float::consts::pi * square(c.radius),
750-
Rectangle(r) => r.right.x - r.left.x * r.right.y - r.right.y
751-
}
752-
}
753-
~~~~
754736
## Tuples
755737

756738
Tuples in Rust behave exactly like structs, except that their fields

branches/dist-snap/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/dist-snap/src/etc/vim/syntax/rust.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Rust
33
" Maintainer: Patrick Walton <[email protected]>
44
" Maintainer: Ben Blum <[email protected]>
5-
" Last Change: 2012 Dec 25
5+
" Last Change: 2012 Dec 14
66

77
if version < 600
88
syntax clear
@@ -44,8 +44,8 @@ syn keyword rustType off_t dev_t ino_t pid_t mode_t ssize_t
4444

4545
syn keyword rustTrait Const Copy Send Owned " inherent traits
4646
syn keyword rustTrait Eq Ord Num Ptr
47-
syn keyword rustTrait Drop Add Sub Mul Div Modulo Neg BitAnd BitOr
48-
syn keyword rustTrait BitXor Shl Shr Index
47+
syn keyword rustTrait Add Sub Mul Div Modulo Neg BitAnd BitOr BitXor
48+
syn keyword rustTrait Shl Shr Index
4949

5050
syn keyword rustSelf self
5151
syn keyword rustBoolean true false

branches/dist-snap/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/dist-snap/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/dist-snap/src/libcore/bool.rs

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

1717
//! Boolean logic
1818
19-
use bool;
20-
use cmp;
2119
use cmp::Eq;
2220

2321
/// Negation / inverse

branches/dist-snap/src/libcore/char.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@
1414
#[forbid(deprecated_mode)];
1515
#[forbid(deprecated_pattern)];
1616

17-
use char;
1817
use cmp::Eq;
19-
use str;
20-
use u32;
21-
use uint;
22-
use unicode;
2318

2419
/*
2520
Lu Uppercase_Letter an uppercase letter

branches/dist-snap/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/dist-snap/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/dist-snap/src/libcore/dlist.rs

Lines changed: 0 additions & 8 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> = @{
@@ -473,10 +469,6 @@ impl<T: Copy> DList<T> {
473469
#[cfg(test)]
474470
mod tests {
475471
#[legacy_exports];
476-
477-
use iter;
478-
use vec;
479-
480472
#[test]
481473
fn test_dlist_concat() {
482474
let a = from_vec(~[1,2]);

branches/dist-snap/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/dist-snap/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/dist-snap/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/dist-snap/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/dist-snap/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/dist-snap/src/libcore/flate.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +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 rand;
25-
use vec;
2622

2723
extern mod rustrt {
2824
fn tdefl_compress_mem_to_heap(psrc_buf: *const c_void,
@@ -92,8 +88,8 @@ fn test_flate_round_trip() {
9288
}
9389
debug!("de/inflate of %u bytes of random word-sequences",
9490
in.len());
95-
let cmp = deflate_bytes(in);
96-
let out = inflate_bytes(cmp);
91+
let cmp = flate::deflate_bytes(in);
92+
let out = flate::inflate_bytes(cmp);
9793
debug!("%u bytes deflated to %u (%.1f%% size)",
9894
in.len(), cmp.len(),
9995
100.0 * ((cmp.len() as float) / (in.len() as float)));

branches/dist-snap/src/libcore/float.rs

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

2727
use m_float = f64;
2828

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

4741
pub const NaN: float = 0.0/0.0;
4842

branches/dist-snap/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/dist-snap/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.

0 commit comments

Comments
 (0)