File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
use backtrace:: Backtrace ;
2
+ use core:: ffi:: c_void;
2
3
3
4
// This test only works on platforms which have a working `symbol_address`
4
5
// function for frames which reports the starting address of a symbol. As a
@@ -22,9 +23,9 @@ fn backtrace_new_unresolved_should_start_with_call_site_trace() {
22
23
23
24
assert ! ( !b. frames( ) . is_empty( ) ) ;
24
25
25
- let this_ip = backtrace_new_unresolved_should_start_with_call_site_trace as usize ;
26
- println ! ( "this_ip: {:? }" , this_ip as * const usize ) ;
27
- let frame_ip = b. frames ( ) . first ( ) . unwrap ( ) . symbol_address ( ) as usize ;
26
+ let this_ip = backtrace_new_unresolved_should_start_with_call_site_trace as * mut c_void ;
27
+ println ! ( "this_ip: {:p }" , this_ip) ;
28
+ let frame_ip = b. frames ( ) . first ( ) . unwrap ( ) . symbol_address ( ) ;
28
29
assert_eq ! ( this_ip, frame_ip) ;
29
30
}
30
31
You can’t perform that action at this time.
0 commit comments