From fc67d8fac48d48bcdeaab1c8e0a2770e0f246247 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Fri, 31 Aug 2018 12:01:26 +1200 Subject: Give each PathSegment a NodeId --- src/libsyntax/parse/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/parse') 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,) }) } -- cgit 1.4.1-3-g733a5