diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-07-13 11:57:46 -0700 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-08-17 14:41:37 -0700 |
| commit | c66554cab3518a9f5c36eafd622ca4c8a3fda631 (patch) | |
| tree | 958355c0154f8a11219180463ef3aeb8a42aff3f /src/libcore/lib.rs | |
| parent | c8b6d5b23cc8b2d43ece9f06252c7e98280fb8e5 (diff) | |
| download | rust-c66554cab3518a9f5c36eafd622ca4c8a3fda631.tar.gz rust-c66554cab3518a9f5c36eafd622ca4c8a3fda631.zip | |
switch core::simd to repr(simd) and deprecate it.
This functionality will be available out of tree in the `simd` crate on crates.io. [breaking-change]
Diffstat (limited to 'src/libcore/lib.rs')
| -rw-r--r-- | src/libcore/lib.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index ae85e2712ce..c064d87e370 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -78,7 +78,8 @@ #![feature(optin_builtin_traits)] #![feature(reflect)] #![feature(rustc_attrs)] -#![feature(simd)] +#![cfg_attr(stage0, feature(simd))] +#![cfg_attr(not(stage0), feature(simd_basics))] #![feature(staged_api)] #![feature(unboxed_closures)] @@ -150,7 +151,13 @@ pub mod iter; pub mod option; pub mod raw; pub mod result; + +#[cfg(stage0)] +#[path = "simd_old.rs"] +pub mod simd; +#[cfg(not(stage0))] pub mod simd; + pub mod slice; pub mod str; pub mod hash; |
