Skip to content

Commit c2bc1cf

Browse files
committed
---
yaml --- r: 96255 b: refs/heads/dist-snap c: e1d1ad3 h: refs/heads/master i: 96253: b388344 96251: 35d4acf 96247: b62ac28 96239: 1c238b8 96223: d4dff7d 96191: 7335c1c 96127: d68cdc4 95999: cb618e0 95743: 81399c7 95231: e3d2964 94207: b7dba88 v: v3
1 parent 8731007 commit c2bc1cf

File tree

356 files changed

+4482
-6729
lines changed

Some content is hidden

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

356 files changed

+4482
-6729
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 01b53817033ba3a3ec01685d30e4a8e7ce14ba0c
9+
refs/heads/dist-snap: e1d1ad34f7d28eeb2af2e17097615b74498a1511
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,3 @@ config.stamp
8989
src/etc/dl
9090
.settings/
9191
build/
92-
i686-pc-mingw32/

branches/dist-snap/configure

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -520,20 +520,14 @@ then
520520
fi
521521
fi
522522

523-
BIN_SUF=
524-
if [ $CFG_OSTYPE = "pc-mingw32" ]
525-
then
526-
BIN_SUF=.exe
527-
fi
528-
529523
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ]
530524
then
531-
if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} ]
525+
if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc ]
532526
then
533527
err "no local rust to use"
534528
else
535-
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} --version`
536-
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: $LRV"
529+
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc --version`
530+
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: " $LRV
537531
fi
538532
fi
539533

branches/dist-snap/doc/favicon.inc

Lines changed: 0 additions & 1 deletion
This file was deleted.

branches/dist-snap/doc/manual.inc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,4 @@
44
display: block;
55
padding-left: 2em;
66
}
7-
#influences blockquote p:last-child {
8-
display: block;
9-
line-height: 1.428571429;
10-
color: #999999;
11-
}
12-
</style>
7+
</style>

branches/dist-snap/doc/po/ja/tutorial-tasks.md.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ msgstr ""
213213
#. type: Plain text
214214
#: doc/tutorial-tasks.md:102
215215
msgid ""
216-
"The `spawn` function has a very simple type signature: `fn spawn(f: proc())`. "
216+
"The `spawn` function has a very simple type signature: `fn spawn(f: ~fn())`. "
217217
"Because it accepts only owned closures, and owned closures contain only "
218218
"owned data, `spawn` can safely move the entire closure and all its "
219219
"associated state into an entirely different task for execution. Like any "
@@ -529,7 +529,7 @@ msgid ""
529529
"The basic example below illustrates this.\n"
530530
"~~~\n"
531531
"# fn make_a_sandwich() {};\n"
532-
"fn fib(n: u64) -> u64 {\n"
532+
"fn fib(n: uint) -> uint {\n"
533533
" // lengthy computation returning an uint\n"
534534
" 12586269025\n"
535535
"}\n"

branches/dist-snap/doc/po/ja/tutorial.md.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,13 +3509,13 @@ msgstr "## 所有クロージャ"
35093509
#. type: Plain text
35103510
#: doc/tutorial.md:1510
35113511
msgid ""
3512-
"Owned closures, written `proc`, hold on to "
3512+
"Owned closures, written `~fn` in analogy to the `~` pointer type, hold on to "
35133513
"things that can safely be sent between processes. They copy the values they "
35143514
"close over, much like managed closures, but they also own them: that is, no "
35153515
"other code can access them. Owned closures are used in concurrent code, "
35163516
"particularly for spawning [tasks][tasks]."
35173517
msgstr ""
3518-
"`~` `proc` で書き表される所有クロージャは安全にプロセス"
3518+
"`~` ポインタ型と同様に `~fn` 型 で書き表される所有クロージャは安全にプロセス"
35193519
"間で送信することができます。所有クローじゃはマネージドクロージャと全く同じよ"
35203520
"うに閉じ込める値をコピーしますが、値を所有します。つまり、他のコードは閉じ込"
35213521
"められた値にアクセスできなくなります。所有クロージャは並列プログラム、特に "
@@ -3666,11 +3666,11 @@ msgstr ""
36663666
#: doc/tutorial.md:1582
36673667
msgid ""
36683668
"`do` is a convenient way to create tasks with the `task::spawn` function. "
3669-
"`spawn` has the signature `spawn(fn: proc())`. In other words, it is a "
3669+
"`spawn` has the signature `spawn(fn: ~fn())`. In other words, it is a "
36703670
"function that takes an owned closure that takes no arguments."
36713671
msgstr ""
36723672
"`task::spawn` 関数を用いてタスクを生成する場合、 `do` を用いると便利です。"
3673-
"`spawn` は、 `spawn(fn: proc())` という方を持っています。言い換えると、"
3673+
"`spawn` は、 `spawn(fn: ~fn())` という方を持っています。言い換えると、"
36743674
"`spawn` は「引数をとらない所有クロージャ」を引数としてとる関数ということで"
36753675
"す。"
36763676

branches/dist-snap/doc/po/tutorial-tasks.md.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ msgstr ""
213213
#. type: Plain text
214214
#: doc/tutorial-tasks.md:102
215215
msgid ""
216-
"The `spawn` function has a very simple type signature: `fn spawn(f: proc())`. "
216+
"The `spawn` function has a very simple type signature: `fn spawn(f: ~fn())`. "
217217
"Because it accepts only owned closures, and owned closures contain only "
218218
"owned data, `spawn` can safely move the entire closure and all its "
219219
"associated state into an entirely different task for execution. Like any "
@@ -529,7 +529,7 @@ msgid ""
529529
"The basic example below illustrates this.\n"
530530
"~~~\n"
531531
"# fn make_a_sandwich() {};\n"
532-
"fn fib(n: u64) -> u64 {\n"
532+
"fn fib(n: uint) -> uint {\n"
533533
" // lengthy computation returning an uint\n"
534534
" 12586269025\n"
535535
"}\n"

branches/dist-snap/doc/po/tutorial.md.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,7 @@ msgstr ""
26832683
#. type: Plain text
26842684
#: doc/tutorial.md:1510
26852685
msgid ""
2686-
"Owned closures, written `proc`, hold on to "
2686+
"Owned closures, written `~fn` in analogy to the `~` pointer type, hold on to "
26872687
"things that can safely be sent between processes. They copy the values they "
26882688
"close over, much like managed closures, but they also own them: that is, no "
26892689
"other code can access them. Owned closures are used in concurrent code, "
@@ -2808,7 +2808,7 @@ msgstr ""
28082808
#: doc/tutorial.md:1582
28092809
msgid ""
28102810
"`do` is a convenient way to create tasks with the `task::spawn` function. "
2811-
"`spawn` has the signature `spawn(fn: proc())`. In other words, it is a "
2811+
"`spawn` has the signature `spawn(fn: ~fn())`. In other words, it is a "
28122812
"function that takes an owned closure that takes no arguments."
28132813
msgstr ""
28142814

branches/dist-snap/doc/rust.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright 2013 The Rust Project Developers. See the COPYRIGHT
33
* file at the top-level directory of this distribution and at
44
* http://rust-lang.org/COPYRIGHT.
5-
* With elements taken from Bootstrap v3.0.2 (MIT licensed).
5+
* With elements taken from Bootstrap v3.0.0 (Apache v2.0 licensed).
66
*
77
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
88
* http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
@@ -93,7 +93,6 @@ p {
9393
a {
9494
text-decoration: none;
9595
color: #428BCA;
96-
background: transparent;
9796
}
9897
a:hover, a:focus {
9998
color: #2A6496;
@@ -115,7 +114,7 @@ h5 a:link, h5 a:visited {color: black;}
115114
/* Code
116115
========================================================================== */
117116
pre, code {
118-
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
117+
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
119118
border-radius: 4px;
120119
}
121120
pre {
@@ -142,7 +141,7 @@ pre code {
142141
color: inherit;
143142
white-space: pre-wrap;
144143
background-color: transparent;
145-
border-radius: 0;
144+
border: 0;
146145
}
147146

148147
/* Code highlighting */
@@ -159,7 +158,7 @@ pre code {
159158
.cm-s-default span.cm-string {color: #a11;}
160159
.cm-s-default span.cm-string-2 {color: #f50;}
161160
.cm-s-default span.cm-meta {color: #555;}
162-
/*.cm-s-default span.cm-error {color: #f00;}*/
161+
.cm-s-default span.cm-error {color: #f00;}
163162
.cm-s-default span.cm-qualifier {color: #555;}
164163
.cm-s-default span.cm-builtin {color: #30a;}
165164
.cm-s-default span.cm-bracket {color: #cc7;}
@@ -188,7 +187,7 @@ pre code {
188187
}
189188
#versioninfo a.hash {
190189
color: gray;
191-
font-size: 70%;
190+
font-size: 60%;
192191
}
193192

194193
blockquote {
@@ -304,4 +303,4 @@ hr {
304303
table td, table th {
305304
background-color: #fff !important;
306305
}
307-
}
306+
}

branches/dist-snap/doc/rust.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ common_escape : '\x5c'
254254
hex_digit : 'a' | 'b' | 'c' | 'd' | 'e' | 'f'
255255
| 'A' | 'B' | 'C' | 'D' | 'E' | 'F'
256256
| dec_digit ;
257-
oct_digit : '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' ;
258257
dec_digit : '0' | nonzero_dec ;
259258
nonzero_dec: '1' | '2' | '3' | '4'
260259
| '5' | '6' | '7' | '8' | '9' ;
@@ -319,9 +318,8 @@ r##"foo #"# bar"##; // foo #"# bar
319318
~~~~ {.ebnf .gram}
320319
321320
num_lit : nonzero_dec [ dec_digit | '_' ] * num_suffix ?
322-
| '0' [ [ dec_digit | '_' ] * num_suffix ?
321+
| '0' [ [ dec_digit | '_' ] + num_suffix ?
323322
| 'b' [ '1' | '0' | '_' ] + int_suffix ?
324-
| 'o' [ oct_digit | '_' ] + int_suffix ?
325323
| 'x' [ hex_digit | '_' ] + int_suffix ? ] ;
326324
327325
num_suffix : int_suffix | float_suffix ;
@@ -1131,8 +1129,9 @@ block.
11311129
let fptr: extern "C" fn() -> ~[int] = new_vec;
11321130
~~~~
11331131

1134-
Extern functions may be called directly from Rust code as Rust uses large,
1135-
contiguous stack segments like C.
1132+
Extern functions may be called from Rust code, but
1133+
caution must be taken with respect to the size of the stack
1134+
segment, just as when calling an extern function normally.
11361135

11371136
### Type definitions
11381137

@@ -1549,7 +1548,6 @@ keyword for struct fields and enum variants). When an item is declared as `pub`,
15491548
it can be thought of as being accessible to the outside world. For example:
15501549

15511550
~~~~
1552-
# fn main() {}
15531551
// Declare a private struct
15541552
struct Foo;
15551553
@@ -3161,7 +3159,7 @@ Borrowed pointers (`&`)
31613159
Borrowed pointers arise by (automatic) conversion from owning pointers, managed pointers,
31623160
or by applying the borrowing operator `&` to some other value,
31633161
including [lvalues, rvalues or temporaries](#lvalues-rvalues-and-temporaries).
3164-
Borrowed pointers are written `&content`, or in some cases `&'f content` for some lifetime-variable `f`,
3162+
Borrowed pointers are written `&content`, or in some cases `&f/content` for some lifetime-variable `f`,
31653163
for example `&int` means a borrowed pointer to an integer.
31663164
Copying a borrowed pointer is a "shallow" operation:
31673165
it involves only copying the pointer itself.
@@ -3596,9 +3594,9 @@ and releases them back to its environment when they are no longer needed.
35963594
The default implementation of the service-provider interface
35973595
consists of the C runtime functions `malloc` and `free`.
35983596

3599-
The runtime memory-management system, in turn, supplies Rust tasks with
3600-
facilities for allocating releasing stacks, as well as allocating and freeing
3601-
heap data.
3597+
The runtime memory-management system, in turn, supplies Rust tasks
3598+
with facilities for allocating, extending and releasing stacks,
3599+
as well as allocating and freeing heap data.
36023600

36033601
### Built in types
36043602

@@ -3761,6 +3759,7 @@ have come and gone during the course of Rust's development:
37613759

37623760
Additional specific influences can be seen from the following languages:
37633761

3762+
* The stack-growth implementation of Go.
37643763
* The structural algebraic types and compilation manager of SML.
37653764
* The attribute and assembly systems of C#.
37663765
* The references and deterministic destructor system of C++.

branches/dist-snap/doc/rustpkg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Thus, there should be no need to pass a `-L` flag to rustpkg to tell it where to
120120

121121
# Custom build scripts
122122

123-
A file called `pkg.rs` at the root level in a package directory is called a *package script*.
123+
A file called `pkg.rs` at the root level in a workspace is called a *package script*.
124124
If a package script exists, rustpkg executes it to build the package
125125
rather than inferring crates as described previously.
126126

branches/dist-snap/doc/tutorial-container.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ Reaching the end of the iterator is signalled by returning `None` instead of
8787
`Some(item)`:
8888
8989
~~~
90-
# fn main() {}
9190
/// A stream of N zeroes
9291
struct ZeroStream {
9392
priv remaining: uint
@@ -302,7 +301,6 @@ the iterator can provide better information.
302301
The `ZeroStream` from earlier can provide an exact lower and upper bound:
303302

304303
~~~
305-
# fn main() {}
306304
/// A stream of N zeroes
307305
struct ZeroStream {
308306
priv remaining: uint

branches/dist-snap/doc/tutorial-ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ conventions. Rust provides a way to tell the compiler which convention to use:
303303
#[cfg(target_os = "win32", target_arch = "x86")]
304304
#[link_name = "kernel32"]
305305
extern "stdcall" {
306-
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> std::libc::c_int;
306+
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> int;
307307
}
308308
~~~~
309309

branches/dist-snap/doc/tutorial-macros.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,13 @@ solves the problem.
210210

211211
# Macro argument pattern matching
212212

213-
## Motivation
214-
215213
Now consider code like the following:
216214

215+
## Motivation
216+
217217
~~~~
218218
# enum t1 { good_1(t2, uint), bad_1 };
219-
# struct t2 { body: t3 }
219+
# pub struct t2 { body: t3 }
220220
# enum t3 { good_2(uint), bad_2};
221221
# fn f(x: t1) -> uint {
222222
match x {
@@ -262,7 +262,7 @@ macro_rules! biased_match (
262262
)
263263
264264
# enum t1 { good_1(t2, uint), bad_1 };
265-
# struct t2 { body: t3 }
265+
# pub struct t2 { body: t3 }
266266
# enum t3 { good_2(uint), bad_2};
267267
# fn f(x: t1) -> uint {
268268
biased_match!((x) ~ (good_1(g1, val)) else { return 0 };
@@ -364,7 +364,7 @@ macro_rules! biased_match (
364364
365365
366366
# enum t1 { good_1(t2, uint), bad_1 };
367-
# struct t2 { body: t3 }
367+
# pub struct t2 { body: t3 }
368368
# enum t3 { good_2(uint), bad_2};
369369
# fn f(x: t1) -> uint {
370370
biased_match!(

branches/dist-snap/doc/tutorial-rustpkg.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ $ rustc main.rs
2727
main.rs:1:0: 1:17 error: can't find crate for `hello`
2828
main.rs:1 extern mod hello;
2929
^~~~~~~~~~~~~~~~~
30+
3031
~~~~
3132

3233
This makes sense, as we haven't gotten it from anywhere yet! Luckily for us,
@@ -215,7 +216,7 @@ a function that can be sensibly tested:
215216
#[license = "MIT"];
216217
217218
pub fn is_even(i: uint) -> bool {
218-
i % 2 == 0
219+
i % 2 == 0
219220
}
220221
~~~
221222

@@ -229,9 +230,9 @@ use hello::is_even;
229230
230231
#[test]
231232
fn test_is_even() {
232-
assert!(is_even(0));
233-
assert!(!is_even(1));
234-
assert!(is_even(2));
233+
assert!(is_even(0));
234+
assert!(!is_even(1));
235+
assert!(is_even(2));
235236
}
236237
~~~
237238

branches/dist-snap/doc/tutorial-tasks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ _owned types_. The language leaves the implementation details to the standard
9191
library.
9292

9393
The `spawn` function has a very simple type signature: `fn spawn(f:
94-
proc())`. Because it accepts only owned closures, and owned closures
94+
~fn())`. Because it accepts only owned closures, and owned closures
9595
contain only owned data, `spawn` can safely move the entire closure
9696
and all its associated state into an entirely different task for
9797
execution. Like any closure, the function passed to `spawn` may capture
@@ -104,8 +104,8 @@ an environment that it carries across tasks.
104104
let child_task_number = generate_task_number();
105105
106106
do spawn {
107-
// Capture it in the remote task
108-
println!("I am child number {}", child_task_number);
107+
// Capture it in the remote task
108+
println!("I am child number {}", child_task_number);
109109
}
110110
~~~
111111

@@ -273,7 +273,7 @@ later.
273273
The basic example below illustrates this.
274274
~~~
275275
# fn make_a_sandwich() {};
276-
fn fib(n: u64) -> u64 {
276+
fn fib(n: uint) -> uint {
277277
// lengthy computation returning an uint
278278
12586269025
279279
}

0 commit comments

Comments
 (0)