diff options
| author | bors <bors@rust-lang.org> | 2018-10-26 00:04:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-10-26 00:04:29 +0000 |
| commit | 7b0735a832dd49cb482084590eb0f2577955c079 (patch) | |
| tree | 4643cd80f8d6e5f3ace9574a30158020dba1c830 /src/libsyntax/ext | |
| parent | 4bd4e4130ed531a644263db26bf8461704215c77 (diff) | |
| parent | 6dd5bb18d7a832add3f0cadb70897da6fd44892b (diff) | |
| download | rust-7b0735a832dd49cb482084590eb0f2577955c079.tar.gz rust-7b0735a832dd49cb482084590eb0f2577955c079.zip | |
Auto merge of #54145 - nrc:save-path-segments, r=petrochenkov
Keep resolved defs in path prefixes and emit them in save-analysis Closes https://github.com/nrc/rls-analysis/issues/109 r? @eddyb or @petrochenkov
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 8 |
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, |
