1
Fork 0

Load macros from external modules

This commit is contained in:
Steven Fackler 2013-12-25 11:10:33 -07:00 committed by Steven Fackler
parent a5ed0c58cb
commit 328b47d837
39 changed files with 872 additions and 204 deletions

View file

@ -236,7 +236,7 @@ pub trait AstBuilder {
vis: ast::Visibility, path: ~[ast::Ident]) -> ast::ViewItem;
}
impl AstBuilder for ExtCtxt {
impl<'a> AstBuilder for ExtCtxt<'a> {
fn path(&self, span: Span, strs: ~[ast::Ident]) -> ast::Path {
self.path_all(span, false, strs, opt_vec::Empty, ~[])
}
@ -896,7 +896,7 @@ impl AstBuilder for ExtCtxt {
}
struct Duplicator<'a> {
cx: &'a ExtCtxt,
cx: &'a ExtCtxt<'a>,
}
impl<'a> Folder for Duplicator<'a> {