diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2015-03-14 00:20:30 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2015-03-24 14:18:39 -0700 |
| commit | a17f5563b855cfaa1be0c1564a1e484dbb8e97a2 (patch) | |
| tree | 0e25ca0f92b4302ac7ba15b50a736242ea7ff869 /src/libsyntax | |
| parent | 4ec07ed29a835e091051bd0a92f7f8a8cd22ad42 (diff) | |
| download | rust-a17f5563b855cfaa1be0c1564a1e484dbb8e97a2.tar.gz rust-a17f5563b855cfaa1be0c1564a1e484dbb8e97a2.zip | |
syntax: Allow quotes to insert path
Diffstat (limited to 'src/libsyntax')
| -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 7dac40c87d1..2f609d86f39 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -171,6 +171,7 @@ pub mod rt { } } + impl_to_source! { ast::Path, path_to_string } impl_to_source! { ast::Ty, ty_to_string } impl_to_source! { ast::Block, block_to_string } impl_to_source! { ast::Arg, arg_to_string } @@ -310,6 +311,7 @@ pub mod rt { } impl_to_tokens! { ast::Ident } + impl_to_tokens! { ast::Path } impl_to_tokens! { P<ast::Item> } impl_to_tokens! { P<ast::ImplItem> } impl_to_tokens! { P<ast::TraitItem> } |
