Skip to content

Commit 2f6f88e

Browse files
committed
unstable: remove simd features on nightly
w00t
1 parent 15a68c8 commit 2f6f88e

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,6 @@ another matching engine with fixed memory requirements.
520520
#![deny(missing_docs)]
521521
#![cfg_attr(test, deny(warnings))]
522522
#![cfg_attr(feature = "pattern", feature(pattern))]
523-
#![cfg_attr(
524-
feature = "unstable",
525-
feature(cfg_target_feature, target_feature, stdsimd))]
526523

527524
extern crate aho_corasick;
528525
extern crate memchr;

src/literal/teddy_avx2/imp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ impl Teddy {
120120
unsafe { self.find_impl(haystack) }
121121
}
122122

123+
#[allow(unused_attributes)]
123124
#[target_feature(enable = "avx2")]
124125
unsafe fn find_impl(&self, haystack: &[u8]) -> Option<Match> {
125126
// If our haystack is smaller than the block size, then fall back to

src/literal/teddy_ssse3/imp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ impl Teddy {
431431
unsafe { self.find_impl(haystack) }
432432
}
433433

434+
#[allow(unused_attributes)]
434435
#[target_feature(enable = "ssse3")]
435436
unsafe fn find_impl(&self, haystack: &[u8]) -> Option<Match> {
436437
// If our haystack is smaller than the block size, then fall back to

0 commit comments

Comments
 (0)