diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2015-03-14 15:38:59 -0700 |
|---|---|---|
| committer | Tamir Duberstein <tamird@gmail.com> | 2015-03-15 01:29:12 -0700 |
| commit | 0b01a9bb4b93e3f763b4ab924179462b415991d4 (patch) | |
| tree | 0bc68529db695a62972f59cc36d9e7e83bca5de2 /src/libstd/sys | |
| parent | f59af75bd851b1a80cd2fab5cddd2875dcaf710e (diff) | |
| download | rust-0b01a9bb4b93e3f763b4ab924179462b415991d4.tar.gz rust-0b01a9bb4b93e3f763b4ab924179462b415991d4.zip | |
Fallout of c933d44f7bb9
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/backtrace.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/backtrace.rs b/src/libstd/sys/unix/backtrace.rs index 3fa9f5d07aa..74ab04978cb 100644 --- a/src/libstd/sys/unix/backtrace.rs +++ b/src/libstd/sys/unix/backtrace.rs @@ -118,7 +118,7 @@ pub fn write(w: &mut Write) -> io::Result<()> { // 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 |
