1
Fork 0

rollup merge of #20029: vhbit/ios-no-rt

This commit is contained in:
Alex Crichton 2014-12-21 00:04:11 -08:00
commit cfc815bef4

View file

@ -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:"));