Switch core macros to expand to log(level, ...).
This commit is contained in:
parent
389329ef1e
commit
ccb5b6fb25
@ -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_full(core::error, #fmt[f, ...])]];
|
||||
#macro[[#warn[f, ...], log_full(core::warn, #fmt[f, ...])]];
|
||||
#macro[[#info[f, ...], log_full(core::info, #fmt[f, ...])]];
|
||||
#macro[[#debug[f, ...], log_full(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 New Issue
Block a user