Skip to content

Commit e42c1b2

Browse files
ericktcatamorphism
authored andcommitted
---
yaml --- r: 34302 b: refs/heads/snap-stage3 c: 50902bb h: refs/heads/master v: v3
1 parent 665a475 commit e42c1b2

Some content is hidden

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

47 files changed

+1017
-705
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: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 3cc0fbca5d0a37f9b770db27e3ea39a00616ca4f
4+
refs/heads/snap-stage3: 50902bb3025ed9e583bf029c78406cb5b9abf7c7
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/AUTHORS.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Drew Willcoxon <[email protected]>
4444
Elliott Slaughter <[email protected]>
4545
Elly Fong-Jones <[email protected]>
4646
Eric Holk <[email protected]>
47-
Eric Holmes <[email protected]>
4847
Erick Tryzelaar <[email protected]>
4948
Erik Rose <[email protected]>
5049
Evan McClanahan <[email protected]>
@@ -69,7 +68,6 @@ Jeff Balogh <[email protected]>
6968
Jeff Muizelaar <[email protected]>
7069
Jeff Olson <[email protected]>
7170
Jeffrey Yasskin <[email protected]>
72-
Jens Nockert <[email protected]>
7371
Jesse Ruderman <[email protected]>
7472
Jim Blandy <[email protected]>
7573
@@ -91,7 +89,6 @@ Magnus Auvinen <[email protected]>
9189
Mahmut Bulut <[email protected]>
9290
Margaret Meyerhofer <[email protected]>
9391
Marijn Haverbeke <[email protected]>
94-
Martin DeMello <[email protected]>
9592
Matt Brubeck <[email protected]>
9693
Matthew O'Connor <[email protected]>
9794
Max Penet <[email protected]>

branches/snap-stage3/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ LIBRUSTI_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,rusti)
154154

155155
# version-string calculation
156156
CFG_GIT_DIR := $(CFG_SRC_DIR).git
157-
CFG_RELEASE = 0.6
157+
CFG_RELEASE = 0.5
158158
CFG_VERSION = $(CFG_RELEASE)
159159

160160
ifneq ($(wildcard $(CFG_GIT)),)

branches/snap-stage3/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ packages:
4242
Assuming you're on a relatively modern *nix system and have met the
4343
prerequisites, something along these lines should work.
4444

45-
$ wget http://static.rust-lang.org/dist/rust-0.5.tar.gz
45+
$ wget http://dl.rust-lang.org/dist/rust-0.5.tar.gz
4646
$ tar -xzf rust-0.5.tar.gz
4747
$ cd rust-0.5
4848
$ ./configure
@@ -59,8 +59,8 @@ When complete, `make install` will place several programs into
5959
API-documentation tool, and `cargo`, the Rust package manager.
6060

6161
[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
62-
[tarball]: http://static.rust-lang.org/dist/rust-0.5.tar.gz
63-
[win-exe]: http://static.rust-lang.org/dist/rust-0.5-install.exe
62+
[tarball]: http://dl.rust-lang.org/dist/rust-0.5.tar.gz
63+
[win-exe]: http://dl.rust-lang.org/dist/rust-0.5-install.exe
6464

6565

6666
## License
@@ -74,4 +74,4 @@ See LICENSE.txt for details.
7474

7575
The [tutorial] is a good starting point.
7676

77-
[tutorial]: http://static.rust-lang.org/doc/tutorial.html
77+
[tutorial]: http://dl.rust-lang.org/doc/tutorial.html

branches/snap-stage3/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/snap-stage3/doc/tutorial-ffi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern mod crypto {
2222
2323
fn as_hex(data: ~[u8]) -> ~str {
2424
let mut acc = ~"";
25-
for data.each |&byte| { acc += fmt!("%02x", byte as uint); }
25+
for data.each |byte| { acc += fmt!("%02x", byte as uint); }
2626
return acc;
2727
}
2828
@@ -33,8 +33,8 @@ fn sha1(data: ~str) -> ~str unsafe {
3333
return as_hex(vec::from_buf(hash, 20));
3434
}
3535
36-
fn main() {
37-
io::println(sha1(core::os::args()[1]));
36+
fn main(args: ~[~str]) {
37+
io::println(sha1(args[1]));
3838
}
3939
~~~~
4040

branches/snap-stage3/doc/tutorial.md

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ If you've fulfilled those prerequisites, something along these lines
9999
should work.
100100

101101
~~~~ {.notrust}
102-
$ curl -O http://static.rust-lang.org/dist/rust-0.5.tar.gz
102+
$ curl -O http://dl.rust-lang.org/dist/rust-0.5.tar.gz
103103
$ tar -xzf rust-0.5.tar.gz
104104
$ cd rust-0.5
105105
$ ./configure
@@ -118,8 +118,8 @@ API-documentation tool, `cargo`, the Rust package manager,
118118
and `rusti`, the Rust REPL.
119119

120120
[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
121-
[tarball]: http://static.rust-lang.org/dist/rust-0.5.tar.gz
122-
[win-exe]: http://static.rust-lang.org/dist/rust-0.5-install.exe
121+
[tarball]: http://dl.rust-lang.org/dist/rust-0.5.tar.gz
122+
[win-exe]: http://dl.rust-lang.org/dist/rust-0.5-install.exe
123123

124124
## Compiling your first program
125125

@@ -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
@@ -2440,7 +2422,7 @@ pub fn explore() -> &str { "world" }
24402422
~~~~ {.xfail-test}
24412423
// main.rs
24422424
extern mod world;
2443-
fn main() { io::println(~"hello " + world::explore()); }
2425+
fn main() { io::println("hello " + world::explore()); }
24442426
~~~~
24452427

24462428
Now compile and run like this (adjust to your platform if necessary):

branches/snap-stage3/src/compiletest/compiletest.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#[allow(deprecated_mode)];
1919
#[allow(deprecated_pattern)];
2020

21-
extern mod core(vers = "0.6");
22-
extern mod std(vers = "0.6");
21+
extern mod core(vers = "0.5");
22+
extern mod std(vers = "0.5");
2323

2424
use core::*;
2525

branches/snap-stage3/src/driver/driver.rs

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

1111
#[no_core];
12-
extern mod core(vers = "0.6");
12+
extern mod core(vers = "0.5");
1313

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

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

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

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

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

2929
fn main() { self::main() }

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ if exists('g:rust_conceal_mod_path')
77
syn match rustNiceOperator "::" conceal cchar=
88
endif
99

10+
syn match rustLeftArrowHead contained "-" conceal cchar= 
11+
syn match rustLeftArrowTail contained "<" conceal cchar=
12+
syn match rustNiceOperator "<-" contains=rustLeftArrowHead,rustLeftArrowTail
13+
1014
syn match rustRightArrowHead contained ">" conceal cchar= 
1115
syn match rustRightArrowTail contained "-" conceal cchar=
1216
syn match rustNiceOperator "->" contains=rustRightArrowHead,rustRightArrowTail

branches/snap-stage3/src/libcargo/cargo.rc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// End:
2121

2222
#[link(name = "cargo",
23-
vers = "0.6",
23+
vers = "0.5",
2424
uuid = "9ff87a04-8fed-4295-9ff8-f99bb802650b",
2525
url = "https://github.com/mozilla/rust/tree/master/src/cargo")];
2626

@@ -37,10 +37,10 @@
3737
#[allow(deprecated_mode)];
3838
#[allow(deprecated_pattern)];
3939

40-
extern mod core(vers = "0.6");
41-
extern mod std(vers = "0.6");
42-
extern mod rustc(vers = "0.6");
43-
extern mod syntax(vers = "0.6");
40+
extern mod core(vers = "0.5");
41+
extern mod std(vers = "0.5");
42+
extern mod rustc(vers = "0.5");
43+
extern mod syntax(vers = "0.5");
4444

4545
#[legacy_exports]
4646
mod pgp;

branches/snap-stage3/src/libcargo/pgp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn verify(root: &Path, data: &Path, sig: &Path) -> bool {
102102
let path = root.push("gpg");
103103
let res = gpgv(~[~"--homedir", path.to_str(),
104104
~"--keyring", ~"pubring.gpg",
105-
~"--verbose",
105+
~"--verify",
106106
sig.to_str(), data.to_str()]);
107107
if res.status != 0 {
108108
return false;

branches/snap-stage3/src/libcore/core.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Implicitly, all crates behave as if they included the following prologue:
3636

3737

3838
#[link(name = "core",
39-
vers = "0.6",
39+
vers = "0.5",
4040
uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
4141
url = "https://github.com/mozilla/rust/tree/master/src/libcore")];
4242

@@ -103,7 +103,7 @@ pub mod owned;
103103
#[cfg(notest)] pub mod cmp;
104104

105105
// Make core testable by not duplicating lang items. See #2912
106-
#[cfg(test)] extern mod realcore(name = "core", vers = "0.6");
106+
#[cfg(test)] extern mod realcore(name = "core", vers = "0.5");
107107
#[cfg(test)] pub use kinds = realcore::kinds;
108108
#[cfg(test)] pub use ops = realcore::ops;
109109
#[cfg(test)] pub use cmp = realcore::cmp;
@@ -249,7 +249,7 @@ mod core {
249249
// Similar to above. Some magic to make core testable.
250250
#[cfg(test)]
251251
mod std {
252-
extern mod std(vers = "0.6");
252+
extern mod std(vers = "0.5");
253253
pub use std::std::test;
254254
}
255255

branches/snap-stage3/src/libcore/dvec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ pub pure fn DVec<A>() -> DVec<A> {
6767
}
6868

6969
/// Creates a new dvec with a single element
70-
pub pure fn from_elem<A>(e: A) -> DVec<A> {
70+
pub fn from_elem<A>(e: A) -> DVec<A> {
7171
DVec {mut data: ~[move e]}
7272
}
7373

7474
/// Creates a new dvec with the contents of a vector
75-
pub pure fn from_vec<A>(v: ~[A]) -> DVec<A> {
75+
pub fn from_vec<A>(v: ~[A]) -> DVec<A> {
7676
DVec {mut data: move v}
7777
}
7878

7979
/// Consumes the vector and returns its contents
80-
pub pure fn unwrap<A>(d: DVec<A>) -> ~[A] {
80+
pub fn unwrap<A>(d: DVec<A>) -> ~[A] {
8181
let DVec {data: v} = move d;
8282
move v
8383
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ pub pure fn to_str_common(num: float, digits: uint, exact: bool) -> ~str {
188188
* * num - The float value
189189
* * digits - The number of significant digits
190190
*/
191-
pub pure fn to_str_exact(num: float, digits: uint) -> ~str {
191+
pub fn to_str_exact(num: float, digits: uint) -> ~str {
192192
to_str_common(num, digits, true)
193193
}
194194

@@ -238,7 +238,7 @@ pub pure fn to_str(num: float, digits: uint) -> ~str {
238238
* `none` if the string did not represent a valid number. Otherwise,
239239
* `Some(n)` where `n` is the floating-point number represented by `[num]`.
240240
*/
241-
pub pure fn from_str(num: &str) -> Option<float> {
241+
pub fn from_str(num: &str) -> Option<float> {
242242
if num == "inf" {
243243
return Some(infinity as float);
244244
} else if num == "-inf" {

branches/snap-stage3/src/libcore/hash.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ fn SipState(key0: u64, key1: u64) -> SipState {
188188
}
189189

190190

191-
impl SipState : io::Writer {
191+
impl &SipState : io::Writer {
192192

193193
// Methods for io::writer
194194
#[inline(always)]
195-
fn write(&self, msg: &[const u8]) {
195+
fn write(msg: &[const u8]) {
196196

197197
macro_rules! u8to64_le (
198198
($buf:expr, $i:expr) =>
@@ -282,16 +282,16 @@ impl SipState : io::Writer {
282282
self.ntail = left;
283283
}
284284

285-
fn seek(&self, _x: int, _s: io::SeekStyle) {
285+
fn seek(_x: int, _s: io::SeekStyle) {
286286
fail;
287287
}
288-
fn tell(&self) -> uint {
288+
fn tell() -> uint {
289289
self.length
290290
}
291-
fn flush(&self) -> int {
291+
fn flush() -> int {
292292
0
293293
}
294-
fn get_type(&self) -> io::WriterType {
294+
fn get_type() -> io::WriterType {
295295
io::File
296296
}
297297
}

branches/snap-stage3/src/libcore/int-template/int.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ mod inst {
1717
pub const bits: uint = uint::bits;
1818

1919
/// Returns `base` raised to the power of `exponent`
20-
pub pure fn pow(base: int, exponent: uint) -> int {
20+
pub fn pow(base: int, exponent: uint) -> int {
2121
if exponent == 0u {
2222
//Not mathemtically true if ~[base == 0]
2323
return 1;
2424
}
25-
if base == 0 { return 0; }
25+
if base == 0 { return 0; }
2626
let mut my_pow = exponent;
2727
let mut acc = 1;
2828
let mut multiplier = base;

0 commit comments

Comments
 (0)