Skip to content

Commit 914dfd5

Browse files
committed
---
yaml --- r: 151215 b: refs/heads/try2 c: 77a975d h: refs/heads/master i: 151213: e916480 151211: 33e968b 151207: 631a603 151199: 7603e9b v: v3
1 parent 10629f6 commit 914dfd5

File tree

201 files changed

+2327
-15110
lines changed

Some content is hidden

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

201 files changed

+2327
-15110
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: 5c0abead8200344d90105b4dff8b148c65287674
8+
refs/heads/try2: 77a975df85694a4de07abb5f99f1159799b1160d
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/crates.mk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151

5252
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
54-
workcache url log regex
55-
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros
54+
workcache url log
55+
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
5858

@@ -84,8 +84,6 @@ DEPS_rand := std
8484
DEPS_url := std collections
8585
DEPS_workcache := std serialize collections log
8686
DEPS_log := std sync
87-
DEPS_regex := std collections
88-
DEPS_regex_macros = syntax std regex
8987

9088
TOOL_DEPS_compiletest := test green rustuv getopts
9189
TOOL_DEPS_rustdoc := rustdoc native

branches/try2/mk/docs.mk

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -141,26 +141,6 @@ doc/footer.inc: $(D)/footer.inc | doc/
141141
@$(call E, cp: $@)
142142
$(Q)cp -a $< $@ 2> /dev/null
143143

144-
doc/FiraSans-Regular.woff: $(D)/FiraSans-Regular.woff | doc/
145-
@$(call E, cp: $@)
146-
$(Q)cp -a $< $@ 2> /dev/null
147-
148-
doc/FiraSans-Medium.woff: $(D)/FiraSans-Medium.woff | doc/
149-
@$(call E, cp: $@)
150-
$(Q)cp -a $< $@ 2> /dev/null
151-
152-
doc/Heuristica-Regular.woff: $(D)/Heuristica-Regular.woff | doc/
153-
@$(call E, cp: $@)
154-
$(Q)cp -a $< $@ 2> /dev/null
155-
156-
doc/Heuristica-Italic.woff: $(D)/Heuristica-Italic.woff | doc/
157-
@$(call E, cp: $@)
158-
$(Q)cp -a $< $@ 2> /dev/null
159-
160-
doc/Heuristica-Bold.woff: $(D)/Heuristica-Bold.woff | doc/
161-
@$(call E, cp: $@)
162-
$(Q)cp -a $< $@ 2> /dev/null
163-
164144
# The (english) documentation for each doc item.
165145

166146
define DEF_SHOULD_BUILD_PDF_DOC

branches/try2/mk/main.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ HSREQ$(1)_H_$(3) = $$(HBIN$(1)_H_$(3))/rustc$$(X_$(3))
311311
else
312312
HSREQ$(1)_H_$(3) = \
313313
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
314+
$$(HLIB$(1)_H_$(3))/stamp.rustc \
315+
$$(foreach dep,$$(RUST_DEPS_rustc),$$(HLIB$(1)_H_$(3))/stamp.$$(dep)) \
314316
$$(MKFILE_DEPS)
315317
endif
316318

@@ -332,7 +334,8 @@ SREQ$(1)_T_$(2)_H_$(3) = \
332334
CSREQ$(1)_T_$(2)_H_$(3) = \
333335
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
334336
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
335-
$$(foreach dep,$$(CRATES),$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(dep))
337+
$$(foreach dep,$$(CRATES),$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(dep)) \
338+
$$(foreach dep,$$(HOST_CRATES),$$(HLIB$(1)_H_$(3))/stamp.$$(dep))
336339

337340
ifeq ($(1),0)
338341
# Don't run the stage0 compiler under valgrind - that ship has sailed

branches/try2/mk/tests.mk

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -349,16 +349,6 @@ TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(SREQ$(1)_T_$(2)_H_$(3)) \
349349
$$(foreach crate,$$(TARGET_CRATES),\
350350
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(crate)) \
351351
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4))
352-
353-
# The regex crate depends on the regex_macros crate during testing, but it
354-
# notably depend on the *host* regex_macros crate, not the target version.
355-
# Additionally, this is not a dependency in stage1, only in stage2.
356-
ifeq ($(4),regex)
357-
ifneq ($(1),1)
358-
TESTDEP_$(1)_$(2)_$(3)_$(4) += $$(TLIB$(1)_T_$(3)_H_$(3))/stamp.regex_macros
359-
endif
360-
endif
361-
362352
else
363353
TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
364354
endif

branches/try2/src/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Source layout:
1919
| `libfourcc/` | Data format identifier library |
2020
| `libgetopts/` | Get command-line-options library |
2121
| `libglob/` | Unix glob patterns library |
22-
| `libregex/` | Regular expressions |
2322
| `libsemver/` | Rust's semantic versioning library |
2423
| `libserialize/` | Encode-Decode types library |
2524
| `libsync/` | Concurrency mechanisms and primitives |
-87.8 KB
Binary file not shown.
-89.8 KB
Binary file not shown.
-120 KB
Binary file not shown.
-117 KB
Binary file not shown.
-157 KB
Binary file not shown.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ let _ = close(Door::<Closed>("front".to_owned())); // error: mismatched types: e
207207
208208
## C function signature conversions
209209
210-
| Description | C signature | Equivalent Rust signature |
211-
|---------------------|-----------------------------------------------|------------------------------------------------|
212-
| no parameters | `void foo(void);` | `fn foo();` |
213-
| 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);` |
215-
| in-out pointers | `void foo(const int* in_ptr, int* out_ptr);` | `fn foo(in_ptr: *c_int, out_ptr: *mut c_int);` |
210+
Description C signature Equivalent Rust signature
211+
---------------------- ---------------------------------------------- ------------------------------------------
212+
no parameters `void foo(void);` `fn foo();`
213+
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);`
215+
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.
218218

branches/try2/src/doc/complement-lang-faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Some examples that demonstrate different aspects of the language:
2222

2323
[sprocketnes]: https://github.com/pcwalton/sprocketnes
2424
[hash]: https://github.com/mozilla/rust/blob/master/src/libstd/hash.rs
25-
[HashMap]: https://github.com/mozilla/rust/blob/master/src/libcollections/hashmap.rs
26-
[json]: https://github.com/mozilla/rust/blob/master/src/libserialize/json.rs
25+
[HashMap]: https://github.com/mozilla/rust/blob/master/src/libstd/hashmap.rs
26+
[json]: https://github.com/mozilla/rust/blob/master/src/libextra/json.rs
2727

2828
You may also be interested in browsing [GitHub's Rust][github-rust] page.
2929

branches/try2/src/doc/favicon.inc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico">
2-
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro:400'
3-
rel='stylesheet' type='text/css'>
1+
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico" />

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

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ just unique keys without a corresponding value. The `Map` and `Set` traits in
2222

2323
The standard library provides three owned map/set types:
2424

25-
* `collections::HashMap` and `collections::HashSet`, requiring the keys to
25+
* `std::hashmap::HashMap` and `std::hashmap::HashSet`, requiring the keys to
2626
implement `Eq` and `Hash`
27-
* `collections::TrieMap` and `collections::TrieSet`, requiring the keys to be `uint`
28-
* `collections::TreeMap` and `collections::TreeSet`, requiring the keys
27+
* `std::trie::TrieMap` and `std::trie::TrieSet`, requiring the keys to be `uint`
28+
* `extra::treemap::TreeMap` and `extra::treemap::TreeSet`, requiring the keys
2929
to implement `TotalOrd`
3030

3131
These maps do not use managed pointers so they can be sent between tasks as
@@ -42,19 +42,19 @@ implementing the `Hash` trait.
4242

4343
## Double-ended queues
4444

45-
The `collections::ringbuf` module implements a double-ended queue with `O(1)`
45+
The `extra::ringbuf` module implements a double-ended queue with `O(1)`
4646
amortized inserts and removals from both ends of the container. It also has
4747
`O(1)` indexing like a vector. The contained elements are not required to be
4848
copyable, and the queue will be sendable if the contained type is sendable.
49-
Its interface `Deque` is defined in `collections`.
49+
Its interface `Deque` is defined in `extra::collections`.
5050

5151
The `extra::dlist` module implements a double-ended linked list, also
5252
implementing the `Deque` trait, with `O(1)` removals and inserts at either end,
5353
and `O(1)` concatenation.
5454

5555
## Priority queues
5656

57-
The `collections::priority_queue` module implements a queue ordered by a key. The
57+
The `extra::priority_queue` module implements a queue ordered by a key. The
5858
contained elements are not required to be copyable, and the queue will be
5959
sendable if the contained type is sendable.
6060

@@ -120,13 +120,12 @@ differently.
120120
Containers implement iteration over the contained elements by returning an
121121
iterator object. For example, vector slices several iterators available:
122122
123-
* `iter()` for immutable references to the elements
124-
* `mut_iter()` for mutable references to the elements
125-
* `move_iter()` to move the elements out by-value
123+
* `iter()` and `rev_iter()`, for immutable references to the elements
124+
* `mut_iter()` and `mut_rev_iter()`, for mutable references to the elements
125+
* `move_iter()` and `move_rev_iter()`, to move the elements out by-value
126126
127127
A typical mutable container will implement at least `iter()`, `mut_iter()` and
128-
`move_iter()`. If it maintains an order, the returned iterators will be
129-
`DoubleEndedIterator`s, which are described below.
128+
`move_iter()` along with the reverse variants if it maintains an order.
130129
131130
### Freezing
132131
@@ -266,7 +265,7 @@ Iterators offer generic conversion to containers with the `collect` adaptor:
266265
267266
~~~
268267
let xs = [0, 1, 1, 2, 3, 5, 8];
269-
let ys = xs.iter().rev().skip(1).map(|&x| x * 2).collect::<~[int]>();
268+
let ys = xs.rev_iter().skip(1).map(|&x| x * 2).collect::<~[int]>();
270269
assert_eq!(ys, ~[10, 6, 4, 2, 2, 0]);
271270
~~~
272271
@@ -359,6 +358,9 @@ for &x in it.rev() {
359358
}
360359
~~~
361360

361+
The `rev_iter` and `mut_rev_iter` methods on vectors just return an inverted
362+
version of the standard immutable and mutable vector iterators.
363+
362364
The `chain`, `map`, `filter`, `filter_map` and `inspect` adaptors are
363365
`DoubleEndedIterator` implementations if the underlying iterators are.
364366

branches/try2/src/doc/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ li {list-style-type: none; }
4141
* [The `native` 1:1 threading runtime](native/index.html)
4242
* [The `num` arbitrary precision numerics library](num/index.html)
4343
* [The `rand` library for random numbers and distributions](rand/index.html)
44-
* [The `regex` library for regular expressions](regex/index.html)
4544
* [The `rustc` compiler](rustc/index.html)
4645
* [The `rustuv` M:N I/O library](rustuv/index.html)
4746
* [The `semver` version collation library](semver/index.html)

branches/try2/src/doc/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ a `Sender` and `Receiver` (commonly abbreviated `tx` and `rx`).
217217
The `spawn` function spins up a new task,
218218
given a *heap allocated closure* to run.
219219
As you can see in the code,
220-
we call `tx.send()` from the original task,
220+
we call `chan.send()` from the original task,
221221
passing in our boxed array,
222222
and we call `rx.recv()` (short for 'receive') inside of the new task:
223223
values given to the `Sender` via the `send` method come out the other end via the `recv` method on the `Receiver`.

0 commit comments

Comments
 (0)