From adb998fe21f148e8f84fc1262725c4385216c95d Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Thu, 9 May 2019 15:00:06 -0700 Subject: [PATCH] Fix cfg(test) build on SGX --- src/libstd/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 3976f2344e2..2401946536f 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -223,6 +223,7 @@ #![cfg_attr(all(target_vendor = "fortanix", target_env = "sgx"), feature(global_asm, slice_index_methods, decl_macro, coerce_unsized, sgx_platform, ptr_wrapping_offset_from))] +#![cfg_attr(all(test, target_vendor = "fortanix", target_env = "sgx"), feature(fixed_size_array))] // std is implemented with unstable features, many of which are internal // compiler details that will never be stable -- 2.44.0