File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- use crate :: alloc:: { self , GlobalAlloc , Layout , System } ;
1
+ use crate :: alloc:: { GlobalAlloc , Layout , System } ;
2
2
3
3
use super :: waitqueue:: SpinMutex ;
4
4
@@ -36,11 +36,11 @@ unsafe impl GlobalAlloc for System {
36
36
#[ cfg( not( test) ) ]
37
37
#[ no_mangle]
38
38
pub unsafe extern "C" fn __rust_c_alloc ( size : usize , align : usize ) -> * mut u8 {
39
- alloc:: alloc ( Layout :: from_size_align_unchecked ( size, align) )
39
+ crate :: alloc:: alloc ( Layout :: from_size_align_unchecked ( size, align) )
40
40
}
41
41
42
42
#[ cfg( not( test) ) ]
43
43
#[ no_mangle]
44
44
pub unsafe extern "C" fn __rust_c_dealloc ( ptr : * mut u8 , size : usize , align : usize ) {
45
- alloc:: dealloc ( ptr, Layout :: from_size_align_unchecked ( size, align) )
45
+ crate :: alloc:: dealloc ( ptr, Layout :: from_size_align_unchecked ( size, align) )
46
46
}
You can’t perform that action at this time.
0 commit comments