std: Fixed backtrace warnings and tests for non-Linux platforms.
- Fixed a couple of dead code warnings in std::sys::backtrace. - Made `backtrace-debuginfo` test a no-op on non-Linux platforms. - `backtrace-debuginfo` is no longer tested on pretty-rpass.
This commit is contained in:
parent
587f10aa36
commit
ff678ea3f4
2 changed files with 28 additions and 5 deletions
|
@ -224,7 +224,7 @@ pub fn write(w: &mut Writer) -> IoResult<()> {
|
|||
|
||||
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||
fn print(w: &mut Writer, idx: int, addr: *mut libc::c_void,
|
||||
symaddr: *mut libc::c_void) -> IoResult<()> {
|
||||
_symaddr: *mut libc::c_void) -> IoResult<()> {
|
||||
use intrinsics;
|
||||
#[repr(C)]
|
||||
struct Dl_info {
|
||||
|
@ -450,6 +450,7 @@ fn output(w: &mut Writer, idx: int, addr: *mut libc::c_void,
|
|||
w.write_all(&['\n' as u8])
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn output_fileline(w: &mut Writer, file: &[u8], line: libc::c_int,
|
||||
more: bool) -> IoResult<()> {
|
||||
let file = str::from_utf8(file).ok().unwrap_or("<unknown>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue