File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ token : simple_token | ident | literal | symbol | whitespace token ;
157
157
158
158
| | | | | |
159
159
| ----------| ----------| ----------| ----------| --------|
160
- | abstract | alignof | as | be | box |
160
+ | abstract | alignof | as | become | box |
161
161
| break | const | continue | crate | do |
162
162
| else | enum | extern | false | final |
163
163
| fn | for | if | impl | in |
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ grammar as double-quoted strings. Other tokens have exact rules given.
189
189
190
190
| | | | | |
191
191
| ----------| ----------| ----------| ----------| ---------|
192
- | abstract | alignof | as | be | box |
192
+ | abstract | alignof | as | become | box |
193
193
| break | const | continue | crate | do |
194
194
| else | enum | extern | false | final |
195
195
| fn | for | if | impl | in |
Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ declare_special_idents_and_keywords! {
562
562
( 45 , Where , "where" ) ;
563
563
' reserved:
564
564
( 46 , Alignof , "alignof" ) ;
565
- ( 47 , Be , "be ") ;
565
+ ( 47 , Become , "become ") ;
566
566
( 48 , Offsetof , "offsetof" ) ;
567
567
( 49 , Priv , "priv" ) ;
568
568
( 50 , Pure , "pure" ) ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ fn main ( ) {
12
+ let become = 0 ;
13
+ //~^ ERROR `become` is a reserved keyword
14
+ }
You can’t perform that action at this time.
0 commit comments