about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDavid Manescu <david.manescu@gmail.com>2014-01-23 12:25:22 +1100
committerDavid Manescu <david.manescu@gmail.com>2014-01-28 01:04:15 +1100
commit28b987b99a32dfac004643200a9414ee832afa1c (patch)
tree16b10ecfa89f43f12faa1ee3017cb039d818e755 /src/libstd
parent4176343073d0b28380b478fea941913567ebdd5c (diff)
downloadrust-28b987b99a32dfac004643200a9414ee832afa1c.tar.gz
rust-28b987b99a32dfac004643200a9414ee832afa1c.zip
Feature gate #[simd]
Fixes #11721
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/lib.rs3
-rw-r--r--src/libstd/unstable/simd.rs10
2 files changed, 12 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 4f13a517878..17b6c24773a 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -52,13 +52,14 @@
       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
       html_root_url = "http://static.rust-lang.org/doc/master")];
 
-#[feature(macro_rules, globs, asm, managed_boxes, thread_local, link_args)];
+#[feature(macro_rules, globs, asm, managed_boxes, thread_local, link_args, simd)];
 
 // Don't link to std. We are std.
 #[no_std];
 
 #[deny(non_camel_case_types)];
 #[deny(missing_doc)];
+#[allow(unknown_features)];
 
 // When testing libstd, bring in libuv as the I/O backend so tests can print
 // things and all of the std::io tests have an I/O interface to run on top
diff --git a/src/libstd/unstable/simd.rs b/src/libstd/unstable/simd.rs
index a05f6e8af5a..1029e5fdbd3 100644
--- a/src/libstd/unstable/simd.rs
+++ b/src/libstd/unstable/simd.rs
@@ -12,32 +12,42 @@
 
 #[allow(non_camel_case_types)];
 
+#[experimental]
 #[simd]
 pub struct i8x16(i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8);
 
+#[experimental]
 #[simd]
 pub struct i16x8(i16, i16, i16, i16, i16, i16, i16, i16);
 
+#[experimental]
 #[simd]
 pub struct i32x4(i32, i32, i32, i32);
 
+#[experimental]
 #[simd]
 pub struct i64x2(i64, i64);
 
+#[experimental]
 #[simd]
 pub struct u8x16(u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8);
 
+#[experimental]
 #[simd]
 pub struct u16x8(u16, u16, u16, u16, u16, u16, u16, u16);
 
+#[experimental]
 #[simd]
 pub struct u32x4(u32, u32, u32, u32);
 
+#[experimental]
 #[simd]
 pub struct u64x2(u64, u64);
 
+#[experimental]
 #[simd]
 pub struct f32x4(f32, f32, f32, f32);
 
+#[experimental]
 #[simd]
 pub struct f64x2(f64, f64);