Skip to content

Commit cfc815b

Browse files
committed
rollup merge of #20029: vhbit/ios-no-rt
2 parents a3dfaa6 + e5d8c85 commit cfc815b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/unix/backtrace.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ use sys_common::backtrace::*;
105105
#[cfg(all(target_os = "ios", target_arch = "arm"))]
106106
#[inline(never)]
107107
pub fn write(w: &mut Writer) -> IoResult<()> {
108-
use iter::{Iterator, range};
108+
use iter::{IteratorExt, range};
109109
use result;
110110
use slice::SliceExt;
111111

@@ -117,7 +117,7 @@ pub fn write(w: &mut Writer) -> IoResult<()> {
117117
// while it doesn't requires lock for work as everything is
118118
// local, it still displays much nicer backtraces when a
119119
// couple of tasks panic simultaneously
120-
static LOCK: StaticNativeMutex = NATIVE_MUTEX_INIT;
120+
static LOCK: StaticMutex = MUTEX_INIT;
121121
let _g = unsafe { LOCK.lock() };
122122

123123
try!(writeln!(w, "stack backtrace:"));

0 commit comments

Comments
 (0)