From 2f6f88e69577dc5b040c3d0801a13cf3f9fd4fb9 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Wed, 18 Apr 2018 13:05:50 -0400 Subject: [PATCH] unstable: remove simd features on nightly w00t --- src/lib.rs | 3 --- src/literal/teddy_avx2/imp.rs | 1 + src/literal/teddy_ssse3/imp.rs | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 42aade46de..f82eb9c1ce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -520,9 +520,6 @@ another matching engine with fixed memory requirements. #![deny(missing_docs)] #![cfg_attr(test, deny(warnings))] #![cfg_attr(feature = "pattern", feature(pattern))] -#![cfg_attr( - feature = "unstable", - feature(cfg_target_feature, target_feature, stdsimd))] extern crate aho_corasick; extern crate memchr; diff --git a/src/literal/teddy_avx2/imp.rs b/src/literal/teddy_avx2/imp.rs index 0bfc71cc91..62015d07d2 100644 --- a/src/literal/teddy_avx2/imp.rs +++ b/src/literal/teddy_avx2/imp.rs @@ -120,6 +120,7 @@ impl Teddy { unsafe { self.find_impl(haystack) } } + #[allow(unused_attributes)] #[target_feature(enable = "avx2")] unsafe fn find_impl(&self, haystack: &[u8]) -> Option { // If our haystack is smaller than the block size, then fall back to diff --git a/src/literal/teddy_ssse3/imp.rs b/src/literal/teddy_ssse3/imp.rs index 4f3e34fed0..85422b6409 100644 --- a/src/literal/teddy_ssse3/imp.rs +++ b/src/literal/teddy_ssse3/imp.rs @@ -431,6 +431,7 @@ impl Teddy { unsafe { self.find_impl(haystack) } } + #[allow(unused_attributes)] #[target_feature(enable = "ssse3")] unsafe fn find_impl(&self, haystack: &[u8]) -> Option { // If our haystack is smaller than the block size, then fall back to