mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
7dcbaedd32
Per issue #2418.
16 lines
518 B
Rust
16 lines
518 B
Rust
import base::*;
|
|
import io::writer_util;
|
|
|
|
fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg,
|
|
_body: ast::mac_body) -> @ast::expr {
|
|
let args = get_mac_args_no_max(cx,sp,arg,0u,"log_syntax");
|
|
cx.print_backtrace();
|
|
io::stdout().write_line(
|
|
str::connect(vec::map(args,
|
|
{|&&ex| print::pprust::expr_to_str(ex)}), ", ")
|
|
);
|
|
|
|
//trivial expression
|
|
ret @{id: cx.next_id(), node: ast::expr_rec([], option::none), span: sp};
|
|
}
|