Skip to content

Commit

Permalink
syntax: Allow quotes to insert path
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt committed Mar 24, 2015
1 parent 4ec07ed commit a17f556
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libsyntax/ext/quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -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> }
Expand Down

0 comments on commit a17f556

Please sign in to comment.