Fix typo with format migration: s/oldformat/oldfmt/.

This commit is contained in:
Huon Wilson 2013-10-01 19:36:16 +10:00
parent 8bb48cc1e6
commit 6f166894ba
1 changed files with 4 additions and 4 deletions

View File

@ -813,7 +813,7 @@ pub fn std_macros() -> @str {
mod fmt_extension {
#[macro_escape];
macro_rules! fmt(($($arg:tt)*) => (oldformat!($($arg)*)))
macro_rules! fmt(($($arg:tt)*) => (oldfmt!($($arg)*)))
macro_rules! log(
($lvl:expr, $arg:expr) => ({
@ -821,7 +821,7 @@ pub fn std_macros() -> @str {
if lvl <= __log_level() {
format_args!(|args| {
::std::logging::log(lvl, args)
}, \"{}\", format!(\"{:?}\", $arg))
}, \"{}\", fmt!(\"{:?}\", $arg))
}
});
($lvl:expr, $($arg:expr),+) => ({
@ -829,7 +829,7 @@ pub fn std_macros() -> @str {
if lvl <= __log_level() {
format_args!(|args| {
::std::logging::log(lvl, args)
}, \"{}\", format!($($arg),+))
}, \"{}\", fmt!($($arg),+))
}
})
)
@ -848,7 +848,7 @@ pub fn std_macros() -> @str {
::std::sys::FailWithCause::fail_with($msg, file!(), line!())
);
($( $arg:expr ),+) => (
::std::sys::FailWithCause::fail_with(format!( $($arg),+ ), file!(), line!())
::std::sys::FailWithCause::fail_with(fmt!( $($arg),+ ), file!(), line!())
)
)
}