about summary refs log tree commit diff
path: root/src/libsyntax/util/parser.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-04-01 21:48:39 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-04-12 23:02:09 +0300
commit44acea4d880b646caa00a7237ea1a17031dd2116 (patch)
treef109f2beda49e7972c2c6e562944c1a2c810c3d2 /src/libsyntax/util/parser.rs
parent6c537493d01694cc6e0a614dff12c475055aa2b4 (diff)
downloadrust-44acea4d880b646caa00a7237ea1a17031dd2116.tar.gz
rust-44acea4d880b646caa00a7237ea1a17031dd2116.zip
AST/HIR: Merge field access expressions for named and numeric fields
Diffstat (limited to 'src/libsyntax/util/parser.rs')
-rw-r--r--src/libsyntax/util/parser.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libsyntax/util/parser.rs b/src/libsyntax/util/parser.rs
index 4770273e8c4..524f9f127f5 100644
--- a/src/libsyntax/util/parser.rs
+++ b/src/libsyntax/util/parser.rs
@@ -251,7 +251,6 @@ pub enum ExprPrecedence {
     Call,
     MethodCall,
     Field,
-    TupField,
     Index,
     Try,
     InlineAsm,
@@ -320,7 +319,6 @@ impl ExprPrecedence {
             ExprPrecedence::Call |
             ExprPrecedence::MethodCall |
             ExprPrecedence::Field |
-            ExprPrecedence::TupField |
             ExprPrecedence::Index |
             ExprPrecedence::Try |
             ExprPrecedence::InlineAsm |
@@ -365,7 +363,6 @@ pub fn contains_exterior_struct_lit(value: &ast::Expr) -> bool {
         ast::ExprKind::Cast(ref x, _) |
         ast::ExprKind::Type(ref x, _) |
         ast::ExprKind::Field(ref x, _) |
-        ast::ExprKind::TupField(ref x, _) |
         ast::ExprKind::Index(ref x, _) => {
             // &X { y: 1 }, X { y: 1 }.y
             contains_exterior_struct_lit(&x)