Attach TokenStream to ast::Path

This commit is contained in:
Aaron Hill
2020-08-21 18:51:23 -04:00
parent 3815e91ccd
commit 55082ce413
15 changed files with 41 additions and 21 deletions

View File

@@ -901,7 +901,7 @@ impl<'a> Parser<'a> {
) -> PResult<'a, P<T>> {
self.expect(&token::ModSep)?;
let mut path = ast::Path { segments: Vec::new(), span: DUMMY_SP };
let mut path = ast::Path { segments: Vec::new(), span: DUMMY_SP, tokens: None };
self.parse_path_segments(&mut path.segments, T::PATH_STYLE)?;
path.span = ty_span.to(self.prev_token.span);