Switch core macros to expand to log(level, ...).
This commit is contained in:
parent
389329ef1e
commit
ccb5b6fb25
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 {
|
fn core_macros() -> str {
|
||||||
ret
|
ret
|
||||||
"{
|
"{
|
||||||
#macro[[#error[f, ...], log_full(core::error, #fmt[f, ...])]];
|
#macro[[#error[f, ...], log(core::error, #fmt[f, ...])]];
|
||||||
#macro[[#warn[f, ...], log_full(core::warn, #fmt[f, ...])]];
|
#macro[[#warn[f, ...], log(core::warn, #fmt[f, ...])]];
|
||||||
#macro[[#info[f, ...], log_full(core::info, #fmt[f, ...])]];
|
#macro[[#info[f, ...], log(core::info, #fmt[f, ...])]];
|
||||||
#macro[[#debug[f, ...], log_full(core::debug, #fmt[f, ...])]];
|
#macro[[#debug[f, ...], log(core::debug, #fmt[f, ...])]];
|
||||||
}";
|
}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue