Skip to content

Commit a6e01c1

Browse files
committed
---
yaml --- r: 102137 b: refs/heads/master c: abde5ed h: refs/heads/master i: 102135: 70906ae v: v3
1 parent 8a6cf87 commit a6e01c1

File tree

349 files changed

+4002
-4347
lines changed

Some content is hidden

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

349 files changed

+4002
-4347
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 994b48cf5282339150157de1f6eb749102359649
2+
refs/heads/master: abde5ed0118a00dea07511f12bfab9e999223b62
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6e7f170fedd3c526a643c0b2d13863acd982be02
55
refs/heads/try: a97642026c18a624ff6ea01075dd9550f8ed07ff

trunk/.travis.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

trunk/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ then
604604
LLVM_VERSION=$($LLVM_CONFIG --version)
605605

606606
case $LLVM_VERSION in
607-
(3.[2-5]svn|3.[2-5])
607+
(3.[2-4]svn|3.[2-4])
608608
msg "found ok version of LLVM: $LLVM_VERSION"
609609
;;
610610
(*)
@@ -626,7 +626,7 @@ then
626626
| cut -d ' ' -f 2)
627627

628628
case $CFG_CLANG_VERSION in
629-
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* | 3.5* )
629+
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* )
630630
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
631631
CFG_C_COMPILER="clang"
632632
;;

trunk/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

trunk/mk/main.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,8 @@ LLVM_TOOLS=bugpoint llc llvm-ar llvm-as llvm-dis llvm-mc opt llvm-extract
218218
define DEF_LLVM_VARS
219219
# The configure script defines these variables with the target triples
220220
# separated by Z. This defines new ones with the expected format.
221-
ifeq ($$(CFG_LLVM_ROOT),)
222221
CFG_LLVM_BUILD_DIR_$(1):=$$(CFG_LLVM_BUILD_DIR_$(subst -,_,$(1)))
223222
CFG_LLVM_INST_DIR_$(1):=$$(CFG_LLVM_INST_DIR_$(subst -,_,$(1)))
224-
else
225-
CFG_LLVM_INST_DIR_$(1):=$$(CFG_LLVM_ROOT)
226-
endif
227223

228224
# Any rules that depend on LLVM should depend on LLVM_CONFIG
229225
LLVM_CONFIG_$(1):=$$(CFG_LLVM_INST_DIR_$(1))/bin/llvm-config$$(X_$(1))

trunk/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

trunk/mk/tests.mk

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

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

177179
check-lite: cleantestlibs cleantmptestlogs \

trunk/src/compiletest/procsrv.rs

Lines changed: 12 additions & 15 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)] {
@@ -48,19 +49,17 @@ pub fn run(lib_path: &str,
4849
input: Option<~str>) -> Option<Result> {
4950

5051
let env = env + target_env(lib_path, prog);
51-
let mut opt_process = Process::configure(ProcessConfig {
52-
program: prog,
53-
args: args,
54-
env: Some(env.as_slice()),
55-
.. ProcessConfig::new()
52+
let mut opt_process = run::Process::new(prog, args, run::ProcessOptions {
53+
env: Some(env),
54+
.. run::ProcessOptions::new()
5655
});
5756

5857
match opt_process {
5958
Ok(ref mut process) => {
6059
for input in input.iter() {
61-
process.stdin.get_mut_ref().write(input.as_bytes()).unwrap();
60+
process.input().write(input.as_bytes()).unwrap();
6261
}
63-
let ProcessOutput { status, output, error } = process.wait_with_output();
62+
let run::ProcessOutput { status, output, error } = process.finish_with_output();
6463

6564
Some(Result {
6665
status: status,
@@ -76,20 +75,18 @@ pub fn run_background(lib_path: &str,
7675
prog: &str,
7776
args: &[~str],
7877
env: ~[(~str, ~str)],
79-
input: Option<~str>) -> Option<Process> {
78+
input: Option<~str>) -> Option<run::Process> {
8079

8180
let env = env + target_env(lib_path, prog);
82-
let opt_process = Process::configure(ProcessConfig {
83-
program: prog,
84-
args: args,
85-
env: Some(env.as_slice()),
86-
.. ProcessConfig::new()
81+
let opt_process = run::Process::new(prog, args, run::ProcessOptions {
82+
env: Some(env),
83+
.. run::ProcessOptions::new()
8784
});
8885

8986
match opt_process {
9087
Ok(mut process) => {
9188
for input in input.iter() {
92-
process.stdin.get_mut_ref().write(input.as_bytes()).unwrap();
89+
process.input().write(input.as_bytes()).unwrap();
9390
}
9491

9592
Some(process)

trunk/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
_=> {

trunk/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.

trunk/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();

trunk/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

trunk/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.

trunk/src/doc/tutorial.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ type was invalid because the size was infinite!
10261026

10271027
An *owned box* (`~`) uses a dynamic memory allocation to provide the invariant
10281028
of always being the size of a pointer, regardless of the contained type. This
1029-
can be leveraged to create a valid `List` definition:
1029+
can be leverage to create a valid `List` definition:
10301030

10311031
~~~
10321032
enum List {
@@ -1977,8 +1977,8 @@ illegal to copy and pass by value.
19771977
Generic `type`, `struct`, and `enum` declarations follow the same pattern:
19781978
19791979
~~~~
1980-
extern crate collections;
1981-
type Set<T> = collections::HashMap<T, ()>;
1980+
use std::hashmap::HashMap;
1981+
type Set<T> = HashMap<T, ()>;
19821982
19831983
struct Stack<T> {
19841984
elements: ~[T]
@@ -1988,7 +1988,6 @@ enum Option<T> {
19881988
Some(T),
19891989
None
19901990
}
1991-
# fn main() {}
19921991
~~~~
19931992
19941993
These declarations can be instantiated to valid types like `Set<int>`,
@@ -2519,13 +2518,13 @@ of type `ABC` can be randomly generated and converted to a string:
25192518
#[deriving(Eq)]
25202519
struct Circle { radius: f64 }
25212520
2522-
#[deriving(Rand, Show)]
2521+
#[deriving(Rand, ToStr)]
25232522
enum ABC { A, B, C }
25242523
~~~
25252524

25262525
The full list of derivable traits is `Eq`, `TotalEq`, `Ord`,
25272526
`TotalOrd`, `Encodable` `Decodable`, `Clone`, `DeepClone`,
2528-
`Hash`, `Rand`, `Default`, `Zero`, `FromPrimitive` and `Show`.
2527+
`IterBytes`, `Rand`, `Default`, `Zero`, `FromPrimitive` and `Show`.
25292528

25302529
# Crates and the module system
25312530

trunk/src/etc/combine-tests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ def scrub(b):
5555
#[crate_id=\"run_pass_stage2#0.1\"];
5656
#[feature(globs, macro_rules, struct_variant, managed_boxes)];
5757
#[allow(warnings)];
58-
extern crate collections;
59-
extern crate extra;
6058
"""
6159
)
6260
for t in stage2_tests:

trunk/src/etc/generate-deriving-span-tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ def write_file(name, string):
119119
('Clone', [], 1), ('DeepClone', ['Clone'], 1),
120120
('Eq', [], 2), ('Ord', [], 8),
121121
('TotalEq', [], 1), ('TotalOrd', ['TotalEq'], 1),
122-
('Show', [], 1),
123-
('Hash', [], 1)]:
122+
('Show', [], 1)]:
124123
traits[trait] = (ALL, supers, errs)
125124

126125
for (trait, (types, super_traits, error_count)) in traits.items():

trunk/src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ syn keyword rustTrait GenericPath Path PosixPath WindowsPath
9393
syn keyword rustTrait RawPtr
9494
syn keyword rustTrait Buffer Writer Reader Seek
9595
syn keyword rustTrait Str StrVector StrSlice OwnedStr IntoMaybeOwned
96+
syn keyword rustTrait IterBytes
9697
syn keyword rustTrait ToStr IntoStr
9798
syn keyword rustTrait Tuple1 Tuple2 Tuple3 Tuple4
9899
syn keyword rustTrait Tuple5 Tuple6 Tuple7 Tuple8

0 commit comments

Comments
 (0)