Skip to content

Commit 8b8bb1b

Browse files
committed
---
yaml --- r: 206573 b: refs/heads/beta c: aaa3641 h: refs/heads/master i: 206571: 71db74f v: v3
1 parent 60a3dd4 commit 8b8bb1b

File tree

126 files changed

+733
-1269
lines changed

Some content is hidden

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

126 files changed

+733
-1269
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3030
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3131
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32-
refs/heads/beta: d3958c6bc35db1a39dcb252b3a76c3ae1c45288d
32+
refs/heads/beta: aaa3641754543d6891c872e3be6667cfbec7b741
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3535
refs/heads/tmp: 579e31929feff51dcaf8d444648eff8de735f91a

branches/beta/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,6 @@ Luke Francl <[email protected]>
518518
Luke Metz <[email protected]>
519519
Luke Steensen <[email protected]>
520520
Luqman Aden <[email protected]>
521-
Łukasz Niemier <[email protected]>
522521
Magnus Auvinen <[email protected]>
523522
Mahmut Bulut <[email protected]>
524523
Makoto Nakashima <[email protected]>
@@ -998,4 +997,5 @@ xales <[email protected]>
998997
999998
1000999
1000+
Łukasz Niemier <[email protected]>
10011001

branches/beta/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ then
844844
CFG_OSX_GCC_VERSION=$("$CFG_GCC" --version 2>&1 | grep "Apple LLVM version")
845845
if [ $? -eq 0 ]
846846
then
847-
step_msg "on OS X >=10.9, forcing use of clang"
847+
step_msg "on OS X 10.9, forcing use of clang"
848848
CFG_ENABLE_CLANG=1
849849
else
850850
if [ $("$CFG_GCC" --version 2>&1 | grep -c ' 4\.[0-6]') -ne 0 ]; then

branches/beta/mk/dist.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ PKG_FILES := \
5252
doc \
5353
driver \
5454
etc \
55-
error-index-generator \
5655
$(foreach crate,$(CRATES),lib$(crate)) \
5756
libcollectionstest \
5857
libcoretest \

branches/beta/src/doc/complement-design-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ representation as a primitive. This allows using Rust `enum`s in FFI where C
3939
`enum`s are also used, for most use cases. The attribute can also be applied
4040
to `struct`s to get the same layout as a C struct would.
4141

42-
[repr]: reference.html#ffi-attributes
42+
[repr]: reference.html#miscellaneous-attributes
4343

4444
## There is no GC
4545

branches/beta/src/doc/reference.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,12 +1867,13 @@ macro scope.
18671867
lower to the target's SIMD instructions, if any; the `simd` feature gate
18681868
is necessary to use this attribute.
18691869
- `static_assert` - on statics whose type is `bool`, terminates compilation
1870-
with an error if it is not initialized to `true`. To use this, the `static_assert`
1871-
feature gate must be enabled.
1870+
with an error if it is not initialized to `true`.
1871+
- `unsafe_destructor` - allow implementations of the "drop" language item
1872+
where the type it is implemented for does not implement the "send" language
1873+
item; the `unsafe_destructor` feature gate is needed to use this attribute
18721874
- `unsafe_no_drop_flag` - on structs, remove the flag that prevents
18731875
destructors from being run twice. Destructors might be run multiple times on
1874-
the same object with this attribute. To use this, the `unsafe_no_drop_flag` feature
1875-
gate must be enabled.
1876+
the same object with this attribute.
18761877
- `doc` - Doc comments such as `/// foo` are equivalent to `#[doc = "foo"]`.
18771878
- `rustc_on_unimplemented` - Write a custom note to be shown along with the error
18781879
when the trait is found to be unimplemented on a type.

branches/beta/src/doc/trpl/guessing-game.md

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ fn main() {
8282
8383
let mut guess = String::new();
8484
85-
io::stdin().read_line(&mut guess)
85+
let input = io::stdin().read_line(&mut guess)
8686
.ok()
8787
.expect("Failed to read line");
8888
89-
println!("You guessed: {}", guess);
89+
println!("You guessed: {}", input);
9090
}
9191
```
9292

@@ -302,12 +302,12 @@ project.
302302
There’s just one line of this first example left:
303303

304304
```rust,ignore
305-
println!("You guessed: {}", guess);
305+
println!("You guessed: {}", input);
306306
}
307307
```
308308

309309
This prints out the string we saved our input in. The `{}`s are a placeholder,
310-
and so we pass it `guess` as an argument. If we had multiple `{}`s, we would
310+
and so we pass it `input` as an argument. If we had multiple `{}`s, we would
311311
pass multiple arguments:
312312

313313
```rust
@@ -358,10 +358,11 @@ rand="0.3.0"
358358
The `[dependencies]` section of `Cargo.toml` is like the `[package]` section:
359359
everything that follows it is part of it, until the next section starts.
360360
Cargo uses the dependencies section to know what dependencies on external
361-
crates you have, and what versions you require. In this case, we’ve used version `0.3.0`.
362-
Cargo understands [Semantic Versioning][semver], which is a standard for writing version
363-
numbers. If we wanted to use the latest version we could use `*` or we could use a range
364-
of versions. [Cargo’s documentation][cargodoc] contains more details.
361+
crates you have, and what versions you require. In this case, we’ve used `*`,
362+
which means that we’ll use the latest version of `rand`. Cargo understands
363+
[Semantic Versioning][semver], which is a standard for writing version
364+
numbers. If we wanted a specific version or range of versions, we could be
365+
more specific here. [Cargo’s documentation][cargodoc] contains more details.
365366

366367
[semver]: http://semver.org
367368
[cargodoc]: http://doc.crates.io/crates-io.html
@@ -409,29 +410,24 @@ $ cargo build
409410
Compiling guessing_game v0.1.0 (file:///home/you/projects/guessing_game)
410411
```
411412

412-
So, we told Cargo we wanted any `0.3.x` version of `rand`, and so it fetched the latest
413-
version at the time this was written, `v0.3.8`. But what happens when next
414-
week, version `v0.3.9` comes out, with an important bugfix? While getting
415-
bugfixes is important, what if `0.3.9` contains a regression that breaks our
416-
code?
413+
So, we told Cargo we wanted any version of `rand`, and so it fetched the
414+
latest version at the time this was written, `v0.3.8`. But what happens
415+
when next week, version `v0.4.0` comes out, which changes something with
416+
`rand`, and it includes a breaking change? After all, a `v0.y.z` version
417+
in SemVer can change every release.
417418

418419
The answer to this problem is the `Cargo.lock` file you’ll now find in your
419420
project directory. When you build your project for the first time, Cargo
420421
figures out all of the versions that fit your criteria, and then writes them
421422
to the `Cargo.lock` file. When you build your project in the future, Cargo
422423
will see that the `Cargo.lock` file exists, and then use that specific version
423424
rather than do all the work of figuring out versions again. This lets you
424-
have a repeatable build automatically. In other words, we’ll stay at `0.3.8`
425-
until we explicitly upgrade, and so will anyone who we share our code with,
426-
thanks to the lock file.
425+
have a repeatable build automatically.
427426

428-
What about when we _do_ want to use `v0.3.9`? Cargo has another command,
427+
What about when we _do_ want to use `v0.4.0`? Cargo has another command,
429428
`update`, which says ‘ignore the lock, figure out all the latest versions that
430429
fit what we’ve specified. If that works, write those versions out to the lock
431-
file’. But, by default, Cargo will only look for versions larger than `0.3.0`
432-
and smaller than `0.4.0`. If we want to move to `0.4.x`, we’d have to update
433-
the `Cargo.toml` directly. When we do, the next time we `cargo build`, Cargo
434-
will update the index and re-evaluate our `rand` requirements.
430+
file’.
435431

436432
There’s a lot more to say about [Cargo][doccargo] and [its
437433
ecosystem][doccratesio], but for now, that’s all we need to know. Cargo makes
@@ -847,7 +843,7 @@ fn main() {
847843
Ordering::Less => println!("Too small!"),
848844
Ordering::Greater => println!("Too big!"),
849845
Ordering::Equal => {
850-
println!("You win!");
846+
println!("You win!"),
851847
break;
852848
}
853849
}
@@ -964,6 +960,8 @@ fn main() {
964960
965961
let secret_number = rand::thread_rng().gen_range(1, 101);
966962
963+
println!("The secret number is: {}", secret_number);
964+
967965
loop {
968966
println!("Please input your guess.");
969967

branches/beta/src/doc/trpl/lifetimes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ fn main() {
116116
}
117117
```
118118

119-
[structs]: structs.html
119+
[struct]: structs.html
120120

121121
As you can see, `struct`s can also have lifetimes. In a similar way to functions,
122122

branches/beta/src/doc/trpl/method-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ struct CircleBuilder {
188188
189189
impl CircleBuilder {
190190
fn new() -> CircleBuilder {
191-
CircleBuilder { x: 0.0, y: 0.0, radius: 1.0, }
191+
CircleBuilder { x: 0.0, y: 0.0, radius: 0.0, }
192192
}
193193
194194
fn x(&mut self, coordinate: f64) -> &mut CircleBuilder {

branches/beta/src/doc/trpl/mutability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ safety, and the mechanism by which Rust guarantees it, the
8585
> You may have one or the other of these two kinds of borrows, but not both at
8686
> the same time:
8787
>
88-
> * one or more references (`&T`) to a resource.
88+
> * 0 to N references (`&T`) to a resource.
8989
> * exactly one mutable reference (`&mut T`)
9090
9191
[ownership]: ownership.html

branches/beta/src/doc/trpl/ownership.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This guide is one of three presenting Rust’s ownership system. This is one of
44
Rust’s most unique and compelling features, with which Rust developers should
55
become quite acquainted. Ownership is how Rust achieves its largest goal,
6-
memory safety. There are a few distinct concepts, each with its own
6+
memory safety. The there are a few distinct concepts, each with its own
77
chapter:
88

99
* ownership, which you’re reading now.
@@ -59,7 +59,6 @@ deterministically, at the end of the scope.
5959

6060
[vect]: ../std/vec/struct.Vec.html
6161
[heap]: the-stack-and-the-heap.html
62-
[bindings]: variable-bindings.html
6362

6463
# Move semantics
6564

@@ -123,7 +122,7 @@ let v2 = v;
123122

124123
The first line creates some data for the vector on the [stack][sh], `v`. The
125124
vector’s data, however, is stored on the [heap][sh], and so it contains a
126-
pointer to that data. When we move `v` to `v2`, it creates a copy of that pointer,
125+
pointer to that data. When we move `v` to `v2`, it creates a copy of that data,
127126
for `v2`. Which would mean two pointers to the contents of the vector on the
128127
heap. That would be a problem: it would violate Rust’s safety guarantees by
129128
introducing a data race. Therefore, Rust forbids using `v` after we’ve done the

branches/beta/src/doc/trpl/references-and-borrowing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This guide is one of three presenting Rust’s ownership system. This is one of
44
Rust’s most unique and compelling features, with which Rust developers should
55
become quite acquainted. Ownership is how Rust achieves its largest goal,
6-
memory safety. There are a few distinct concepts, each with its own
6+
memory safety. The there are a few distinct concepts, each with its own
77
chapter:
88

99
* [ownership][ownership], ownership, the key concept

branches/beta/src/doc/trpl/strings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ individual bytes, or as codepoints:
7373
let hachiko = "忠犬ハチ公";
7474

7575
for b in hachiko.as_bytes() {
76-
print!("{}, ", b);
76+
print!("{}, ", b);
7777
}
7878

7979
println!("");
8080

8181
for c in hachiko.chars() {
82-
print!("{}, ", c);
82+
print!("{}, ", c);
8383
}
8484

8585
println!("");

branches/beta/src/doc/trpl/traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Here’s the error:
192192
```text
193193
error: type `std::fs::File` does not implement any method in scope named `write`
194194
195-
let result = f.write(b"whatever");
195+
let result = f.write(bwhatever);
196196
^~~~~~~~~~~~~~~~~~
197197
```
198198

branches/beta/src/grammar/RustLexer.g4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ lexer grammar RustLexer;
88

99

1010
tokens {
11-
EQ, LT, LE, EQEQ, NE, GE, GT, ANDAND, OROR, NOT, TILDE, PLUS,
11+
EQ, LT, LE, EQEQ, NE, GE, GT, ANDAND, OROR, NOT, TILDE, PLUT,
1212
MINUS, STAR, SLASH, PERCENT, CARET, AND, OR, SHL, SHR, BINOP,
1313
BINOPEQ, AT, DOT, DOTDOT, DOTDOTDOT, COMMA, SEMI, COLON,
1414
MOD_SEP, RARROW, FAT_ARROW, LPAREN, RPAREN, LBRACKET, RBRACKET,
15-
LBRACE, RBRACE, POUND, DOLLAR, UNDERSCORE, LIT_CHAR, LIT_BYTE,
15+
LBRACE, RBRACE, POUND, DOLLAR, UNDERSCORE, LIT_CHAR,
1616
LIT_INTEGER, LIT_FLOAT, LIT_STR, LIT_STR_RAW, LIT_BINARY,
17-
LIT_BINARY_RAW, QUESTION, IDENT, LIFETIME, WHITESPACE, DOC_COMMENT,
18-
COMMENT, SHEBANG, UTF8_BOM
17+
LIT_BINARY_RAW, IDENT, LIFETIME, WHITESPACE, DOC_COMMENT,
18+
COMMENT, SHEBANG
1919
}
2020

2121
import xidstart , xidcontinue;

branches/beta/src/grammar/verify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn parse_token_list(file: &str) -> HashMap<String, token::Token> {
111111
"LIT_BINARY_RAW" => token::Literal(token::BinaryRaw(Name(0), 0), None),
112112
"QUESTION" => token::Question,
113113
"SHEBANG" => token::Shebang(Name(0)),
114-
_ => panic!("Bad token str `{}`", val),
114+
_ => continue,
115115
};
116116

117117
res.insert(num.to_string(), tok);

branches/beta/src/liballoc/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//! }
3838
//! ```
3939
//!
40-
//! This will print `Cons(1, Cons(2, Nil))`.
40+
//! This will print `Cons(1, Box(Cons(2, Box(Nil))))`.
4141
//!
4242
//! Recursive structures must be boxed, because if the definition of `Cons` looked like this:
4343
//!

0 commit comments

Comments
 (0)