Skip to content

Commit 3a19eef

Browse files
committed
libsyntax: Remove move as a keyword.
1 parent 178882c commit 3a19eef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ pub impl Parser {
712712
fn parse_capture_item_or(parse_arg_fn: fn(Parser) -> arg_or_capture_item)
713713
-> arg_or_capture_item
714714
{
715-
if self.eat_keyword(~"move") || self.eat_keyword(~"copy") {
715+
if self.eat_keyword(~"copy") {
716716
// XXX outdated syntax now that moves-based-on-type has gone in
717717
self.parse_ident();
718718
either::Right(())

src/libsyntax/parse/token.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ pub fn strict_keyword_table() -> HashMap<~str, ()> {
493493
~"false", ~"fn", ~"for",
494494
~"if", ~"impl",
495495
~"let", ~"log", ~"loop",
496-
~"match", ~"mod", ~"move", ~"mut",
496+
~"match", ~"mod", ~"mut",
497497
~"once",
498498
~"priv", ~"pub", ~"pure",
499499
~"ref", ~"return",

0 commit comments

Comments
 (0)