about summary refs log tree commit diff
path: root/src/libsyntax/ext
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/ext
parent8ec22e7ec7ed0da2add0763d239e77c5474f3d4a (diff)
downloadrust-fc67d8fac48d48bcdeaab1c8e0a2770e0f246247.tar.gz
rust-fc67d8fac48d48bcdeaab1c8e0a2770e0f246247.zip
Give each PathSegment a NodeId
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/build.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs
index 6210003a40d..7928ec1606b 100644
--- a/src/libsyntax/ext/build.rs
+++ b/src/libsyntax/ext/build.rs
@@ -329,7 +329,11 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
         } else {
             None
         };
-        segments.push(ast::PathSegment { ident: last_ident.with_span_pos(span), args });
+        segments.push(ast::PathSegment {
+            ident: last_ident.with_span_pos(span),
+            id: ast::DUMMY_NODE_ID,
+            args,
+        });
         let mut path = ast::Path { span, segments };
         if global {
             if let Some(seg) = path.make_root() {
@@ -366,7 +370,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
         } else {
             None
         };
-        path.segments.push(ast::PathSegment { ident, args });
+        path.segments.push(ast::PathSegment { ident, id: ast::DUMMY_NODE_ID, args });
 
         (ast::QSelf {
             ty: self_type,