Skip to content

Commit dfe721c

Browse files
committed
Update to rustc 1.18.0-nightly (1785bca51 2017-04-21)
Closes #80
1 parent 2e5147c commit dfe721c

File tree

3 files changed

+165
-194
lines changed

3 files changed

+165
-194
lines changed

maud_macros/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ type PResult<T> = Result<T, FatalError>;
2727

2828
fn expand_html<'cx>(cx: &'cx mut ExtCtxt, sp: Span, args: &[TokenTree]) -> Box<MacResult + 'cx> {
2929
match parse::parse(cx, sp, args) {
30-
Ok(expr) => MacEager::expr(expr),
30+
Ok(expr) => MacEager::expr(quote_expr!(cx, $expr)),
3131
Err(..) => DummyResult::expr(sp),
3232
}
3333
}
3434

3535
fn expand_html_debug<'cx>(cx: &'cx mut ExtCtxt, sp: Span, args: &[TokenTree]) -> Box<MacResult + 'cx> {
3636
match parse::parse(cx, sp, args) {
3737
Ok(expr) => {
38+
let expr = quote_expr!(cx, $expr);
3839
cx.span_warn(sp, &format!("expansion:\n{}",
3940
pprust::expr_to_string(&expr)));
4041
MacEager::expr(expr)

0 commit comments

Comments
 (0)