File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- use std :: boxed:: Box ;
2
- use std :: ffi:: c_void;
1
+ use alloc :: boxed:: Box ;
2
+ use core :: ffi:: c_void;
3
3
4
4
extern "Rust" {
5
5
fn miri_get_backtrace ( flags : u64 ) -> Box < [ * mut ( ) ] > ;
@@ -32,7 +32,7 @@ impl Frame {
32
32
}
33
33
34
34
pub fn sp ( & self ) -> * mut c_void {
35
- std :: ptr:: null_mut ( )
35
+ core :: ptr:: null_mut ( )
36
36
}
37
37
38
38
pub fn symbol_address ( & self ) -> * mut c_void {
Original file line number Diff line number Diff line change 1
1
use core:: ffi:: c_void;
2
2
use core:: marker:: PhantomData ;
3
3
4
- use crate :: backtrace:: miri:: { resolve_addr, Frame } ;
5
- use crate :: symbolize :: { ResolveWhat , SymbolName } ;
6
- use crate :: types :: BytesOrWideString ;
4
+ use super :: super :: backtrace:: miri:: { resolve_addr, Frame } ;
5
+ use super :: BytesOrWideString ;
6
+ use super :: { ResolveWhat , SymbolName } ;
7
7
8
8
pub unsafe fn resolve ( what : ResolveWhat < ' _ > , cb : & mut dyn FnMut ( & super :: Symbol ) ) {
9
9
let sym = match what {
@@ -45,10 +45,10 @@ impl<'a> Symbol<'a> {
45
45
Some ( self . inner . inner . colno )
46
46
}
47
47
48
- pub fn filename ( & self ) -> Option < & :: std:: path :: Path > {
49
- use std:: path:: Path ;
50
- Some ( Path :: new (
51
- std :: str:: from_utf8 ( & self . inner . inner . filename ) . unwrap ( ) ,
48
+ # [ cfg ( feature = " std" ) ]
49
+ pub fn filename ( & self ) -> Option < & std:: path:: Path > {
50
+ Some ( std :: path :: Path :: new (
51
+ core :: str:: from_utf8 ( & self . inner . inner . filename ) . unwrap ( ) ,
52
52
) )
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments