File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -520,7 +520,9 @@ another matching engine with fixed memory requirements.
520
520
#![ deny( missing_docs) ]
521
521
#![ cfg_attr( test, deny( warnings) ) ]
522
522
#![ cfg_attr( feature = "pattern" , feature( pattern) ) ]
523
- #![ cfg_attr( feature = "unstable" , feature( target_feature, stdsimd) ) ]
523
+ #![ cfg_attr(
524
+ feature = "unstable" ,
525
+ feature( cfg_target_feature, target_feature, stdsimd) ) ]
524
526
525
527
extern crate aho_corasick;
526
528
extern crate memchr;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ pub struct AVX2VectorBuilder(());
8
8
9
9
impl AVX2VectorBuilder {
10
10
pub fn new ( ) -> Option < AVX2VectorBuilder > {
11
- if is_target_feature_detected ! ( "avx2" ) {
11
+ if is_x86_feature_detected ! ( "avx2" ) {
12
12
Some ( AVX2VectorBuilder ( ( ) ) )
13
13
} else {
14
14
None
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ impl SSSE3VectorBuilder {
20
20
/// If the SSSE3 feature is not enabled for the current target, then
21
21
/// return `None`.
22
22
pub fn new ( ) -> Option < SSSE3VectorBuilder > {
23
- if is_target_feature_detected ! ( "ssse3" ) {
23
+ if is_x86_feature_detected ! ( "ssse3" ) {
24
24
Some ( SSSE3VectorBuilder ( ( ) ) )
25
25
} else {
26
26
None
You can’t perform that action at this time.
0 commit comments