This commit is contained in:
Tamir Duberstein 2015-03-14 15:38:59 -07:00
parent f59af75bd8
commit 0b01a9bb4b

View File

@ -118,7 +118,7 @@ fn backtrace(buf: *mut *mut libc::c_void,
// local, it still displays much nicer backtraces when a
// couple of tasks panic simultaneously
static LOCK: StaticMutex = MUTEX_INIT;
let _g = unsafe { LOCK.lock() };
let _g = LOCK.lock();
try!(writeln!(w, "stack backtrace:"));
// 100 lines should be enough