diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2015-03-13 22:22:04 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2015-03-24 14:18:39 -0700 |
| commit | 4ec07ed29a835e091051bd0a92f7f8a8cd22ad42 (patch) | |
| tree | 02f75b6e72646da7998b57d91c5d810321d05553 /src/libsyntax/ext | |
| parent | c3f4fba9cc218957797cdd0c70b2028b39a7cfbd (diff) | |
| download | rust-4ec07ed29a835e091051bd0a92f7f8a8cd22ad42.tar.gz rust-4ec07ed29a835e091051bd0a92f7f8a8cd22ad42.zip | |
syntax: Allow where strings to be parsed independent from generics
This allows quasiquoting to insert where clauses.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index c11ffe66e6c..7dac40c87d1 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -175,6 +175,7 @@ pub mod rt { impl_to_source! { ast::Block, block_to_string } impl_to_source! { ast::Arg, arg_to_string } impl_to_source! { Generics, generics_to_string } + impl_to_source! { ast::WhereClause, where_clause_to_string } impl_to_source! { P<ast::Item>, item_to_string } impl_to_source! { P<ast::ImplItem>, impl_item_to_string } impl_to_source! { P<ast::TraitItem>, trait_item_to_string } @@ -318,6 +319,7 @@ pub mod rt { impl_to_tokens! { ast::Ty } impl_to_tokens_lifetime! { &'a [ast::Ty] } impl_to_tokens! { Generics } + impl_to_tokens! { ast::WhereClause } impl_to_tokens! { P<ast::Stmt> } impl_to_tokens! { P<ast::Expr> } impl_to_tokens! { ast::Block } |
