diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-12-18 20:00:19 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-12-18 20:00:19 +0300 |
| commit | 95fdaf237575e44ecf16f9fb13ab60058909f281 (patch) | |
| tree | d5c2379977294b5bf5a0b51adb413f34851d958d /src/libsyntax/parse | |
| parent | e0ceef5a9e9224baf1f108ede1d1033e5e7fef08 (diff) | |
| download | rust-95fdaf237575e44ecf16f9fb13ab60058909f281.tar.gz rust-95fdaf237575e44ecf16f9fb13ab60058909f281.zip | |
Require exact type equality + add tests
+ Rebase fixes
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
