Skip to content

Commit

Permalink
unstable: remove simd features on nightly
Browse files Browse the repository at this point in the history
w00t
  • Loading branch information
BurntSushi committed Apr 18, 2018
1 parent 15a68c8 commit 2f6f88e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/literal/teddy_avx2/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Match> {
// If our haystack is smaller than the block size, then fall back to
Expand Down
1 change: 1 addition & 0 deletions src/literal/teddy_ssse3/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Match> {
// If our haystack is smaller than the block size, then fall back to
Expand Down

0 comments on commit 2f6f88e

Please sign in to comment.