Change builtin macro defs to use #macro()
This commit is contained in:
parent
4f9e1ba80b
commit
91b0a51290
1 changed files with 4 additions and 4 deletions
|
@ -55,10 +55,10 @@ fn expand_expr(exts: hashmap<str, syntax_extension>, cx: ext_ctxt, e: expr_,
|
|||
fn core_macros() -> str {
|
||||
ret
|
||||
"{
|
||||
#macro[[#error[f, ...], log(core::error, #fmt[f, ...])]];
|
||||
#macro[[#warn[f, ...], log(core::warn, #fmt[f, ...])]];
|
||||
#macro[[#info[f, ...], log(core::info, #fmt[f, ...])]];
|
||||
#macro[[#debug[f, ...], log(core::debug, #fmt[f, ...])]];
|
||||
#macro([#error[f, ...], log(core::error, #fmt[f, ...])]);
|
||||
#macro([#warn[f, ...], log(core::warn, #fmt[f, ...])]);
|
||||
#macro([#info[f, ...], log(core::info, #fmt[f, ...])]);
|
||||
#macro([#debug[f, ...], log(core::debug, #fmt[f, ...])]);
|
||||
}";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue