Attach TokenStream
to ast::Ty
A `Ty` does not have outer attributes, so we only capture tokens when parsing a `macro_rules!` matcher
This commit is contained in:
parent
de4bd9f0f8
commit
1823dea7df
12 changed files with 42 additions and 15 deletions
|
@ -54,7 +54,7 @@ impl<'a> ExtCtxt<'a> {
|
|||
}
|
||||
|
||||
pub fn ty(&self, span: Span, kind: ast::TyKind) -> P<ast::Ty> {
|
||||
P(ast::Ty { id: ast::DUMMY_NODE_ID, span, kind })
|
||||
P(ast::Ty { id: ast::DUMMY_NODE_ID, span, kind, tokens: None })
|
||||
}
|
||||
|
||||
pub fn ty_path(&self, path: ast::Path) -> P<ast::Ty> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue