Skip to content

Commit cc490f7

Browse files
committed
---
yaml --- r: 64620 b: refs/heads/snap-stage3 c: 6dfb0e5 h: refs/heads/master v: v3
1 parent 49924d3 commit cc490f7

File tree

129 files changed

+2244
-7309
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

+2244
-7309
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: 9aab7e59d752a2ac14e62e309d58f5eb9a60266d
4+
refs/heads/snap-stage3: 6dfb0e5ad3c3d57df1dc9fcc124172c748de955b
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: 6 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,8 @@ 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 or, worse, if copied data are in mutable
1093-
slots, they can change the semantics of your program. So we’d like to
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
10941094
define a function that takes the points by pointer. We can use
10951095
borrowed pointers to do this:
10961096
@@ -1374,7 +1374,7 @@ let exchange_crayons: ~str = ~"Black, BlizzardBlue, Blue";
13741374
~~~
13751375

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

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

1931-
[impls]: #methods
1931+
[impls]: #functions-and-methods
19321932

19331933
~~~~
19341934
# 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)