diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-01 18:49:39 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-01 19:16:09 -0700 |
| commit | 2d8c7fd096c4b1551945e22b00266586a929b39c (patch) | |
| tree | 3f8d2e1c4c24c167ed08d08ea306202b4f443232 /src/libsyntax/parse | |
| parent | b355936b4da0831f47afe8f251daee503c8caa32 (diff) | |
| download | rust-2d8c7fd096c4b1551945e22b00266586a929b39c.tar.gz rust-2d8c7fd096c4b1551945e22b00266586a929b39c.zip | |
syntax: Remove 'ret'
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 4eaf32e9968..06c0a6edc21 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -839,7 +839,7 @@ class parser { let e = self.parse_expr(); ex = expr_assert(e); hi = e.span.hi; - } else if self.eat_keyword(~"ret") || self.eat_keyword(~"return") { + } else if self.eat_keyword(~"return") { if can_begin_expr(self.token) { let e = self.parse_expr(); hi = e.span.hi; |
