Skip to content

Commit 70bf270

Browse files
committed
---
yaml --- r: 54185 b: refs/heads/dist-snap c: 34c5a09 h: refs/heads/master i: 54183: 36dc40f v: v3
1 parent 25719aa commit 70bf270

Some content is hidden

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

52 files changed

+227
-419
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: 4cb5854d883d275872b16a200a2bfc30c53ccea3
10+
refs/heads/dist-snap: 34c5a09ce3c18874de7150afbf689ce0f94c7c20
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ pub fn parse_config(args: ~[~str]) -> config {
9090
if vec::len(matches.free) > 0u {
9191
option::Some(matches.free[0])
9292
} else { option::None },
93-
logfile: option::map(&getopts::opt_maybe_str(matches,
94-
~"logfile"),
95-
|s| Path(*s)),
93+
logfile: getopts::opt_maybe_str(matches, ~"logfile").map(|s| Path(*s)),
9694
runtool: getopts::opt_maybe_str(matches, ~"runtool"),
9795
rustcflags: getopts::opt_maybe_str(matches, ~"rustcflags"),
9896
jit: getopts::opt_present(matches, ~"jit"),

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//! A mutable, nullable memory location
1212
1313
use cast::transmute;
14-
use option;
1514
use prelude::*;
1615

1716
/*
@@ -53,7 +52,7 @@ pub impl<T> Cell<T> {
5352
5453
let mut value = None;
5554
value <-> self.value;
56-
return option::unwrap(value);
55+
value.unwrap()
5756
}
5857
5958
/// Returns the value, failing if the cell is full.

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ Message passing
1515
use cast;
1616
use either::{Either, Left, Right};
1717
use kinds::Owned;
18-
use option;
19-
use option::{Option, Some, None, unwrap};
18+
use option::{Option, Some, None};
2019
use uint;
2120
use unstable;
2221
use vec;
@@ -126,7 +125,7 @@ fn chan_send<T:Owned>(self: &Chan<T>, x: T) {
126125
let mut endp = None;
127126
endp <-> self.endp;
128127
self.endp = Some(
129-
streamp::client::data(unwrap(endp), x))
128+
streamp::client::data(endp.unwrap(), x))
130129
}
131130
132131
impl<T: Owned> GenericSmartChan<T> for Chan<T> {
@@ -139,7 +138,7 @@ impl<T: Owned> GenericSmartChan<T> for Chan<T> {
139138
fn chan_try_send<T:Owned>(self: &Chan<T>, x: T) -> bool {
140139
let mut endp = None;
141140
endp <-> self.endp;
142-
match streamp::client::try_data(unwrap(endp), x) {
141+
match streamp::client::try_data(endp.unwrap(), x) {
143142
Some(next) => {
144143
self.endp = Some(next);
145144
true
@@ -165,7 +164,7 @@ impl<T: Owned> GenericPort<T> for Port<T> {
165164
fn port_recv<T:Owned>(self: &Port<T>) -> T {
166165
let mut endp = None;
167166
endp <-> self.endp;
168-
let streamp::data(x, endp) = recv(unwrap(endp));
167+
let streamp::data(x, endp) = recv(endp.unwrap());
169168
self.endp = Some(endp);
170169
x
171170
}
@@ -174,7 +173,7 @@ fn port_recv<T:Owned>(self: &Port<T>) -> T {
174173
fn port_try_recv<T:Owned>(self: &Port<T>) -> Option<T> {
175174
let mut endp = None;
176175
endp <-> self.endp;
177-
match try_recv(unwrap(endp)) {
176+
match try_recv(endp.unwrap()) {
178177
Some(streamp::data(x, endp)) => {
179178
self.endp = Some(endp);
180179
Some(x)
@@ -312,7 +311,7 @@ fn shared_chan_send<T:Owned>(self: &SharedChan<T>, x: T) {
312311
do self.with_imm |chan| {
313312
let mut x = None;
314313
x <-> xx;
315-
chan.send(option::unwrap(x))
314+
chan.send(x.unwrap())
316315
}
317316
}
318317
@@ -326,7 +325,7 @@ fn shared_chan_try_send<T:Owned>(self: &SharedChan<T>, x: T) -> bool {
326325
do self.with_imm |chan| {
327326
let mut x = None;
328327
x <-> xx;
329-
chan.try_send(option::unwrap(x))
328+
chan.try_send(x.unwrap())
330329
}
331330
}
332331
@@ -409,7 +408,7 @@ pub fn try_recv_one<T: Owned> (port: PortOne<T>) -> Option<T> {
409408
410409
if message.is_none() { None }
411410
else {
412-
let oneshot::send(message) = option::unwrap(message);
411+
let oneshot::send(message) = message.unwrap();
413412
Some(message)
414413
}
415414
}

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use iter::BaseIter;
2323
use kinds::Copy;
2424
use managed;
2525
use option::{None, Option, Some};
26-
use option;
2726
use vec;
2827

2928
pub type DListLink<T> = Option<@mut DListNode<T>>;
@@ -377,7 +376,7 @@ pub impl<T> DList<T> {
377376
378377
/// Reverse the list's elements in place. O(n).
379378
fn reverse(@mut self) {
380-
do option::while_some(self.hd) |nobe| {
379+
do self.hd.while_some |nobe| {
381380
let next_nobe = nobe.next;
382381
self.remove(nobe);
383382
self.make_mine(nobe);
@@ -509,8 +508,8 @@ impl<T> BaseIter<T> for @mut DList<T> {
509508
*/
510509
fn each(&self, f: &fn(v: &T) -> bool) {
511510
let mut link = self.peek_n();
512-
while option::is_some(&link) {
513-
let nobe = option::get(link);
511+
while link.is_some() {
512+
let nobe = link.get();
514513
fail_unless!(nobe.linked);
515514
516515
{

branches/dist-snap/src/libcore/gc.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-
#[doc(hidden)];
12-
1311
/*! Precise garbage collector
1412
1513
The precise GC exposes two functions, gc and

0 commit comments

Comments
 (0)