Skip to content

Commit 2360c6b

Browse files
committed
---
yaml --- r: 214398 b: refs/heads/beta c: dadac15 h: refs/heads/master v: v3
1 parent 39f17b4 commit 2360c6b

File tree

11 files changed

+18
-27
lines changed

11 files changed

+18
-27
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 0becf6aec73f90408c8eafb46bf7742389497e5c
26+
refs/heads/beta: dadac15477f0ad55c742d46fe384e2b71b0bf898
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 8c0aa6d64ebab528f7eb182812007155d6044972
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=1.2.0
16+
CFG_RELEASE_NUM=1.1.0
1717

1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ feature.
7979
A nice replacement is the [lazy constructor macro][lcm] by [Marvin
8080
Löbel][kim].
8181

82-
[fqa]: http://yosefk.com/c++fqa/ctors.html#fqa-10.12
82+
[fqa]: https://mail.mozilla.org/pipermail/rust-dev/2013-April/003815.html
8383
[elp]: http://ericlippert.com/2013/02/06/static-constructors-part-one/
8484
[lcm]: https://gist.github.com/Kimundi/8782487
8585
[kim]: https://github.com/Kimundi

branches/beta/src/doc/trpl/const-and-static.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ static N: i32 = 5;
3131

3232
Unlike [`let`][let] bindings, you must annotate the type of a `static`.
3333

34+
[let]: variable-bindings.html
35+
3436
Statics live for the entire lifetime of a program, and therefore any
35-
reference stored in a constant has a [`'static` lifetime][lifetimes]:
37+
reference stored in a constant has a [`static` lifetime][lifetimes]:
3638

3739
```rust
3840
static NAME: &'static str = "Steve";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fn main() {
156156

157157
This ‘associated function’ builds a new `Circle` for us. Note that associated
158158
functions are called with the `Struct::function()` syntax, rather than the
159-
`ref.method()` syntax. Some other languages call associated functions ‘static
159+
`ref.method()` syntax. Some other langauges call associated functions ‘static
160160
methods’.
161161

162162
# Builder Pattern

branches/beta/src/doc/trpl/nightly-rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ $ sh rustup.sh --channel=nightly
2626
If you're on Windows, please download either the [32-bit installer][win32] or
2727
the [64-bit installer][win64] and run it.
2828

29-
[win32]: https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.msi
30-
[win64]: https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-gnu.msi
29+
[win32]: https://static.rust-lang.org/dist/rust-1.0.0-beta-i686-pc-windows-gnu.msi
30+
[win64]: https://static.rust-lang.org/dist/rust-1.0.0-beta-x86_64-pc-windows-gnu.msi
3131

3232
## Uninstalling
3333

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ let result = f.write("whatever".as_bytes());
208208

209209
This will compile without error.
210210

211-
This means that even if someone does something bad like add methods to `i32`,
211+
This means that even if someone does something bad like add methods to `int`,
212212
it won’t affect you, unless you `use` that trait.
213213

214214
There’s one more restriction on implementing traits. Either the trait or the

branches/beta/src/libstd/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
//! [`FromStr`](str/trait.FromStr.html) trait.
6161
//!
6262
//! Data may be shared by placing it in a reference-counted box or the
63-
//! [`Rc`](rc/index.html) type, and if further contained in a [`Cell`
63+
//! [`Rc`][rc/index.html] type, and if further contained in a [`Cell`
6464
//! or `RefCell`](cell/index.html), may be mutated as well as shared.
6565
//! Likewise, in a concurrent setting it is common to pair an
6666
//! atomically-reference-counted box, [`Arc`](sync/struct.Arc.html),

branches/beta/src/libsyntax/parse/parser.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2026,8 +2026,7 @@ impl<'a> Parser<'a> {
20262026
return self.parse_block_expr(lo, DefaultBlock);
20272027
},
20282028
token::BinOp(token::Or) | token::OrOr => {
2029-
let lo = self.span.lo;
2030-
return self.parse_lambda_expr(lo, CaptureByRef);
2029+
return self.parse_lambda_expr(CaptureByRef);
20312030
},
20322031
token::Ident(id @ ast::Ident {
20332032
name: token::SELF_KEYWORD_NAME,
@@ -2082,8 +2081,7 @@ impl<'a> Parser<'a> {
20822081
return Ok(self.mk_expr(lo, hi, ExprPath(Some(qself), path)));
20832082
}
20842083
if try!(self.eat_keyword(keywords::Move) ){
2085-
let lo = self.last_span.lo;
2086-
return self.parse_lambda_expr(lo, CaptureByValue);
2084+
return self.parse_lambda_expr(CaptureByValue);
20872085
}
20882086
if try!(self.eat_keyword(keywords::If)) {
20892087
return self.parse_if_expr();
@@ -2842,9 +2840,10 @@ impl<'a> Parser<'a> {
28422840
}
28432841

28442842
// `|args| expr`
2845-
pub fn parse_lambda_expr(&mut self, lo: BytePos, capture_clause: CaptureClause)
2843+
pub fn parse_lambda_expr(&mut self, capture_clause: CaptureClause)
28462844
-> PResult<P<Expr>>
28472845
{
2846+
let lo = self.span.lo;
28482847
let decl = try!(self.parse_fn_block_decl());
28492848
let body = match decl.output {
28502849
DefaultReturn(_) => {
@@ -5267,11 +5266,7 @@ impl<'a> Parser<'a> {
52675266
return Ok(Some(try!(self.parse_item_foreign_mod(lo, opt_abi, visibility, attrs))));
52685267
}
52695268

5270-
let span = self.span;
5271-
let token_str = self.this_token_to_string();
5272-
return Err(self.span_fatal(span,
5273-
&format!("expected `{}` or `fn`, found `{}`", "{",
5274-
token_str)))
5269+
try!(self.expect_one_of(&[], &[]));
52755270
}
52765271

52775272
if try!(self.eat_keyword_noexpect(keywords::Virtual) ){

branches/beta/src/test/compile-fail/move-closure-span.rs renamed to branches/beta/src/test/parse-fail/extern-crate-unexpected-token.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,4 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// Make sure that the span of a closure marked `move` begins at the `move` keyword.
12-
13-
fn main() {
14-
let x: () =
15-
move //~ ERROR mismatched types
16-
|| ();
17-
}
11+
extern crte foo; //~ ERROR expected one of `crate`, `fn`, or `{`, found `crte`

branches/beta/src/test/parse-fail/extern-expected-fn-or-brace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
// Verifies that the expected token errors for `extern crate` are
1414
// raised
1515

16-
extern "C" mod foo; //~ERROR expected `{` or `fn`, found `mod`
16+
extern "C" mod foo; //~ERROR expected one of `fn` or `{`, found `mod`

0 commit comments

Comments
 (0)