We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96d700f commit e2d1d66Copy full SHA for e2d1d66
src/libstd/sys/sgx/alloc.rs
@@ -1,4 +1,4 @@
1
-use crate::alloc::{self, GlobalAlloc, Layout, System};
+use crate::alloc::{GlobalAlloc, Layout, System};
2
3
use super::waitqueue::SpinMutex;
4
@@ -36,11 +36,11 @@ unsafe impl GlobalAlloc for System {
36
#[cfg(not(test))]
37
#[no_mangle]
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))
+ crate::alloc::alloc(Layout::from_size_align_unchecked(size, align))
40
}
41
42
43
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))
+ crate::alloc::dealloc(ptr, Layout::from_size_align_unchecked(size, align))
46
0 commit comments