diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2018-08-31 12:01:26 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2018-10-26 09:48:44 +1300 |
| commit | fc67d8fac48d48bcdeaab1c8e0a2770e0f246247 (patch) | |
| tree | 61da5926212793f34606e7cffeb3e66384577afe /src/libsyntax/parse | |
| parent | 8ec22e7ec7ed0da2add0763d239e77c5474f3d4a (diff) | |
| download | rust-fc67d8fac48d48bcdeaab1c8e0a2770e0f246247.tar.gz rust-fc67d8fac48d48bcdeaab1c8e0a2770e0f246247.zip | |
Give each PathSegment a NodeId
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
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,) }) } |
