Attach TokenStream
to ast::Path
This commit is contained in:
parent
3815e91ccd
commit
55082ce413
15 changed files with 41 additions and 21 deletions
|
@ -46,7 +46,7 @@ impl<'a> ExtCtxt<'a> {
|
|||
id: ast::DUMMY_NODE_ID,
|
||||
args,
|
||||
});
|
||||
ast::Path { span, segments }
|
||||
ast::Path { span, segments, tokens: None }
|
||||
}
|
||||
|
||||
pub fn ty_mt(&self, ty: P<ast::Ty>, mutbl: ast::Mutability) -> ast::MutTy {
|
||||
|
|
|
@ -18,7 +18,7 @@ pub fn placeholder(
|
|||
) -> AstFragment {
|
||||
fn mac_placeholder() -> ast::MacCall {
|
||||
ast::MacCall {
|
||||
path: ast::Path { span: DUMMY_SP, segments: Vec::new() },
|
||||
path: ast::Path { span: DUMMY_SP, segments: Vec::new(), tokens: None },
|
||||
args: P(ast::MacArgs::Empty),
|
||||
prior_type_ascription: None,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue