Skip to content

Commit df91cb9

Browse files
committed
Auto merge of #31782 - pitdicker:clean_out_windows_c, r=alexcrichton
I am not entirely sure I have got everything right, but if it compiles it is ok probably... I tested it with msvc x86_64 and gnu. Somehow a lot of `EXCEPTION-*` constants are dead code when running test, no idea why. I have put `#![cfg_attr(test, allow(dead_code))]` at the top for this.
2 parents 304c790 + 98fa5ac commit df91cb9

File tree

4 files changed

+38
-210
lines changed

4 files changed

+38
-210
lines changed

src/libstd/sys/windows/backtrace.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
//! copy of that function in my mingw install (maybe it was broken?). Instead,
2323
//! this takes the route of using StackWalk64 in order to walk the stack.
2424
25-
#![allow(dead_code, deprecated)]
25+
#![allow(deprecated)] // dynamic_lib
2626

2727
use io::prelude::*;
2828

@@ -51,12 +51,6 @@ mod printing;
5151
#[path = "printing/gnu.rs"]
5252
mod printing;
5353

54-
type SymFromAddrFn =
55-
extern "system" fn(c::HANDLE, u64, *mut u64,
56-
*mut c::SYMBOL_INFO) -> c::BOOL;
57-
type SymGetLineFromAddr64Fn =
58-
extern "system" fn(c::HANDLE, u64, *mut u32,
59-
*mut c::IMAGEHLP_LINE64) -> c::BOOL;
6054
type SymInitializeFn =
6155
extern "system" fn(c::HANDLE, *mut c_void,
6256
c::BOOL) -> c::BOOL;

0 commit comments

Comments
 (0)