]> git.lizzy.rs Git - rust.git/commitdiff
Fix cfg(test) build on SGX
authorJethro Beekman <jethro@fortanix.com>
Thu, 9 May 2019 22:00:06 +0000 (15:00 -0700)
committerJethro Beekman <jethro@fortanix.com>
Thu, 9 May 2019 22:00:06 +0000 (15:00 -0700)
src/libstd/lib.rs

index 3976f2344e2412b8ce20308dcac22f3dc34af98e..2401946536ffa0f9af76ad43871d03ac4eb0aa12 100644 (file)
 #![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