Give each PathSegment a NodeId

This commit is contained in:
Nick Cameron
2018-08-31 12:01:26 +12:00
parent 8ec22e7ec7
commit fc67d8fac4
4 changed files with 19 additions and 7 deletions

View File

@@ -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,)
})
}