mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
auto merge of #11858 : huonw/rust/11841-followup, r=brson
Follow-up to #11841 which added this function.
This commit is contained in:
@@ -391,6 +391,10 @@ fn static_char_ptr(p: *u8) -> &'static str {
|
||||
/// the actual formatting into this shared place.
|
||||
#[inline(never)] #[cold]
|
||||
pub fn begin_unwind_fmt(msg: &fmt::Arguments, file: &'static str, line: uint) -> ! {
|
||||
// We do two allocations here, unfortunately. But (a) they're
|
||||
// required with the current scheme, and (b) we don't handle
|
||||
// failure + OOM properly anyway (see comment in begin_unwind
|
||||
// below).
|
||||
begin_unwind_inner(~fmt::format(msg), file, line)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user