about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorJethro Beekman <jethro@fortanix.com>2019-04-10 14:08:54 -0700
committerJethro Beekman <jethro@fortanix.com>2019-04-10 14:08:54 -0700
commite2d1d667e283de5183822b333cb3a5e08def9874 (patch)
treeae0ee18c21433fdfe28f9aab6ff155a0fffe2ac9 /src/libstd/sys
parent96d700f1b7bc9c53fa0d11567adb1ed2c1c27e79 (diff)
downloadrust-e2d1d667e283de5183822b333cb3a5e08def9874.tar.gz
rust-e2d1d667e283de5183822b333cb3a5e08def9874.zip
SGX target: fix cfg(test) build
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/sgx/alloc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/sgx/alloc.rs b/src/libstd/sys/sgx/alloc.rs
index b385d567dd8..40daec758a9 100644
--- a/src/libstd/sys/sgx/alloc.rs
+++ b/src/libstd/sys/sgx/alloc.rs
@@ -1,4 +1,4 @@
-use crate::alloc::{self, GlobalAlloc, Layout, System};
+use crate::alloc::{GlobalAlloc, Layout, System};
 
 use super::waitqueue::SpinMutex;
 
@@ -36,11 +36,11 @@ unsafe impl GlobalAlloc for System {
 #[cfg(not(test))]
 #[no_mangle]
 pub unsafe extern "C" fn __rust_c_alloc(size: usize, align: usize) -> *mut u8 {
-    alloc::alloc(Layout::from_size_align_unchecked(size, align))
+    crate::alloc::alloc(Layout::from_size_align_unchecked(size, align))
 }
 
 #[cfg(not(test))]
 #[no_mangle]
 pub unsafe extern "C" fn __rust_c_dealloc(ptr: *mut u8, size: usize, align: usize) {
-    alloc::dealloc(ptr, Layout::from_size_align_unchecked(size, align))
+    crate::alloc::dealloc(ptr, Layout::from_size_align_unchecked(size, align))
 }