Skip to content

Commit d419bae

Browse files
committed
---
yaml --- r: 149587 b: refs/heads/try2 c: 7fbcda1 h: refs/heads/master i: 149585: 356600d 149583: d2cd925 v: v3
1 parent 91ffbea commit d419bae

File tree

453 files changed

+6665
-6067
lines changed

Some content is hidden

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

453 files changed

+6665
-6067
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: fd02f908befa8f3bd57ef9100970ff783830db5f
8+
refs/heads/try2: 7fbcda1c655736ec5bc058c25c6e720030ee039e
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.travis.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,10 @@ before_script:
3939
# manually disables bringing in these two libraries, but the stock LLVM was
4040
# apparently built with these options. We provide these options when building so
4141
# the `rustc` binary can successfully link.
42-
#
43-
# As a result of https://github.com/travis-ci/travis-ci/issues/1066, we run
44-
# everything in one large command instead of multiple commands.
45-
script: |
46-
make tidy &&
47-
RUSTFLAGS="-C link-args='-lffi -lncurses'" make -j4 rustc-stage1 &&
48-
make check-stage1-std check-stage1-rpass check-stage1-cfail check-stage1-rfail
42+
script:
43+
- make tidy
44+
- RUSTFLAGS="-C link-args='-lffi -lncurses'" make -j4 rustc-stage1
45+
- make check-stage1-std check-stage1-rpass check-stage1-cfail check-stage1-rfail
4946

5047
env:
5148
- NO_BENCH=1

branches/try2/configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@ do
803803
make_dir $h/test/doc-guide-pointers
804804
make_dir $h/test/doc-guide-container
805805
make_dir $h/test/doc-guide-tasks
806+
make_dir $h/test/doc-guide-conditions
806807
make_dir $h/test/doc-complement-cheatsheet
807808
make_dir $h/test/doc-rust
808809
done

branches/try2/mk/crates.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
6565
collections time extra
6666
DEPS_rustdoc := rustc native:sundown serialize sync getopts collections \
6767
test time
68-
DEPS_flate := std extra native:miniz
68+
DEPS_flate := std native:miniz
6969
DEPS_arena := std collections
7070
DEPS_glob := std
71-
DEPS_serialize := std collections
72-
DEPS_term := std collections
71+
DEPS_serialize := std
72+
DEPS_term := std
7373
DEPS_semver := std
7474
DEPS_uuid := std serialize
7575
DEPS_sync := std
7676
DEPS_getopts := std
77-
DEPS_collections := std
77+
DEPS_collections := std serialize
7878
DEPS_fourcc := syntax std
79-
DEPS_num := std
79+
DEPS_num := std extra
8080
DEPS_test := std extra collections getopts serialize term
8181
DEPS_time := std serialize
8282

branches/try2/mk/main.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ endif
345345
ifdef CFG_DISABLE_RPATH
346346
ifeq ($$(OSTYPE_$(3)),apple-darwin)
347347
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
348-
DYLD_LIBRARY_PATH="$$$$DYLD_LIBRARY_PATH:$$(CURDIR)/$$(HLIB$(1)_H_$(3))"
348+
DYLD_LIBRARY_PATH="$$$$DYLD_LIBRARY_PATH:$$(HLIB$(1)_H_$(3))"
349349
else
350350
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
351-
LD_LIBRARY_PATH="$$$$LD_LIBRARY_PATH:$$(CURDIR)/$$(HLIB$(1)_H_$(3))"
351+
LD_LIBRARY_PATH="$$$$LD_LIBRARY_PATH:$$(HLIB$(1)_H_$(3))"
352352
endif
353353
else
354354
RPATH_VAR$(1)_T_$(2)_H_$(3) :=

branches/try2/mk/prepare.mk

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717
# It requires the following variables to be set:
1818
#
19-
# PREPARE_HOST - the host triple
19+
# PREPARE_HOST - the host triple
2020
# PREPARE_TARGETS - the target triples, space separated
2121
# PREPARE_DEST_DIR - the directory to put the image
2222

@@ -172,10 +172,7 @@ prepare-target-$(2)-host-$(3)-$(1): \
172172
$$(if $$(findstring $(2),$$(CFG_HOST)), \
173173
$$(foreach crate,$$(HOST_CRATES), \
174174
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(crate)),)
175-
# Only install if this host and target combo is being prepared. Also be sure to
176-
# *not* install the rlibs for host crates because there's no need to statically
177-
# link against most of them. They just produce a large amount of extra size
178-
# bloat.
175+
# Only install if this host and target combo is being prepared
179176
$$(if $$(findstring $(1), $$(PREPARE_STAGE)),\
180177
$$(if $$(findstring $(2), $$(PREPARE_TARGETS)),\
181178
$$(if $$(findstring $(3), $$(PREPARE_HOST)),\
@@ -185,7 +182,8 @@ prepare-target-$(2)-host-$(3)-$(1): \
185182
$$(call PREPARE_LIB,$$(call CFG_RLIB_GLOB,$$(crate))))\
186183
$$(if $$(findstring $(2),$$(CFG_HOST)),\
187184
$$(foreach crate,$$(HOST_CRATES),\
188-
$$(call PREPARE_LIB,$$(call CFG_LIB_GLOB_$(2),$$(crate)))),)\
185+
$$(call PREPARE_LIB,$$(call CFG_LIB_GLOB_$(2),$$(crate)))\
186+
$$(call PREPARE_LIB,$$(call CFG_RLIB_GLOB,$$(crate)))),)\
189187
$$(call PREPARE_LIB,libmorestack.a) \
190188
$$(call PREPARE_LIB,libcompiler-rt.a),),),)
191189
endef

branches/try2/mk/tests.mk

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ endif
171171
# Main test targets
172172
######################################################################
173173

174-
check: cleantmptestlogs cleantestlibs tidy check-notidy
175-
176-
check-notidy: cleantmptestlogs cleantestlibs all check-stage2
174+
check: cleantestlibs cleantmptestlogs tidy all check-stage2
177175
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
178176

179177
check-lite: cleantestlibs cleantmptestlogs \
@@ -708,9 +706,8 @@ check-stage$(1)-T-$(2)-H-$(3)-doc-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3)
708706
ifeq ($(2),$$(CFG_BUILD))
709707
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4)): $$(DOCTESTDEP_$(1)_$(2)_$(3)_$(4))
710708
@$$(call E, run doc-$(4) [$(2)])
711-
$$(Q)$$(RPATH_VAR$(1)_T_$(2)_H_$(3)) \
712-
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) --test \
713-
$$(CRATEFILE_$(4)) --test-args "$$(TESTARGS)" && touch $$@
709+
$$(Q)$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) --test \
710+
$$(CRATEFILE_$(4)) --test-args "$$(TESTARGS)" && touch $$@
714711
else
715712
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4)):
716713
touch $$@
@@ -937,8 +934,7 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
937934
$(3)/test/run-make/$$* \
938935
"$$(CC_$(3)) $$(CFG_GCCISH_CFLAGS_$(3))" \
939936
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
940-
"$$(TESTNAME)" \
941-
"$$(RPATH_VAR$(1)_T_$(2)_H_$(3))"
937+
"$$(TESTNAME)"
942938
@touch $$@
943939
else
944940
# FIXME #11094 - The above rule doesn't work right for multiple targets

branches/try2/src/README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,6 @@ Source layout:
1010
| `libgreen/` | The M:N runtime library |
1111
| `libnative/` | The 1:1 runtime library |
1212
| `libsyntax/` | The Rust parser and pretty-printer |
13-
| `libcollections/` | A collection of useful data structures and containers |
14-
| `libnum/` | Extended number support library (complex, rational, etc) |
15-
| `libtest/` | Rust's test-runner code |
16-
| ------------------- | --------------------------------------------------------- |
17-
| `libarena/` | The arena (a fast but limited) memory allocator |
18-
| `libflate/` | Simple compression library |
19-
| `libfourcc/` | Data format identifier library |
20-
| `libgetopts/` | Get command-line-options library |
21-
| `libglob/` | Unix glob patterns library |
22-
| `libsemver/` | Rust's semantic versioning library |
23-
| `libserialize/` | Encode-Decode types library |
24-
| `libsync/` | Concurrency mechanisms and primitives |
25-
| `libterm/` | ANSI color library for terminals |
26-
| `libtime/` | Time operations library |
27-
| `libuuid/` | UUID's handling code |
2813
| ------------------- | --------------------------------------------------------- |
2914
| `rt/` | The runtime system |
3015
| `rt/rust_*.c` | - Some of the runtime services |
@@ -46,13 +31,8 @@ Source layout:
4631
| ------------------- | --------------------------------------------------------- |
4732
| `librustdoc/` | The Rust API documentation tool |
4833
| `libuv/` | The libuv submodule |
49-
| `librustuv/` | Rust libuv support code |
5034
| ------------------- | --------------------------------------------------------- |
5135
| `llvm/` | The LLVM submodule |
5236
| `rustllvm/` | LLVM support code |
5337
| ------------------- | --------------------------------------------------------- |
5438
| `etc/` | Scripts, editors support, misc |
55-
56-
57-
NOTE: This list (especially the second part of the table which contains modules and libraries)
58-
is highly volatile and subject to change.

branches/try2/src/compiletest/procsrv.rs

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

1111
use std::os;
12+
use std::run;
1213
use std::str;
13-
use std::io::process::{ProcessExit, Process, ProcessConfig, ProcessOutput};
14+
use std::io::process::ProcessExit;
1415

1516
#[cfg(target_os = "win32")]
1617
fn target_env(lib_path: &str, prog: &str) -> ~[(~str,~str)] {
@@ -35,26 +36,8 @@ fn target_env(lib_path: &str, prog: &str) -> ~[(~str,~str)] {
3536
#[cfg(target_os = "linux")]
3637
#[cfg(target_os = "macos")]
3738
#[cfg(target_os = "freebsd")]
38-
fn target_env(lib_path: &str, prog: &str) -> ~[(~str,~str)] {
39-
// Make sure we include the aux directory in the path
40-
let aux_path = prog + ".libaux";
41-
42-
let mut env = os::env();
43-
let var = if cfg!(target_os = "macos") {
44-
"DYLD_LIBRARY_PATH"
45-
} else {
46-
"LD_LIBRARY_PATH"
47-
};
48-
let prev = match env.iter().position(|&(ref k, _)| k.as_slice() == var) {
49-
Some(i) => env.remove(i).unwrap().val1(),
50-
None => ~"",
51-
};
52-
env.push((var.to_owned(), if prev.is_empty() {
53-
lib_path + ":" + aux_path
54-
} else {
55-
lib_path + ":" + aux_path + ":" + prev
56-
}));
57-
return env;
39+
fn target_env(_lib_path: &str, _prog: &str) -> ~[(~str,~str)] {
40+
os::env()
5841
}
5942

6043
pub struct Result {status: ProcessExit, out: ~str, err: ~str}
@@ -66,19 +49,17 @@ pub fn run(lib_path: &str,
6649
input: Option<~str>) -> Option<Result> {
6750

6851
let env = env + target_env(lib_path, prog);
69-
let mut opt_process = Process::configure(ProcessConfig {
70-
program: prog,
71-
args: args,
72-
env: Some(env.as_slice()),
73-
.. ProcessConfig::new()
52+
let mut opt_process = run::Process::new(prog, args, run::ProcessOptions {
53+
env: Some(env),
54+
.. run::ProcessOptions::new()
7455
});
7556

7657
match opt_process {
7758
Ok(ref mut process) => {
7859
for input in input.iter() {
79-
process.stdin.get_mut_ref().write(input.as_bytes()).unwrap();
60+
process.input().write(input.as_bytes()).unwrap();
8061
}
81-
let ProcessOutput { status, output, error } = process.wait_with_output();
62+
let run::ProcessOutput { status, output, error } = process.finish_with_output();
8263

8364
Some(Result {
8465
status: status,
@@ -94,20 +75,18 @@ pub fn run_background(lib_path: &str,
9475
prog: &str,
9576
args: &[~str],
9677
env: ~[(~str, ~str)],
97-
input: Option<~str>) -> Option<Process> {
78+
input: Option<~str>) -> Option<run::Process> {
9879

9980
let env = env + target_env(lib_path, prog);
100-
let opt_process = Process::configure(ProcessConfig {
101-
program: prog,
102-
args: args,
103-
env: Some(env.as_slice()),
104-
.. ProcessConfig::new()
81+
let opt_process = run::Process::new(prog, args, run::ProcessOptions {
82+
env: Some(env),
83+
.. run::ProcessOptions::new()
10584
});
10685

10786
match opt_process {
10887
Ok(mut process) => {
10988
for input in input.iter() {
110-
process.stdin.get_mut_ref().write(input.as_bytes()).unwrap();
89+
process.input().write(input.as_bytes()).unwrap();
11190
}
11291

11392
Some(process)

branches/try2/src/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
360360
stdout: out,
361361
stderr: err,
362362
cmdline: cmdline};
363-
process.signal_kill().unwrap();
363+
process.force_destroy().unwrap();
364364
}
365365

366366
_=> {

branches/try2/src/doc/complement-cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Description C signature Equivalent
211211
---------------------- ---------------------------------------------- ------------------------------------------
212212
no parameters `void foo(void);` `fn foo();`
213213
return value `int foo(void);` `fn foo() -> c_int;`
214-
function parameters `void foo(int x, int y);` `fn foo(x: c_int, y: c_int);`
214+
function parameters `void foo(int x, int y);` `fn foo(x: int, y: int);`
215215
in-out pointers `void foo(const int* in_ptr, int* out_ptr);` `fn foo(in_ptr: *c_int, out_ptr: *mut c_int);`
216216
217217
Note: The Rust signatures should be wrapped in an `extern "ABI" { ... }` block.

branches/try2/src/doc/guide-container.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ order.
3838
Each `HashMap` instance has a random 128-bit key to use with a keyed hash,
3939
making the order of a set of keys in a given hash table randomized. Rust
4040
provides a [SipHash](https://131002.net/siphash/) implementation for any type
41-
implementing the `Hash` trait.
41+
implementing the `IterBytes` trait.
4242

4343
## Double-ended queues
4444

@@ -186,12 +186,12 @@ let mut calls = 0;
186186
let it = xs.iter().scan((), |_, x| {
187187
calls += 1;
188188
if *x < 3 { Some(x) } else { None }});
189-
189+
190190
// the iterator will only yield 1 and 2 before returning None
191191
// If we were to call it 5 times, calls would end up as 5, despite
192192
// only 2 values being yielded (and therefore 3 unique calls being
193193
// made). The fuse() adaptor can fix this.
194-
194+
195195
let mut it = it.fuse();
196196
it.next();
197197
it.next();

branches/try2/src/doc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ li {list-style-type: none; }
1919
* [Foreign Function Interface](guide-ffi.html)
2020
* [Macros](guide-macros.html)
2121
* [Testing](guide-testing.html)
22+
* [Conditions](guide-conditions.html)
2223
* [Rust's Runtime](guide-runtime.html)
2324

2425
# Libraries
@@ -42,7 +43,6 @@ li {list-style-type: none; }
4243
* [The `sync` library for concurrency-enabled mechanisms and primitives](sync/index.html)
4344
* [The `syntax` library, the Rust parser](syntax/index.html)
4445
* [The `term` terminal-handling library](term/index.html)
45-
* [The `test` library](test/index.html)
4646
* [The `uuid` 128-bit universally unique identifier library](uuid/index.html)
4747

4848
# Tooling

branches/try2/src/doc/po/ja/tutorial.md.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4421,15 +4421,15 @@ msgstr ""
44214421
#, fuzzy
44224422
#| msgid ""
44234423
#| "The full list of derivable traits is `Eq`, `TotalEq`, `Ord`, `TotalOrd`, "
4424-
#| "`Encodable` `Decodable`, `Clone`, `DeepClone`, `Hash`, `Rand`, "
4424+
#| "`Encodable` `Decodable`, `Clone`, `DeepClone`, `IterBytes`, `Rand`, "
44254425
#| "`Zero`, and `ToStr`."
44264426
msgid ""
44274427
"The full list of derivable traits is `Eq`, `TotalEq`, `Ord`, `TotalOrd`, "
4428-
"`Encodable` `Decodable`, `Clone`, `DeepClone`, `Hash`, `Rand`, "
4428+
"`Encodable` `Decodable`, `Clone`, `DeepClone`, `IterBytes`, `Rand`, "
44294429
"`Default`, `Zero`, and `ToStr`."
44304430
msgstr ""
44314431
"実装を自動的に導出可能なトレイトは、 `Eq`, `TotalEq`, `Ord`, `TotalOrd`, "
4432-
"`Encodable` `Decodable`, `Clone`, `DeepClone`, `Hash`, `Rand`, `Zero`, "
4432+
"`Encodable` `Decodable`, `Clone`, `DeepClone`, `IterBytes`, `Rand`, `Zero`, "
44334433
"および `ToStr` です。."
44344434

44354435
#. type: Plain text

branches/try2/src/doc/rust.md

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

469469
~~~~
470-
# struct HashMap<K, V>;
470+
# use std::hashmap::HashMap;
471471
# fn f() {
472472
# fn id<T>(t: T) -> T { t }
473473
type T = HashMap<int,~str>; // Type arguments used in a type expression
@@ -875,16 +875,16 @@ An example of what will and will not work for `use` items:
875875

876876
~~~~
877877
# #[allow(unused_imports)];
878-
use foo::native::start; // good: foo is at the root of the crate
878+
use foo::extra::json; // good: foo is at the root of the crate
879879
use foo::baz::foobaz; // good: foo is at the root of the crate
880880
881881
mod foo {
882-
extern crate native;
882+
extern crate extra;
883883
884-
use foo::native::start; // good: foo is at crate root
885-
// use native::start; // bad: native is not at the crate root
886-
use self::baz::foobaz; // good: self refers to module 'foo'
887-
use foo::bar::foobar; // good: foo is at crate root
884+
use foo::extra::json; // good: foo is at crate root
885+
// use extra::json::*; // bad: extra is not at the crate root
886+
use self::baz::foobaz; // good: self refers to module 'foo'
887+
use foo::bar::foobar; // good: foo is at crate root
888888
889889
pub mod bar {
890890
pub fn foobar() { }
@@ -2035,7 +2035,7 @@ Supported traits for `deriving` are:
20352035
* Comparison traits: `Eq`, `TotalEq`, `Ord`, `TotalOrd`.
20362036
* Serialization: `Encodable`, `Decodable`. These require `serialize`.
20372037
* `Clone` and `DeepClone`, to perform (deep) copies.
2038-
* `Hash`, to iterate over the bytes in a data type.
2038+
* `IterBytes`, to iterate over the bytes in a data type.
20392039
* `Rand`, to create a random instance of a data type.
20402040
* `Default`, to create an empty instance of a data type.
20412041
* `Zero`, to create an zero instance of a numeric data type.

0 commit comments

Comments
 (0)