diff options
| author | Barosl LEE <github@barosl.com> | 2015-01-21 02:16:50 +0900 |
|---|---|---|
| committer | Barosl LEE <github@barosl.com> | 2015-01-21 02:16:50 +0900 |
| commit | a79f1921a977595a0321dee96ba08b17b52850ae (patch) | |
| tree | 2da2bbe2af6684be00aa3d762ace19203abcbe50 /src/libstd/sys | |
| parent | 0efdda314a48b5824673510fbaa0c6d9ddf301df (diff) | |
| parent | 812ce6c190d896cf1cc1bef9f22c00266e962c43 (diff) | |
| download | rust-a79f1921a977595a0321dee96ba08b17b52850ae.tar.gz rust-a79f1921a977595a0321dee96ba08b17b52850ae.zip | |
Rollup merge of #21375 - petrochenkov:ssbsl, r=alexcrichton
After PR #19766 added implicit coersions `*mut T -> *const T`, the explicit casts can be removed. (The number of such casts turned out to be relatively small).
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 7164931c55a..70b9c012b00 100644 --- a/src/libstd/sys/unix/backtrace.rs +++ b/src/libstd/sys/unix/backtrace.rs @@ -229,7 +229,7 @@ fn print(w: &mut Writer, idx: int, addr: *mut libc::c_void) -> IoResult<()> { } let mut info: Dl_info = unsafe { intrinsics::init() }; - if unsafe { dladdr(addr as *const libc::c_void, &mut info) == 0 } { + if unsafe { dladdr(addr, &mut info) == 0 } { output(w, idx,addr, None) } else { output(w, idx, addr, Some(unsafe { |
