Skip to content

Commit 2f14ca3

Browse files
committed
---
yaml --- r: 46961 b: refs/heads/try c: f2f4edd h: refs/heads/master i: 46959: f6608b0 v: v3
1 parent caa8ecc commit 2f14ca3

File tree

924 files changed

+4143
-6157
lines changed

Some content is hidden

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

924 files changed

+4143
-6157
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5-
refs/heads/try: 03743ee449afb423d4a84f16976589bfd49acbf6
5+
refs/heads/try: f2f4edd8a7bc73d2923e783220fe2a3e9aec18dd
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/AUTHORS.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Benjamin Peterson <[email protected]>
2929
Bilal Husain <[email protected]>
3030
Bill Fallon <[email protected]>
3131
Brendan Eich <[email protected]>
32-
Brendan Zabarauskas <[email protected]>
3332
Brian Anderson <[email protected]>
3433
Brian J. Burg <[email protected]>
3534
Brian Leibig <[email protected]>
@@ -81,7 +80,6 @@ Jeff Muizelaar <[email protected]>
8180
Jeff Olson <[email protected]>
8281
Jeffrey Yasskin <[email protected]>
8382
Jens Nockert <[email protected]>
84-
Jesse Jones <[email protected]>
8583
Jesse Ruderman <[email protected]>
8684
Jim Blandy <[email protected]>
8785
@@ -107,7 +105,6 @@ Mahmut Bulut <[email protected]>
107105
Margaret Meyerhofer <[email protected]>
108106
Marijn Haverbeke <[email protected]>
109107
Mark Lacey <[email protected]>
110-
Mark Vian <[email protected]>
111108
Martin DeMello <[email protected]>
112109
Marvin Löbel <[email protected]>
113110
Matt Brubeck <[email protected]>
@@ -152,7 +149,6 @@ Tim Taubert <[email protected]>
152149
153150
Tomoki Aonuma <[email protected]>
154151
Tony Young <[email protected]>
155-
156152
Tycho Sci <[email protected]>
157153
Tyler Bindon <[email protected]>
158154
Viktor Dahl <[email protected]>

branches/try/configure

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ probe CFG_PDFLATEX pdflatex
394394
probe CFG_XETEX xetex
395395
probe CFG_LUATEX luatex
396396
probe CFG_NODE nodejs node
397-
probe CFG_GDB gdb
398397
if [ "$CFG_OSTYPE" = "unknown-linux-gnu" ]
399398
then
400399
probe CFG_PAXCTL paxctl /sbin/paxctl
@@ -620,7 +619,6 @@ do
620619
make_dir $h/test/bench
621620
make_dir $h/test/perf
622621
make_dir $h/test/pretty
623-
make_dir $h/test/debug-info
624622
make_dir $h/test/doc-tutorial
625623
make_dir $h/test/doc-tutorial-ffi
626624
make_dir $h/test/doc-tutorial-macros

branches/try/doc/rust.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,13 @@ grammar as double-quoted strings. Other tokens have exact rules given.
202202

203203
### Keywords
204204

205-
The keywords are the following strings:
205+
The keywords in [crate files](#crate-files) are the following strings:
206+
207+
~~~~~~~~ {.keyword}
208+
mod priv pub use
209+
~~~~~~~~
210+
211+
The keywords in [source files](#source-files) are the following strings:
206212

207213
~~~~~~~~ {.keyword}
208214
as assert
@@ -1209,7 +1215,7 @@ to pointers to the trait name, used as a type.
12091215

12101216
~~~~
12111217
# trait Shape { }
1212-
# impl Shape for int { }
1218+
# impl int: Shape { }
12131219
# let mycircle = 0;
12141220
12151221
let myshape: Shape = @mycircle as @Shape;
@@ -1233,7 +1239,7 @@ For example:
12331239
trait Num {
12341240
static pure fn from_int(n: int) -> Self;
12351241
}
1236-
impl Num for float {
1242+
impl float: Num {
12371243
static pure fn from_int(n: int) -> float { n as float }
12381244
}
12391245
let x: float = Num::from_int(42);
@@ -1269,8 +1275,8 @@ Likewise, supertrait methods may also be called on trait objects.
12691275
~~~ {.xfail-test}
12701276
# trait Shape { fn area() -> float; }
12711277
# trait Circle : Shape { fn radius() -> float; }
1272-
# impl Shape for int { fn area() -> float { 0.0 } }
1273-
# impl Circle for int { fn radius() -> float { 0.0 } }
1278+
# impl int: Shape { fn area() -> float { 0.0 } }
1279+
# impl int: Circle { fn radius() -> float { 0.0 } }
12741280
# let mycircle = 0;
12751281
12761282
let mycircle: Circle = @mycircle as @Circle;
@@ -1292,7 +1298,7 @@ Implementations are defined with the keyword `impl`.
12921298
12931299
type Circle = {radius: float, center: Point};
12941300
1295-
impl Shape for Circle {
1301+
impl Circle: Shape {
12961302
fn draw(s: Surface) { do_draw_circle(s, self); }
12971303
fn bounding_box() -> BoundingBox {
12981304
let r = self.radius;
@@ -1303,9 +1309,9 @@ impl Shape for Circle {
13031309
~~~~
13041310

13051311
It is possible to define an implementation without referring to a trait.
1306-
The methods in such an implementation can only be used
1307-
as direct calls on the values of the type that the implementation targets.
1308-
In such an implementation, the trait type and `for` after `impl` are omitted.
1312+
The methods in such an implementation can only be used statically
1313+
(as direct calls on the values of the type that the implementation targets).
1314+
In such an implementation, the type after the colon is omitted.
13091315
Such implementations are limited to nominal types (enums, structs),
13101316
and the implementation must appear in the same module or a sub-module as the `self` type.
13111317

@@ -1320,10 +1326,10 @@ Implementation parameters are written after after the `impl` keyword.
13201326
~~~~
13211327
# trait Seq<T> { }
13221328
1323-
impl<T> Seq<T> for ~[T] {
1329+
impl<T> ~[T]: Seq<T> {
13241330
...
13251331
}
1326-
impl Seq<bool> for u32 {
1332+
impl u32: Seq<bool> {
13271333
/* Treat the integer as a sequence of bits */
13281334
}
13291335
~~~~
@@ -2801,7 +2807,7 @@ trait Printable {
28012807
fn to_str() -> ~str;
28022808
}
28032809
2804-
impl Printable for int {
2810+
impl int: Printable {
28052811
fn to_str() -> ~str { int::to_str(self) }
28062812
}
28072813
@@ -2844,7 +2850,7 @@ trait Printable {
28442850
fn make_string() -> ~str;
28452851
}
28462852
2847-
impl Printable for ~str {
2853+
impl ~str: Printable {
28482854
fn make_string() -> ~str { copy self }
28492855
}
28502856
~~~~~~~~

branches/try/doc/tutorial.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,7 @@ struct TimeBomb {
19091909
explosivity: uint
19101910
}
19111911
1912-
impl Drop for TimeBomb {
1912+
impl TimeBomb : Drop {
19131913
fn finalize(&self) {
19141914
for iter::repeat(self.explosivity) {
19151915
io::println("blam!");
@@ -1943,11 +1943,11 @@ and `&str`.
19431943

19441944
~~~~
19451945
# trait Printable { fn print(&self); }
1946-
impl Printable for int {
1946+
impl int: Printable {
19471947
fn print(&self) { io::println(fmt!("%d", *self)) }
19481948
}
19491949
1950-
impl Printable for &str {
1950+
impl &str: Printable {
19511951
fn print(&self) { io::println(*self) }
19521952
}
19531953
@@ -1966,7 +1966,7 @@ trait Seq<T> {
19661966
fn iter(&self, b: fn(v: &T));
19671967
}
19681968
1969-
impl<T> Seq<T> for ~[T] {
1969+
impl<T> ~[T]: Seq<T> {
19701970
fn len(&self) -> uint { vec::len(*self) }
19711971
fn iter(&self, b: fn(v: &T)) {
19721972
for vec::each(*self) |elt| { b(elt); }
@@ -1978,7 +1978,7 @@ The implementation has to explicitly declare the type parameter that
19781978
it binds, `T`, before using it to specify its trait type. Rust
19791979
requires this declaration because the `impl` could also, for example,
19801980
specify an implementation of `Seq<int>`. The trait type (appearing
1981-
between `impl` and `for`) *refers* to a type, rather than
1981+
after the colon in the `impl`) *refers* to a type, rather than
19821982
defining one.
19831983

19841984
The type parameters bound by a trait are in scope in each of the
@@ -2000,7 +2000,7 @@ trait Eq {
20002000
}
20012001
20022002
// In an impl, `self` refers just to the value of the receiver
2003-
impl Eq for int {
2003+
impl int: Eq {
20042004
fn equals(&self, other: &int) -> bool { *other == *self }
20052005
}
20062006
~~~~
@@ -2021,10 +2021,10 @@ trait Shape { static fn new(area: float) -> Self; }
20212021
struct Circle { radius: float }
20222022
struct Square { length: float }
20232023
2024-
impl Shape for Circle {
2024+
impl Circle: Shape {
20252025
static fn new(area: float) -> Circle { Circle { radius: sqrt(area / pi) } }
20262026
}
2027-
impl Shape for Square {
2027+
impl Square: Shape {
20282028
static fn new(area: float) -> Square { Square { length: sqrt(area) } }
20292029
}
20302030
@@ -2084,7 +2084,7 @@ However, consider this function:
20842084

20852085
~~~~
20862086
# type Circle = int; type Rectangle = int;
2087-
# impl Drawable for int { fn draw(&self) {} }
2087+
# impl int: Drawable { fn draw(&self) {} }
20882088
# fn new_circle() -> int { 1 }
20892089
trait Drawable { fn draw(&self); }
20902090
@@ -2120,8 +2120,9 @@ value to an object:
21202120
# fn new_rectangle() -> Rectangle { true }
21212121
# fn draw_all(shapes: &[@Drawable]) {}
21222122
2123-
impl Drawable for Circle { fn draw(&self) { ... } }
2124-
impl Drawable for Rectangle { fn draw(&self) { ... } }
2123+
impl Circle: Drawable { fn draw(&self) { ... } }
2124+
2125+
impl Rectangle: Drawable { fn draw(&self) { ... } }
21252126
21262127
let c: @Circle = @new_circle();
21272128
let r: @Rectangle = @new_rectangle();
@@ -2139,7 +2140,7 @@ for example, an `@Circle` may not be cast to an `~Drawable`.
21392140
~~~
21402141
# type Circle = int; type Rectangle = int;
21412142
# trait Drawable { fn draw(&self); }
2142-
# impl Drawable for int { fn draw(&self) {} }
2143+
# impl int: Drawable { fn draw(&self) {} }
21432144
# fn new_circle() -> int { 1 }
21442145
# fn new_rectangle() -> int { 2 }
21452146
// A managed object
@@ -2179,10 +2180,10 @@ Now, we can implement `Circle` on a type only if we also implement `Shape`.
21792180
# use float::sqrt;
21802181
# fn square(x: float) -> float { x * x }
21812182
struct CircleStruct { center: Point, radius: float }
2182-
impl Circle for CircleStruct {
2183+
impl CircleStruct: Circle {
21832184
fn radius(&self) -> float { sqrt(self.area() / pi) }
21842185
}
2185-
impl Shape for CircleStruct {
2186+
impl CircleStruct: Shape {
21862187
fn area(&self) -> float { pi * square(self.radius) }
21872188
}
21882189
~~~~
@@ -2214,8 +2215,8 @@ Likewise, supertrait methods may also be called on trait objects.
22142215
# use float::sqrt;
22152216
# struct Point { x: float, y: float }
22162217
# struct CircleStruct { center: Point, radius: float }
2217-
# impl Circle for CircleStruct { fn radius(&self) -> float { sqrt(self.area() / pi) } }
2218-
# impl Shape for CircleStruct { fn area(&self) -> float { pi * square(self.radius) } }
2218+
# impl CircleStruct: Circle { fn radius(&self) -> float { sqrt(self.area() / pi) } }
2219+
# impl CircleStruct: Shape { fn area(&self) -> float { pi * square(self.radius) } }
22192220
22202221
let concrete = @CircleStruct{center:Point{x:3f,y:4f},radius:5f};
22212222
let mycircle: Circle = concrete as @Circle;

branches/try/mk/tests.mk

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ cleantestlibs:
103103
-name '*.dSYM' -o \
104104
-name '*.libaux' -o \
105105
-name '*.out' -o \
106-
-name '*.err' -o \
107-
-name '*.debugger.script' \
106+
-name '*.err' \
108107
| xargs rm -rf
109108

110109

@@ -171,7 +170,6 @@ check-stage$(1)-T-$(2)-H-$(3)-exec: \
171170
check-stage$(1)-T-$(2)-H-$(3)-rpass-full-exec \
172171
check-stage$(1)-T-$(2)-H-$(3)-crates-exec \
173172
check-stage$(1)-T-$(2)-H-$(3)-bench-exec \
174-
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-exec \
175173
check-stage$(1)-T-$(2)-H-$(3)-doc-exec \
176174
check-stage$(1)-T-$(2)-H-$(3)-pretty-exec
177175

@@ -286,7 +284,6 @@ CFAIL_RC := $(wildcard $(S)src/test/compile-fail/*.rc)
286284
CFAIL_RS := $(wildcard $(S)src/test/compile-fail/*.rs)
287285
BENCH_RS := $(wildcard $(S)src/test/bench/*.rs)
288286
PRETTY_RS := $(wildcard $(S)src/test/pretty/*.rs)
289-
DEBUGINFO_RS := $(wildcard $(S)src/test/debug-info/*.rs)
290287

291288
# perf tests are the same as bench tests only they run under
292289
# a performance monitor.
@@ -299,7 +296,6 @@ CFAIL_TESTS := $(CFAIL_RC) $(CFAIL_RS)
299296
BENCH_TESTS := $(BENCH_RS)
300297
PERF_TESTS := $(PERF_RS)
301298
PRETTY_TESTS := $(PRETTY_RS)
302-
DEBUGINFO_TESTS := $(DEBUGINFO_RS)
303299

304300
CTEST_SRC_BASE_rpass = run-pass
305301
CTEST_BUILD_BASE_rpass = run-pass
@@ -331,15 +327,6 @@ CTEST_BUILD_BASE_perf = perf
331327
CTEST_MODE_perf = run-pass
332328
CTEST_RUNTOOL_perf = $(CTEST_PERF_RUNTOOL)
333329

334-
CTEST_SRC_BASE_debuginfo = debug-info
335-
CTEST_BUILD_BASE_debuginfo = debug-info
336-
CTEST_MODE_debuginfo = debug-info
337-
CTEST_RUNTOOL_debuginfo = $(CTEST_RUNTOOL)
338-
339-
ifeq ($(CFG_GDB),)
340-
CTEST_DISABLE_debuginfo = "no gdb found"
341-
endif
342-
343330
define DEF_CTEST_VARS
344331

345332
# All the per-stage build rules you might want to call from the
@@ -362,7 +349,7 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
362349
--rustc-path $$(HBIN$(1)_H_$(3))/rustc$$(X) \
363350
--aux-base $$(S)src/test/auxiliary/ \
364351
--stage-id stage$(1)-$(2) \
365-
--rustcflags "$$(CFG_RUSTC_FLAGS) --target=$(2)" \
352+
--rustcflags "$$(CFG_RUSTC_FLAGS) --target=$(2)" \
366353
$$(CTEST_TESTARGS)
367354

368355
CTEST_DEPS_rpass_$(1)-T-$(2)-H-$(3) = $$(RPASS_TESTS)
@@ -371,7 +358,6 @@ CTEST_DEPS_rfail_$(1)-T-$(2)-H-$(3) = $$(RFAIL_TESTS)
371358
CTEST_DEPS_cfail_$(1)-T-$(2)-H-$(3) = $$(CFAIL_TESTS)
372359
CTEST_DEPS_bench_$(1)-T-$(2)-H-$(3) = $$(BENCH_TESTS)
373360
CTEST_DEPS_perf_$(1)-T-$(2)-H-$(3) = $$(PERF_TESTS)
374-
CTEST_DEPS_debuginfo_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_TESTS)
375361

376362
endef
377363

@@ -391,8 +377,6 @@ CTEST_ARGS$(1)-T-$(2)-H-$(3)-$(4) := \
391377

392378
check-stage$(1)-T-$(2)-H-$(3)-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4))
393379

394-
ifeq ($$(CTEST_DISABLE_$(4)),)
395-
396380
$$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
397381
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
398382
$$(CTEST_DEPS_$(4)_$(1)-T-$(2)-H-$(3))
@@ -402,20 +386,9 @@ $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
402386
--logfile $$(call TEST_LOG_FILE,$(1),$(2),$(3),$(4)) \
403387
&& touch $$@
404388

405-
else
406-
407-
$$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
408-
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
409-
$$(CTEST_DEPS_$(4)_$(1)-T-$(2)-H-$(3))
410-
@$$(call E, run $(4): $$<)
411-
@$$(call E, warning: tests disabled: $$(CTEST_DISABLE_$(4)))
412-
touch $$@
413-
414-
endif
415-
416389
endef
417390

418-
CTEST_NAMES = rpass rpass-full rfail cfail bench perf debuginfo
391+
CTEST_NAMES = rpass rpass-full rfail cfail bench perf
419392

420393
$(foreach host,$(CFG_TARGET_TRIPLES), \
421394
$(eval $(foreach target,$(CFG_TARGET_TRIPLES), \
@@ -523,7 +496,6 @@ TEST_GROUPS = \
523496
cfail \
524497
bench \
525498
perf \
526-
debuginfo \
527499
doc \
528500
$(foreach docname,$(DOC_TEST_NAMES),$(docname)) \
529501
pretty \

branches/try/src/compiletest/common.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the
2-
// COPYRIGHT file at the top-level directory of this distribution and at
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
@@ -18,7 +18,6 @@ pub enum mode {
1818
mode_run_fail,
1919
mode_run_pass,
2020
mode_pretty,
21-
mode_debug_info,
2221
}
2322

2423
pub type config = {

0 commit comments

Comments
 (0)