Skip to content

Commit a211525

Browse files
committed
---
yaml --- r: 108379 b: refs/heads/dist-snap c: 57d273f h: refs/heads/master i: 108377: eee8676 108375: d433733 v: v3
1 parent 0519128 commit a211525

File tree

532 files changed

+2110
-1789
lines changed

Some content is hidden

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

532 files changed

+2110
-1789
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 2b64cb294c7ceae003694e663458025a79f11da4
9+
refs/heads/dist-snap: 57d273f65e7dee2fb9a643a55d9337d2f75ee662
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ config.mk
6060
/rt/
6161
/rustllvm/
6262
/test/
63-
/build/
63+
/build
6464
/inst/
6565
/mingw-build/
6666
src/.DS_Store

branches/dist-snap/mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ CFG_VERSION_WIN = $(subst -pre,,$(CFG_RELEASE))
4545
# and include all of the .d files in one fell swoop.
4646
ALL_OBJ_FILES :=
4747

48-
ifneq ($(NO_MAKEFILE_DEPS),)
48+
ifneq ($(NO_MKFILE_DEPS),)
4949
MKFILE_DEPS :=
5050
else
5151
MKFILE_DEPS := config.stamp $(call rwildcard,$(CFG_SRC_DIR)mk/,*)

branches/dist-snap/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ CFG_GCCISH_DEF_FLAG_arm-unknown-linux-gnueabi := -Wl,--export-dynamic,--dynamic-
350350
CFG_GCCISH_PRE_LIB_FLAGS_arm-unknown-linux-gnueabi := -Wl,-whole-archive
351351
CFG_GCCISH_POST_LIB_FLAGS_arm-unknown-linux-gnueabi := -Wl,-no-whole-archive
352352
CFG_DEF_SUFFIX_arm-unknown-linux-gnueabi := .linux.def
353-
CFG_LLC_FLAGS_arm-unknown-linux-gnueabi := -arm-enable-ehabi -arm-enable-ehabi-descriptors
353+
CFG_LLC_FLAGS_arm-unknown-linux-gnueabi :=
354354
CFG_INSTALL_NAME_arm-unknown-linux-gnueabi =
355355
CFG_LIBUV_LINK_FLAGS_arm-unknown-linux-gnueabi =
356356
CFG_EXE_SUFFIX_arm-unknown-linux-gnueabi :=

branches/dist-snap/mk/tests.mk

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,6 @@ endif
174174
check: cleantestlibs cleantmptestlogs tidy all check-stage2
175175
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
176176

177-
check-notidy: cleantestlibs cleantmptestlogs all check-stage2
178-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
179-
180-
check-full: cleantestlibs cleantmptestlogs tidy \
181-
all check-stage1 check-stage2 check-stage3
182-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
183-
184-
check-test: cleantestlibs cleantmptestlogs all check-stage2-rfail
185-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
186-
187177
check-lite: cleantestlibs cleantmptestlogs \
188178
$(foreach crate,$(TARGET_CRATES),check-stage2-$(crate)) \
189179
check-stage2-rpass \

branches/dist-snap/src/compiletest/compiletest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#[allow(non_camel_case_types)];
1414
#[deny(warnings)];
1515

16-
extern mod extra;
17-
extern mod getopts;
16+
extern crate extra;
17+
extern crate getopts;
1818

1919
use std::os;
2020
use std::io;

branches/dist-snap/src/compiletest/procsrv.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ pub fn run(lib_path: &str,
5151
let env = env + target_env(lib_path, prog);
5252
let mut opt_process = run::Process::new(prog, args, run::ProcessOptions {
5353
env: Some(env),
54-
dir: None,
55-
in_fd: None,
56-
out_fd: None,
57-
err_fd: None
54+
.. run::ProcessOptions::new()
5855
});
5956

6057
match opt_process {
@@ -83,10 +80,7 @@ pub fn run_background(lib_path: &str,
8380
let env = env + target_env(lib_path, prog);
8481
let opt_process = run::Process::new(prog, args, run::ProcessOptions {
8582
env: Some(env),
86-
dir: None,
87-
in_fd: None,
88-
out_fd: None,
89-
err_fd: None
83+
.. run::ProcessOptions::new()
9084
});
9185

9286
match opt_process {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico" />
1+
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico" />

branches/dist-snap/src/doc/guide-ffi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl<T: Send> Drop for Unique<T> {
229229
let x = mem::uninit(); // dummy value to swap in
230230
// We need to move the object out of the box, so that
231231
// the destructor is called (at the end of this scope.)
232-
ptr::replace_ptr(self.ptr, x);
232+
ptr::replace(self.ptr, x);
233233
free(self.ptr as *mut c_void)
234234
}
235235
}
@@ -306,7 +306,7 @@ which would call back to `callback()` in Rust.
306306
The former example showed how a global function can be called from C code.
307307
However it is often desired that the callback is targetted to a special
308308
Rust object. This could be the object that represents the wrapper for the
309-
respective C object.
309+
respective C object.
310310

311311
This can be achieved by passing an unsafe pointer to the object down to the
312312
C library. The C library can then include the pointer to the Rust object in
@@ -335,7 +335,7 @@ extern {
335335
fn main() {
336336
// Create the object that will be referenced in the callback
337337
let rust_object = ~RustObject{a: 5, ...};
338-
338+
339339
unsafe {
340340
// Gets a raw pointer to the object
341341
let target_addr:*RustObject = ptr::to_unsafe_ptr(rust_object);
@@ -380,8 +380,8 @@ Rust is to use channels (in `std::comm`) to forward data from the C thread
380380
that invoked the callback into a Rust task.
381381

382382
If an asychronous callback targets a special object in the Rust address space
383-
it is also absolutely necessary that no more callbacks are performed by the
384-
C library after the respective Rust object gets destroyed.
383+
it is also absolutely necessary that no more callbacks are performed by the
384+
C library after the respective Rust object gets destroyed.
385385
This can be achieved by unregistering the callback in the object's
386386
destructor and designing the library in a way that guarantees that no
387387
callback will be performed after unregistration.

branches/dist-snap/src/doc/guide-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ fn main() {}
232232
Whereas this program explicitly opts into using a particular runtime
233233

234234
~~~{.rust}
235-
extern mod green;
235+
extern crate green;
236236
237237
#[start]
238238
fn start(argc: int, argv: **u8) -> int {

branches/dist-snap/src/doc/guide-tasks.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ later.
285285
The basic example below illustrates this.
286286

287287
~~~
288-
# extern mod sync;
288+
# extern crate sync;
289289
290290
# fn main() {
291291
# fn make_a_sandwich() {};
@@ -310,7 +310,7 @@ Here is another example showing how futures allow you to background computations
310310
be distributed on the available cores.
311311

312312
~~~
313-
# extern mod sync;
313+
# extern crate sync;
314314
# use std::vec;
315315
fn partial_sum(start: uint) -> f64 {
316316
let mut local_sum = 0f64;
@@ -346,7 +346,7 @@ Here is a small example showing how to use Arcs. We wish to run concurrently sev
346346
a single large vector of floats. Each task needs the full vector to perform its duty.
347347

348348
~~~
349-
# extern mod sync;
349+
# extern crate sync;
350350
# use std::vec;
351351
# use std::rand;
352352
use sync::Arc;
@@ -379,7 +379,7 @@ at the power given as argument and takes the inverse power of this value). The A
379379
created by the line
380380

381381
~~~
382-
# extern mod sync;
382+
# extern crate sync;
383383
# use sync::Arc;
384384
# use std::vec;
385385
# use std::rand;
@@ -392,7 +392,7 @@ let numbers_arc=Arc::new(numbers);
392392
and a clone of it is sent to each task
393393

394394
~~~
395-
# extern mod sync;
395+
# extern crate sync;
396396
# use sync::Arc;
397397
# use std::vec;
398398
# use std::rand;
@@ -409,7 +409,7 @@ copying only the wrapper and not its contents.
409409
Each task recovers the underlying data by
410410

411411
~~~
412-
# extern mod sync;
412+
# extern crate sync;
413413
# use sync::Arc;
414414
# use std::vec;
415415
# use std::rand;
@@ -499,7 +499,7 @@ the string in response. The child terminates when it receives `0`.
499499
Here is the function that implements the child task:
500500

501501
~~~
502-
# extern mod sync;
502+
# extern crate sync;
503503
# fn main() {
504504
# use sync::DuplexStream;
505505
fn stringifier(channel: &DuplexStream<~str, uint>) {
@@ -524,7 +524,7 @@ response itself is simply the stringified version of the received value,
524524
Here is the code for the parent task:
525525
526526
~~~
527-
# extern mod sync;
527+
# extern crate sync;
528528
# use std::task::spawn;
529529
# use sync::DuplexStream;
530530
# fn stringifier(channel: &DuplexStream<~str, uint>) {

branches/dist-snap/src/doc/guide-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ amount.
185185
For example:
186186

187187
~~~
188-
extern mod extra;
188+
extern crate extra;
189189
use std::vec;
190190
use extra::test::BenchHarness;
191191
@@ -243,7 +243,7 @@ recognize that some calculation has no external effects and remove
243243
it entirely.
244244

245245
~~~
246-
extern mod extra;
246+
extern crate extra;
247247
use extra::test::BenchHarness;
248248
249249
#[bench]

branches/dist-snap/src/doc/index.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,24 @@ li {list-style-type: none; }
2424

2525
# Libraries
2626

27-
* [The standard library, `libstd`](std/index.html)
28-
* [The extra library, `libextra`](extra/index.html)
29-
30-
* [The M:N runtime library, `libgreen`](green/index.html)
31-
* [The 1:1 runtime library, `libnative`](native/index.html)
32-
33-
* [The Rust libuv library, `librustuv`](rustuv/index.html)
34-
35-
* [The Rust parser, `libsyntax`](syntax/index.html)
36-
* [The Rust compiler, `librustc`](rustc/index.html)
27+
* [The standard library, `std`](std/index.html)
3728

3829
* [The `arena` allocation library](arena/index.html)
39-
* [The `num` arbitrary precision numerics library](num/index.html)
4030
* [The `collections` library](collections/index.html)
31+
* [The `extra` library of extra stuff](extra/index.html)
4132
* [The `flate` compression library](flate/index.html)
4233
* [The `fourcc` four-character code library](fourcc/index.html)
4334
* [The `getopts` argument parsing library](getopts/index.html)
4435
* [The `glob` file path matching library](glob/index.html)
36+
* [The `green` M:N runtime library](green/index.html)
37+
* [The `native` 1:1 threading runtime](native/index.html)
38+
* [The `num` arbitrary precision numerics library](num/index.html)
39+
* [The `rustc` compiler](rustc/index.html)
40+
* [The `rustuv` M:N I/O library](rustuv/index.html)
4541
* [The `semver` version collation library](semver/index.html)
4642
* [The `serialize` value encoding/decoding library](serialize/index.html)
4743
* [The `sync` library for concurrency-enabled mechanisms and primitives](sync/index.html)
44+
* [The `syntax` library, the Rust parser](syntax/index.html)
4845
* [The `term` terminal-handling library](term/index.html)
4946
* [The `uuid` 128-bit universally unique identifier library](uuid/index.html)
5047

branches/dist-snap/src/doc/po/ja/complement-cheatsheet.md.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ msgstr "## タプル"
273273
#. type: Plain text
274274
#: src/doc/complement-cheatsheet.md:122
275275
#, fuzzy, no-wrap
276-
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
276+
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
277277
msgid ""
278278
"~~~\n"
279279
"struct Foo {\n"
@@ -282,7 +282,7 @@ msgid ""
282282
msgstr ""
283283
"~~~~ {.ignore}\n"
284284
"// main.rs\n"
285-
"extern mod world;\n"
285+
"extern crate world;\n"
286286
"fn main() { println(~\"hello \" + world::explore()); }\n"
287287
"~~~~"
288288

branches/dist-snap/src/doc/po/ja/guide-conditions.md.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ msgstr "# 関数"
7979
#: src/doc/guide-conditions.md:262
8080
#, fuzzy
8181
#| msgid ""
82-
#| "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello "
82+
#| "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello "
8383
#| "\" + world::explore()); } ~~~~"
8484
msgid "fn main() {"
8585
msgstr ""
8686
"~~~~ {.ignore}\n"
8787
"// main.rs\n"
88-
"extern mod world;\n"
88+
"extern crate world;\n"
8989
"fn main() { println(~\"hello \" + world::explore()); }\n"
9090
"~~~~"
9191

branches/dist-snap/src/doc/po/ja/guide-container.md.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ msgstr "# イントロダクション"
7474
#. type: Plain text
7575
#: src/doc/guide-container.md:85
7676
#, fuzzy, no-wrap
77-
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
77+
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
7878
msgid ""
7979
"impl Iterator<int> for ZeroStream {\n"
8080
" fn next(&mut self) -> Option<int> {\n"
@@ -85,7 +85,7 @@ msgid ""
8585
msgstr ""
8686
"~~~~ {.ignore}\n"
8787
"// main.rs\n"
88-
"extern mod world;\n"
88+
"extern crate world;\n"
8989
"fn main() { println(~\"hello \" + world::explore()); }\n"
9090
"~~~~"
9191

branches/dist-snap/src/doc/po/ja/guide-ffi.md.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ msgstr "## 最小限の例"
7070
#. type: Plain text
7171
#: src/doc/guide-ffi.md:323
7272
#, fuzzy, no-wrap
73-
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
73+
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
7474
msgid ""
7575
"struct RustObject {\n"
7676
" a: i32,\n"
@@ -79,7 +79,7 @@ msgid ""
7979
msgstr ""
8080
"~~~~ {.ignore}\n"
8181
"// main.rs\n"
82-
"extern mod world;\n"
82+
"extern crate world;\n"
8383
"fn main() { println(~\"hello \" + world::explore()); }\n"
8484
"~~~~"
8585

0 commit comments

Comments
 (0)