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 ;
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 |
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.
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 |
Original file line number Diff line number Diff 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" ) ;
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