From 95fdaf237575e44ecf16f9fb13ab60058909f281 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Fri, 18 Dec 2015 20:00:19 +0300 Subject: Require exact type equality + add tests + Rebase fixes --- src/libsyntax/parse/parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index dd1fe22a4eb..075360b9623 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2791,7 +2791,8 @@ impl<'a> Parser<'a> { continue } else if op == AssocOp::Colon { let rhs = try!(self.parse_ty()); - lhs = self.mk_expr(lhs.span.lo, rhs.span.hi, ExprType(lhs, rhs)); + lhs = self.mk_expr(lhs.span.lo, rhs.span.hi, + ExprType(lhs, rhs), None); continue } else if op == AssocOp::DotDot { // If we didn’t have to handle `x..`, it would be pretty easy to generalise -- cgit 1.4.1-3-g733a5