about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2018-08-31 12:01:26 +1200
committerNick Cameron <ncameron@mozilla.com>2018-10-26 09:48:44 +1300
commitfc67d8fac48d48bcdeaab1c8e0a2770e0f246247 (patch)
tree61da5926212793f34606e7cffeb3e66384577afe /src/libsyntax/parse/parser.rs
parent8ec22e7ec7ed0da2add0763d239e77c5474f3d4a (diff)
downloadrust-fc67d8fac48d48bcdeaab1c8e0a2770e0f246247.tar.gz
rust-fc67d8fac48d48bcdeaab1c8e0a2770e0f246247.zip
Give each PathSegment a NodeId
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 9c47589a0bd..619a53e1c7c 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2134,10 +2134,10 @@ impl<'a> Parser<'a> {
                 ParenthesisedArgs { inputs, output, span }.into()
             };
 
-            PathSegment { ident, args }
+            PathSegment { ident, args, id: ast::DUMMY_NODE_ID }
         } else {
             // Generic arguments are not found.
-            PathSegment::from_ident(ident)
+            PathSegment::from_ident(ident,)
         })
     }