diff options
| author | Valerii Hiora <valerii.hiora@gmail.com> | 2014-12-19 16:11:26 +0200 |
|---|---|---|
| committer | Valerii Hiora <valerii.hiora@gmail.com> | 2014-12-19 16:34:01 +0200 |
| commit | e5d8c855079e08e1aab2cf7b4e5110159ad8fa53 (patch) | |
| tree | 5683d070b8407da7f5c8c2c6843cefc2c98142cf /src/libstd | |
| parent | 0efafac398ff7f28c5f0fe756c15b9008b3e0534 (diff) | |
| download | rust-e5d8c855079e08e1aab2cf7b4e5110159ad8fa53.tar.gz rust-e5d8c855079e08e1aab2cf7b4e5110159ad8fa53.zip | |
iOS: fallout of runtime removal
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys/unix/backtrace.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/backtrace.rs b/src/libstd/sys/unix/backtrace.rs index df9dbad2ec7..983d0e5fa14 100644 --- a/src/libstd/sys/unix/backtrace.rs +++ b/src/libstd/sys/unix/backtrace.rs @@ -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:")); |
