Skip to content

Commit e4dacde

Browse files
committed
---
yaml --- r: 144975 b: refs/heads/try2 c: 6216661 h: refs/heads/master i: 144973: dca9666 144971: 708300c 144967: b22c0e3 144959: 1add888 v: v3
1 parent 94a9df0 commit e4dacde

File tree

258 files changed

+5666
-3563
lines changed

Some content is hidden

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

258 files changed

+5666
-3563
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: de799722dc057107a2601a4e8ff6ff08f3a8b16f
8+
refs/heads/try2: 62166611e7510b86f395dbf19973e442fd43c403
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/doc/rust.md

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

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

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.
2465+
A `for` expression is a syntactic construct for looping
2466+
over elements provided by an implementation of
2467+
`std::iterator::Iterator`.
24812468

24822469
An example of a for loop over the contents of a vector:
24832470

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

branches/try2/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)):
179+
$$(LIBUV_MAKEFILE_$(1)_$(2)): $$(LIBUV_DEPS)
180180
(cd $(S)src/libuv/ && \
181-
./gyp_uv -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) -D ninja \
181+
$$(CFG_PYTHON) ./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/try2/src/etc/emacs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ 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+
7177
### Known bugs
7278

7379
* Combining `global-whitespace-mode` and `rust-mode` is generally glitchy.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This runs the test for emacs rust-mode.
2+
# It must be possible to find emacs via PATH.
3+
emacs -batch -l rust-mode.el -l rust-mode-tests.el -f ert-run-tests-batch-and-exit

0 commit comments

Comments
 (0)