File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ impl Backtrace {
256256 /// enabled, and the `std` feature is enabled by default.
257257 #[ inline( never) ] // want to make sure there's a frame here to remove
258258 pub fn new ( ) -> Backtrace {
259- let mut bt = Self :: create ( Self :: new as usize ) ;
259+ let mut bt = Self :: create ( Self :: new as * const ( ) as usize ) ;
260260 bt. resolve ( ) ;
261261 bt
262262 }
@@ -286,7 +286,7 @@ impl Backtrace {
286286 /// enabled, and the `std` feature is enabled by default.
287287 #[ inline( never) ] // want to make sure there's a frame here to remove
288288 pub fn new_unresolved ( ) -> Backtrace {
289- Self :: create ( Self :: new_unresolved as usize )
289+ Self :: create ( Self :: new_unresolved as * const ( ) as usize )
290290 }
291291
292292 fn create ( ip : usize ) -> Backtrace {
You can’t perform that action at this time.
0 commit comments