Skip to content

Commit 384dd92

Browse files
committed
---
yaml --- r: 139353 b: refs/heads/try2 c: 05fba8c h: refs/heads/master i: 139351: f5c792e v: v3
1 parent 7c98ce8 commit 384dd92

File tree

357 files changed

+3459
-3428
lines changed

Some content is hidden

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

357 files changed

+3459
-3428
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: 995425badba216e38c8eb1e4c6dd6989c50660b3
8+
refs/heads/try2: 05fba8c8f4c45d8f52b3aa70f9353f0adc1261eb
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/AUTHORS.txt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Aydin Kim <[email protected]>
2121
2222
Ben Alpert <[email protected]>
2323
24-
Ben Kelly <[email protected]>
2524
Ben Striegel <[email protected]>
2625
Benjamin Herr <[email protected]>
2726
Benjamin Jackman <[email protected]>
@@ -45,12 +44,9 @@ Daniel Brooks <[email protected]>
4544
Daniel Luz <[email protected]>
4645
Daniel Micay <[email protected]>
4746
Daniel Patterson <[email protected]>
48-
Daniel Ursache Dogariu <[email protected]>
4947
Dave Herman <[email protected]>
5048
David Forsythe <[email protected]>
51-
David Klein <[email protected]>
5249
David Rajchenbach-Teller <[email protected]>
53-
Dimitri Krassovski <[email protected]>
5450
Donovan Preston <[email protected]>
5551
Drew Willcoxon <[email protected]>
5652
Elliott Slaughter <[email protected]>
@@ -70,7 +66,6 @@ Gonçalo Cabrita <[email protected]>
7066
Graham Fawcett <[email protected]>
7167
Grahame Bowland <[email protected]>
7268
Haitao Li <[email protected]>
73-
7469
Huon Wilson <[email protected]>
7570
Ian D. Bollinger <[email protected]>
7671
Ilyong Cho <[email protected]>
@@ -85,14 +80,11 @@ Jeff Balogh <[email protected]>
8580
Jeff Muizelaar <[email protected]>
8681
Jeff Olson <[email protected]>
8782
Jeffrey Yasskin <[email protected]>
88-
Jeong YunWon <[email protected]>
8983
Jens Nockert <[email protected]>
9084
Jesse Jones <[email protected]>
9185
Jesse Ruderman <[email protected]>
92-
Jihyun Yu <[email protected]>
9386
Jim Blandy <[email protected]>
9487
95-
J. J. Weber <[email protected]>
9688
Joe Pletcher <[email protected]>
9789
John Clements <[email protected]>
9890
Jon Morton <[email protected]>
@@ -107,7 +99,6 @@ Kevin Atkinson <[email protected]>
10799
Kevin Cantu <[email protected]>
108100
Kyeongwoon Lee <[email protected]>
109101
Laurent Bonnans <[email protected]>
110-
Lawrence Velázquez <[email protected]>
111102
Lennart Kudling <[email protected]>
112103
Lindsey Kuper <[email protected]>
113104
Luca Bruno <[email protected]>
@@ -121,9 +112,7 @@ Mark Vian <[email protected]>
121112
Martin DeMello <[email protected]>
122113
Marvin Löbel <[email protected]>
123114
Matt Brubeck <[email protected]>
124-
Matthew McPherrin <[email protected]>
125115
Matthew O'Connor <[email protected]>
126-
Matthijs Hofstra <[email protected]>
127116
Max Penet <[email protected]>
128117
Michael Arntzenius <[email protected]>
129118
Michael Bebenita <[email protected]>
@@ -132,7 +121,6 @@ Michael Sullivan <[email protected]>
132121
Mikko Perttunen <[email protected]>
133122
Nick Desaulniers <[email protected]>
134123
Niko Matsakis <[email protected]>
135-
Olivier Saut <[email protected]>
136124
Or Brostovski <[email protected]>
137125
Orphée Lafond-Lummis <[email protected]>
138126
Patrick Walton <[email protected]>
@@ -152,17 +140,14 @@ Roy Frostig <[email protected]>
152140
Ryan Scheel <[email protected]>
153141
Sean Stangl <[email protected]>
154142
Sebastian N. Fernandez <[email protected]>
155-
Seth Pink <[email protected]>
156143
Seo Sanghyeon <[email protected]>
157-
158144
Simon Barber-Dueck <[email protected]>
159145
Simon Sapin <[email protected]>
160146
startling <[email protected]>
161147
Stefan Plantikow <[email protected]>
162148
Steve Klabnik <[email protected]>
163149
Taras Shpot <[email protected]>
164150
Ted Horst <[email protected]>
165-
Thad Guidry <[email protected]>
166151
Tim Chevalier <[email protected]>
167152
Tim Taubert <[email protected]>
168153
@@ -176,6 +161,5 @@ Vincent Belliard <[email protected]>
176161
Wade Mealing <[email protected]>
177162
William Ting <[email protected]>
178163
Yasuhiro Fujii <[email protected]>
179-
Young-il Choi <[email protected]>
180164
Youngsoo Son <[email protected]>
181165
Zack Corr <[email protected]>

branches/try2/RELEASES.txt

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
Version 0.6 (March 2013)
22
---------------------------
33

4-
* ~2100 changes, numerous bugfixes
4+
* ~2000 changes, numerous bugfixes
5+
6+
* TODO:
7+
* Ord/Cmp
8+
* Lifetime changes
9+
* Remove `static` keyword
10+
* Static method syntax
11+
* `as Trait`
12+
* `copy` removed, replaced with `Clone`?
13+
* More details for "Name resolution continues to be tweaked"?
514

615
* Syntax changes
716
* The self type parameter in traits is now spelled `Self`
817
* The `self` parameter in trait and impl methods must now be explicitly
918
named (for example: `fn f(&self) { }`). Implicit self is deprecated.
10-
* Static methods no longer require the `static` keyword and instead
11-
are distinguished by the lack of a `self` parameter
1219
* Replaced the `Durable` trait with the `'static` lifetime
1320
* The old closure type syntax with the trailing sigil has been
1421
removed in favor of the more consistent leading sigil
1522
* `super` is a keyword, and may be prefixed to paths
1623
* Trait bounds are separated with `+` instead of whitespace
1724
* Traits are implemented with `impl Trait for Type`
1825
instead of `impl Type: Trait`
19-
* Lifetime syntax is now `&'l foo` instead of `&l/foo`
2026
* The `export` keyword has finally been removed
2127
* The `move` keyword has been removed (see "Semantic changes")
2228
* The interior mutability qualifier on vectors, `[mut T]`, has been
@@ -35,11 +41,9 @@ Version 0.6 (March 2013)
3541
* Pattern matching over vectors improved and expanded
3642
* `const` renamed to `static` to correspond to lifetime name,
3743
and make room for future `static mut` unsafe mutable globals.
38-
* Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
44+
* Replaced `#[deriving_eq]` with `#[deriving(Eq)]`
3945
* `Clone` implementations can be automatically generated with
4046
`#[deriving(Clone)]`
41-
* Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
42-
instead of `foo as Bar`.
4347

4448
* Semantic changes
4549
* Types with owned pointers or custom destructors move by default,
@@ -50,11 +54,7 @@ Version 0.6 (March 2013)
5054
* () has size 0
5155
* The name of the main function can be customized using #[main]
5256
* The default type of an inferred closure is &fn instead of @fn
53-
* `use` statements may no longer be "chained" - they cannot import
54-
identifiers imported by previous `use` statements
55-
* `use` statements are crate relative, importing from the "top"
56-
of the crate by default. Paths may be prefixed with `super::`
57-
or `self::` to change the search behavior.
57+
* Name resolution continues to be tweaked
5858
* Method visibility is inherited from the implementation declaration
5959
* Structural records have been removed
6060
* Many more types can be used in static items, including enums
@@ -78,15 +78,14 @@ Version 0.6 (March 2013)
7878
* `std::deque` and `std::smallintmap` reimplemented as owned containers
7979
* `core::trie` added as a fast ordered map for integer keys
8080
* Set types added to `core::hashmap`, `core::trie` and `std::treemap`
81-
* `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
82-
overload the comparison operators, whereas `TotalOrd` is used
83-
by certain container types
8481

85-
* Other
82+
* Tools
8683
* Replaced the 'cargo' package manager with 'rustpkg'
8784
* Added all-purpose 'rust' tool
8885
* `rustc --test` now supports benchmarks with the `#[bench]` attribute
89-
* rustc now *attempts* to offer spelling suggestions
86+
* rustc now attempts to offer spelling suggestions
87+
88+
* Misc
9089
* Improved support for ARM and Android
9190
* Preliminary MIPS backend
9291
* Improved foreign function ABI implementation for x86, x86_64

branches/try2/doc/rust.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,11 @@ expression context, the final namespace qualifier is omitted.
441441
Two examples of paths with type arguments:
442442

443443
~~~~
444-
# use core::hashmap::linear::LinearMap;
444+
# use std::oldmap;
445445
# fn f() {
446446
# fn id<T:Copy>(t: T) -> T { t }
447-
type t = LinearMap<int,~str>; // Type arguments used in a type expression
448-
let x = id::<int>(10); // Type arguments used in a call expression
447+
type t = oldmap::HashMap<int,~str>; // Type arguments used in a type expression
448+
let x = id::<int>(10); // Type arguments used in a call expression
449449
# }
450450
~~~~
451451

@@ -830,12 +830,12 @@ An example of re-exporting:
830830
~~~~
831831
# fn main() { }
832832
mod quux {
833-
pub use quux::foo::*;
834-
835833
pub mod foo {
836834
pub fn bar() { }
837835
pub fn baz() { }
838836
}
837+
838+
pub use quux::foo::*;
839839
}
840840
~~~~
841841

@@ -1116,7 +1116,7 @@ static bit2: uint = 1 << 1;
11161116
static bits: [uint, ..2] = [bit1, bit2];
11171117
static string: &'static str = "bitstring";
11181118
1119-
struct BitsNStrings<'self> {
1119+
struct BitsNStrings {
11201120
mybits: [uint, ..2],
11211121
mystring: &'self str
11221122
}
@@ -2008,8 +2008,8 @@ then the expression completes.
20082008
Some examples of call expressions:
20092009

20102010
~~~~
2011-
# use core::from_str::FromStr::from_str;
20122011
# fn add(x: int, y: int) -> int { 0 }
2012+
# use core::from_str::FromStr::from_str;
20132013
20142014
let x: int = add(1, 2);
20152015
let pi = from_str::<f32>("3.14");

branches/try2/doc/tutorial-borrowed-ptr.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ For example, we could write a subroutine like this:
485485

486486
~~~
487487
struct Point {x: float, y: float}
488-
fn get_x<'r>(p: &'r Point) -> &'r float { &p.x }
488+
fn get_x(p: &'r Point) -> &'r float { &p.x }
489489
~~~
490490

491491
Here, the function `get_x()` returns a pointer into the structure it
@@ -571,8 +571,8 @@ function:
571571
# Rectangle(Point, Size) // upper-left, dimensions
572572
# }
573573
# fn compute_area(shape: &Shape) -> float { 0f }
574-
fn select<'r, T>(shape: &'r Shape, threshold: float,
575-
a: &'r T, b: &'r T) -> &'r T {
574+
fn select<T>(shape: &'r Shape, threshold: float,
575+
a: &'r T, b: &'r T) -> &'r T {
576576
if compute_area(shape) > threshold {a} else {b}
577577
}
578578
~~~
@@ -591,12 +591,12 @@ example:
591591
# Rectangle(Point, Size) // upper-left, dimensions
592592
# }
593593
# fn compute_area(shape: &Shape) -> float { 0f }
594-
# fn select<'r, T>(shape: &Shape, threshold: float,
595-
# a: &'r T, b: &'r T) -> &'r T {
594+
# fn select<T>(shape: &Shape, threshold: float,
595+
# a: &'r T, b: &'r T) -> &'r T {
596596
# if compute_area(shape) > threshold {a} else {b}
597597
# }
598598
// -+ r
599-
fn select_based_on_unit_circle<'r, T>( // |-+ B
599+
fn select_based_on_unit_circle<T>( // |-+ B
600600
threshold: float, a: &'r T, b: &'r T) -> &'r T { // | |
601601
// | |
602602
let shape = Circle(Point {x: 0., y: 0.}, 1.); // | |
@@ -628,8 +628,8 @@ returned. Here is how the new `select()` might look:
628628
# Rectangle(Point, Size) // upper-left, dimensions
629629
# }
630630
# fn compute_area(shape: &Shape) -> float { 0f }
631-
fn select<'r, 'tmp, T>(shape: &'tmp Shape, threshold: float,
632-
a: &'r T, b: &'r T) -> &'r T {
631+
fn select<T>(shape: &'tmp Shape, threshold: float,
632+
a: &'r T, b: &'r T) -> &'r T {
633633
if compute_area(shape) > threshold {a} else {b}
634634
}
635635
~~~
@@ -647,8 +647,8 @@ concise to just omit the named lifetime for `shape` altogether:
647647
# Rectangle(Point, Size) // upper-left, dimensions
648648
# }
649649
# fn compute_area(shape: &Shape) -> float { 0f }
650-
fn select<'r, T>(shape: &Shape, threshold: float,
651-
a: &'r T, b: &'r T) -> &'r T {
650+
fn select<T>(shape: &Shape, threshold: float,
651+
a: &'r T, b: &'r T) -> &'r T {
652652
if compute_area(shape) > threshold {a} else {b}
653653
}
654654
~~~

branches/try2/doc/tutorial.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,8 +1829,8 @@ illegal to copy and pass by value.
18291829
Generic `type`, `struct`, and `enum` declarations follow the same pattern:
18301830

18311831
~~~~
1832-
# use core::hashmap::linear::LinearMap;
1833-
type Set<T> = LinearMap<T, ()>;
1832+
# use std::oldmap::HashMap;
1833+
type Set<T> = HashMap<T, ()>;
18341834
18351835
struct Stack<T> {
18361836
elements: ~[T]
@@ -2054,9 +2054,9 @@ name and a double colon. The compiler uses type inference to decide which
20542054
implementation to use.
20552055

20562056
~~~~
2057+
trait Shape { fn new(area: float) -> Self; }
20572058
# use core::float::consts::pi;
20582059
# use core::float::sqrt;
2059-
trait Shape { fn new(area: float) -> Self; }
20602060
struct Circle { radius: float }
20612061
struct Square { length: float }
20622062
@@ -2211,11 +2211,11 @@ trait Circle : Shape { fn radius(&self) -> float; }
22112211
Now, we can implement `Circle` on a type only if we also implement `Shape`.
22122212

22132213
~~~~
2214-
# use core::float::consts::pi;
2215-
# use core::float::sqrt;
22162214
# trait Shape { fn area(&self) -> float; }
22172215
# trait Circle : Shape { fn radius(&self) -> float; }
22182216
# struct Point { x: float, y: float }
2217+
# use core::float::consts::pi;
2218+
# use core::float::sqrt;
22192219
# fn square(x: float) -> float { x * x }
22202220
struct CircleStruct { center: Point, radius: float }
22212221
impl Circle for CircleStruct {
@@ -2247,10 +2247,10 @@ fn radius_times_area<T: Circle>(c: T) -> float {
22472247
Likewise, supertrait methods may also be called on trait objects.
22482248

22492249
~~~ {.xfail-test}
2250-
# use core::float::consts::pi;
2251-
# use core::float::sqrt;
22522250
# trait Shape { fn area(&self) -> float; }
22532251
# trait Circle : Shape { fn radius(&self) -> float; }
2252+
# use core::float::consts::pi;
2253+
# use core::float::sqrt;
22542254
# struct Point { x: float, y: float }
22552255
# struct CircleStruct { center: Point, radius: float }
22562256
# impl Circle for CircleStruct { fn radius(&self) -> float { sqrt(self.area() / pi) } }

branches/try2/src/compiletest/compiletest.rc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ extern mod std(vers = "0.6");
2222

2323
use core::*;
2424

25+
pub mod procsrv;
26+
pub mod util;
27+
pub mod header;
28+
pub mod runtest;
29+
pub mod common;
30+
pub mod errors;
2531

2632
use std::getopts;
2733
use std::test;
@@ -37,13 +43,6 @@ use common::mode_debug_info;
3743
use common::mode;
3844
use util::logv;
3945

40-
pub mod procsrv;
41-
pub mod util;
42-
pub mod header;
43-
pub mod runtest;
44-
pub mod common;
45-
pub mod errors;
46-
4746
pub fn main() {
4847
let args = os::args();
4948
let config = parse_config(args);
@@ -91,7 +90,9 @@ pub fn parse_config(args: ~[~str]) -> config {
9190
if vec::len(matches.free) > 0u {
9291
option::Some(matches.free[0])
9392
} else { option::None },
94-
logfile: getopts::opt_maybe_str(matches, ~"logfile").map(|s| Path(*s)),
93+
logfile: option::map(&getopts::opt_maybe_str(matches,
94+
~"logfile"),
95+
|s| Path(*s)),
9596
runtool: getopts::opt_maybe_str(matches, ~"runtool"),
9697
rustcflags: getopts::opt_maybe_str(matches, ~"rustcflags"),
9798
jit: getopts::opt_present(matches, ~"jit"),

0 commit comments

Comments
 (0)