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:
Aaron Hill
2020-08-21 18:18:04 -04:00
parent de4bd9f0f8
commit 1823dea7df
12 changed files with 42 additions and 15 deletions

View File

@@ -1106,6 +1106,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
id: node_id,
kind: TyKind::ImplTrait(impl_trait_node_id, bounds.clone()),
span: constraint.span,
tokens: None,
},
itctx,
);