Skip to content

Commit 6cf75ca

Browse files
committed
rollup merge of rust-lang#21918: ranma42/replace-be
Conflicts: src/test/compile-fail/reserved-be.rs src/test/compile-fail/reserved-become.rs src/test/parse-fail/reserved-be.rs
2 parents dff8182 + 8f7c2d5 commit 6cf75ca

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/doc/grammar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ token : simple_token | ident | literal | symbol | whitespace token ;
157157

158158
| | | | | |
159159
|----------|----------|----------|----------|--------|
160-
| abstract | alignof | as | be | box |
160+
| abstract | alignof | as | become | box |
161161
| break | const | continue | crate | do |
162162
| else | enum | extern | false | final |
163163
| fn | for | if | impl | in |

src/doc/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ grammar as double-quoted strings. Other tokens have exact rules given.
189189

190190
| | | | | |
191191
|----------|----------|----------|----------|---------|
192-
| abstract | alignof | as | be | box |
192+
| abstract | alignof | as | become | box |
193193
| break | const | continue | crate | do |
194194
| else | enum | extern | false | final |
195195
| fn | for | if | impl | in |

src/libsyntax/parse/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ declare_special_idents_and_keywords! {
562562
(45, Where, "where");
563563
'reserved:
564564
(46, Alignof, "alignof");
565-
(47, Be, "be");
565+
(47, Become, "become");
566566
(48, Offsetof, "offsetof");
567567
(49, Priv, "priv");
568568
(50, Pure, "pure");
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -9,6 +9,6 @@
99
// except according to those terms.
1010

1111
fn main() {
12-
let be = 0;
13-
//~^ ERROR `be` is a reserved keyword
12+
let become = 0;
13+
//~^ ERROR `become` is a reserved keyword
1414
}

0 commit comments

Comments
 (0)