rollup merge of #20029: vhbit/ios-no-rt
This commit is contained in:
commit
cfc815bef4
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ use sys_common::backtrace::*;
|
|||
#[cfg(all(target_os = "ios", target_arch = "arm"))]
|
||||
#[inline(never)]
|
||||
pub fn write(w: &mut Writer) -> IoResult<()> {
|
||||
use iter::{Iterator, range};
|
||||
use iter::{IteratorExt, range};
|
||||
use result;
|
||||
use slice::SliceExt;
|
||||
|
||||
|
@ -117,7 +117,7 @@ pub fn write(w: &mut Writer) -> IoResult<()> {
|
|||
// while it doesn't requires lock for work as everything is
|
||||
// local, it still displays much nicer backtraces when a
|
||||
// couple of tasks panic simultaneously
|
||||
static LOCK: StaticNativeMutex = NATIVE_MUTEX_INIT;
|
||||
static LOCK: StaticMutex = MUTEX_INIT;
|
||||
let _g = unsafe { LOCK.lock() };
|
||||
|
||||
try!(writeln!(w, "stack backtrace:"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue