Update Rust
This commit is contained in:
parent
8ff7ed8334
commit
74475f922b
1 changed files with 2 additions and 2 deletions
|
@ -8,14 +8,14 @@ extern crate maud;
|
||||||
|
|
||||||
use syntax::ast::TokenTree;
|
use syntax::ast::TokenTree;
|
||||||
use syntax::codemap::Span;
|
use syntax::codemap::Span;
|
||||||
use syntax::ext::base::{ExtCtxt, MacExpr, MacResult};
|
use syntax::ext::base::{ExtCtxt, MacEager, MacResult};
|
||||||
use rustc::plugin::Registry;
|
use rustc::plugin::Registry;
|
||||||
|
|
||||||
mod parse;
|
mod parse;
|
||||||
mod render;
|
mod render;
|
||||||
|
|
||||||
fn expand_html<'cx>(cx: &'cx mut ExtCtxt, sp: Span, args: &[TokenTree]) -> Box<MacResult + 'cx> {
|
fn expand_html<'cx>(cx: &'cx mut ExtCtxt, sp: Span, args: &[TokenTree]) -> Box<MacResult + 'cx> {
|
||||||
MacExpr::new(parse::parse(cx, args, sp))
|
MacEager::expr(parse::parse(cx, args, sp))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[plugin_registrar]
|
#[plugin_registrar]
|
||||||
|
|
Loading…
Add table
Reference in a new issue