Allow Self in impls.

This commit is contained in:
Nick Cameron
2014-12-14 15:42:41 +13:00
parent cbe9fb45bc
commit 31f5ab3f0c
3 changed files with 90 additions and 5 deletions

View File

@@ -490,7 +490,7 @@ impl<'a> ExtCtxt<'a> {
/// Returns a `Folder` for deeply expanding all macros in a AST node.
pub fn expander<'b>(&'b mut self) -> expand::MacroExpander<'b, 'a> {
expand::MacroExpander { cx: self }
expand::MacroExpander::new(self)
}
pub fn new_parser_from_tts(&self, tts: &[ast::TokenTree])