Add hypothetical support for ranges with only an upper bound

Note that this doesn't add the surface syntax.
This commit is contained in:
Nick Cameron 2014-12-18 17:55:04 +13:00
parent 71123902e1
commit ed8f503911
14 changed files with 81 additions and 40 deletions

View file

@ -724,7 +724,7 @@ pub enum Expr_ {
ExprTupField(P<Expr>, Spanned<uint>),
ExprIndex(P<Expr>, P<Expr>),
ExprSlice(P<Expr>, Option<P<Expr>>, Option<P<Expr>>, Mutability),
ExprRange(P<Expr>, Option<P<Expr>>),
ExprRange(Option<P<Expr>>, Option<P<Expr>>),
/// Variable reference, possibly containing `::` and/or
/// type parameters, e.g. foo::bar::<baz>