Skip to content

Commit 4df5489

Browse files
author
Jakub
committed
---
yaml --- r: 80687 b: refs/heads/try c: de79972 h: refs/heads/master i: 80685: 90d135d 80683: f49dc72 80679: b194600 80671: 8a2bc4e v: v3
1 parent 590445a commit 4df5489

File tree

260 files changed

+3576
-5667
lines changed

Some content is hidden

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

260 files changed

+3576
-5667
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: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cbd1eefbd350797b783df119fed7956d7e1c74ad
5-
refs/heads/try: 91ab8a3f529e8b6735e0c8a998dc78667cabe40e
5+
refs/heads/try: de799722dc057107a2601a4e8ff6ff08f3a8b16f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/doc/rust.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,12 +2459,25 @@ do k(3) |j| {
24592459
### For expressions
24602460

24612461
~~~~~~~~{.ebnf .gram}
2462-
for_expr : "for" pat "in" expr '{' block '}' ;
2462+
for_expr : "for" expr [ '|' ident_list '|' ] ? '{' block '}' ;
24632463
~~~~~~~~
24642464

2465-
A `for` expression is a syntactic construct for looping
2466-
over elements provided by an implementation of
2467-
`std::iterator::Iterator`.
2465+
A _for expression_ is similar to a [`do` expression](#do-expressions),
2466+
in that it provides a special block-form of lambda expression,
2467+
suited to passing the `block` function to a higher-order function implementing a loop.
2468+
2469+
In contrast to a `do` expression, a `for` expression is designed to work
2470+
with methods such as `each` and `times`, that require the body block to
2471+
return a boolean. The `for` expression accommodates this by implicitly
2472+
returning `true` at the end of each block, unless a `break` expression
2473+
is evaluated.
2474+
2475+
In addition, [`break`](#break-expressions) and [`loop`](#loop-expressions) expressions
2476+
are rewritten inside `for` expressions in the same way that `return` expressions are,
2477+
with a combination of local flag variables,
2478+
and early boolean-valued returns from the `block` function,
2479+
such that the meaning of `break` and `loop` is preserved in a primitive loop
2480+
when rewritten as a `for` loop controlled by a higher order function.
24682481

24692482
An example of a for loop over the contents of a vector:
24702483

branches/try/doc/tutorial-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ for i in range(0, 5) {
200200
printf!("%d ", i) // prints "0 1 2 3 4"
201201
}
202202

203-
for i in std::iter::range_inclusive(0, 5) { // needs explicit import
203+
for i in std::iterator::range_inclusive(0, 5) { // needs explicit import
204204
printf!("%d ", i) // prints "0 1 2 3 4 5"
205205
}
206206
~~~

branches/try/mk/rt.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ LIBUV_NO_LOAD = run-benchmarks.target.mk run-tests.target.mk \
176176

177177
export PYTHONPATH := $(PYTHONPATH):$$(S)src/gyp/pylib
178178

179-
$$(LIBUV_MAKEFILE_$(1)_$(2)): $$(LIBUV_DEPS)
179+
$$(LIBUV_MAKEFILE_$(1)_$(2)):
180180
(cd $(S)src/libuv/ && \
181-
$$(CFG_PYTHON) ./gyp_uv -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) -D ninja \
181+
./gyp_uv -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) -D ninja \
182182
-Goutput_dir=$$(@D) --generator-output $$(@D))
183183

184184
# XXX: Shouldn't need platform-specific conditions here

branches/try/src/etc/emacs/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ marking, press x, and ELPA will install the packages for you (under
6868

6969
* or using <kbd>M-x package-install rust-mode
7070

71-
### Tests via ERT
72-
73-
The file `rust-mode-tests.el` contains tests that can be run via ERT. You can
74-
use `run_rust_emacs_tests.sh` to run them in batch mode, if emacs is somewhere
75-
in your `$PATH`.
76-
7771
### Known bugs
7872

7973
* Combining `global-whitespace-mode` and `rust-mode` is generally glitchy.

branches/try/src/etc/emacs/run_rust_emacs_tests.sh

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

0 commit comments

Comments
 (0)