about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2014-12-18 17:55:04 +1300
committerNick Cameron <ncameron@mozilla.com>2014-12-30 13:06:24 +1300
commited8f5039115308ca9d5591126e4d8a77864d4730 (patch)
treefef6c67dd64068ff73c4509d078d25ba88fa4f21 /src/libsyntax/parse
parent71123902e17ad339649f33423995eac78da40e3c (diff)
downloadrust-ed8f5039115308ca9d5591126e4d8a77864d4730.tar.gz
rust-ed8f5039115308ca9d5591126e4d8a77864d4730.zip
Add hypothetical support for ranges with only an upper bound
Note that this doesn't add the surface syntax.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index a2e2abab03e..ec1e966926a 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2144,7 +2144,7 @@ impl<'a> Parser<'a> {
                     start: P<Expr>,
                     end: Option<P<Expr>>)
                     -> ast::Expr_ {
-        ExprRange(start, end)
+        ExprRange(Some(start), end)
     }
 
     pub fn mk_field(&mut self, expr: P<Expr>, ident: ast::SpannedIdent) -> ast::Expr_ {