Skip to content

Commit 031a960

Browse files
committed
---
yaml --- r: 64623 b: refs/heads/snap-stage3 c: 43b1eab h: refs/heads/master i: 64621: a662f8c 64619: 49924d3 64615: d13a98f 64607: 610c696 v: v3
1 parent c49d46c commit 031a960

File tree

129 files changed

+2346
-7409
lines changed

Some content is hidden

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

129 files changed

+2346
-7409
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e68697b55e0b89c72ab52e7a8004cc1ceb7619ff
4+
refs/heads/snap-stage3: 43b1eab23be7ce818efa6a0f79facb9134f615c3
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/doc/tutorial.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ was taken.
309309

310310
In short, everything that's not a declaration (declarations are `let` for
311311
variables; `fn` for functions; and any top-level named items such as
312-
[traits](#traits), [enum types](#enums), and static items) is an
312+
[traits](#traits), [enum types](#enums), and [constants](#constants)) is an
313313
expression, including function bodies.
314314

315315
~~~~
@@ -992,7 +992,7 @@ task-local garbage collector. It will be destroyed at some point after there
992992
are no references left to the box, no later than the end of the task. Managed
993993
boxes lack an owner, so they start a new ownership tree and don't inherit
994994
mutability. They do own the contained object, and mutability is defined by the
995-
type of the managed box (`@` or `@mut`). An object containing a managed box is
995+
type of the shared box (`@` or `@mut`). An object containing a managed box is
996996
not `Owned`, and can't be sent between tasks.
997997

998998
~~~~
@@ -1089,8 +1089,10 @@ we might like to compute the distance between `on_the_stack` and
10891089
to define a function that takes two arguments of type point—that is,
10901090
it takes the points by value. But this will cause the points to be
10911091
copied when we call the function. For points, this is probably not so
1092-
bad, but often copies are expensive. So we’d like to define a function
1093-
that takes the points by pointer. We can use borrowed pointers to do this:
1092+
bad, but often copies are expensive or, worse, if there are mutable
1093+
fields, they can change the semantics of your program. So we’d like to
1094+
define a function that takes the points by pointer. We can use
1095+
borrowed pointers to do this:
10941096
10951097
~~~
10961098
# struct Point { x: float, y: float }
@@ -1372,7 +1374,7 @@ let exchange_crayons: ~str = ~"Black, BlizzardBlue, Blue";
13721374
~~~
13731375

13741376
Both vectors and strings support a number of useful
1375-
[methods](#methods), defined in [`std::vec`]
1377+
[methods](#functions-and-methods), defined in [`std::vec`]
13761378
and [`std::str`]. Here are some examples.
13771379

13781380
[`std::vec`]: std/vec.html
@@ -1926,7 +1928,7 @@ that implements a trait includes the name of the trait at the start of
19261928
the definition, as in the following impls of `Printable` for `int`
19271929
and `~str`.
19281930

1929-
[impls]: #methods
1931+
[impls]: #functions-and-methods
19301932

19311933
~~~~
19321934
# trait Printable { fn print(&self); }

branches/snap-stage3/src/compiletest/compiletest.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,13 @@ pub fn make_tests(config: &config) -> ~[test::TestDescAndFn] {
242242
let mut tests = ~[];
243243
let dirs = os::list_dir_path(&config.src_base);
244244
for dirs.iter().advance |file| {
245-
let file = (*file).clone();
245+
let file = file.clone();
246246
debug!("inspecting file %s", file.to_str());
247-
if is_test(config, file) {
248-
let t = do make_test(config, file) {
247+
if is_test(config, &file) {
248+
let t = do make_test(config, &file) {
249249
match config.mode {
250-
mode_codegen => make_metrics_test_closure(config, file),
251-
_ => make_test_closure(config, file)
250+
mode_codegen => make_metrics_test_closure(config, &file),
251+
_ => make_test_closure(config, &file)
252252
}
253253
};
254254
tests.push(t)

0 commit comments

Comments
 (0)