Rename begin_unwind_string to fail_str, refs #16114
This commit is contained in:
@@ -18,7 +18,7 @@ macro_rules! fail(
|
||||
);
|
||||
($msg:expr) => ({
|
||||
static _FILE_LINE: (&'static str, uint) = (file!(), line!());
|
||||
::core::failure::fail_impl_string($msg, &_FILE_LINE)
|
||||
::core::failure::fail_str($msg, &_FILE_LINE)
|
||||
});
|
||||
($fmt:expr, $($arg:tt)*) => ({
|
||||
// a closure can't have return type !, so we need a full
|
||||
@@ -40,7 +40,7 @@ macro_rules! fail(
|
||||
#[inline(always)]
|
||||
fn _run_fmt(fmt: &::std::fmt::Arguments) -> ! {
|
||||
static _FILE_LINE: (&'static str, uint) = (file!(), line!());
|
||||
::core::failure::fail_impl(fmt, &_FILE_LINE)
|
||||
::core::failure::fail_fmt(fmt, &_FILE_LINE)
|
||||
}
|
||||
format_args!(_run_fmt, $fmt, $($arg)*)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user