From d87b308b67ab070d67ab66062b33f64e5bc621e4 Mon Sep 17 00:00:00 2001 From: Jared Roesch Date: Sat, 20 Dec 2014 02:48:43 -0800 Subject: Add support for multiple region bounds in where clauses --- src/libsyntax/parse/parser.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 64bcf7dbdd1..f8b47e0405f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4199,9 +4199,8 @@ impl<'a> Parser<'a> { self.eat(&token::Colon); - // FIXME(#20049) - let bounding_lifetime = - self.parse_lifetime(); + let bounds = + self.parse_lifetimes(token::BinOp(token::Plus)); let hi = self.span.hi; let span = mk_sp(lo, hi); @@ -4210,7 +4209,7 @@ impl<'a> Parser<'a> { ast::WhereRegionPredicate { span: span, lifetime: bounded_lifetime, - bound: bounding_lifetime + bounds: bounds } )); -- cgit 1.4.1-3-g733a5