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.
520520#![ deny( missing_docs) ]
521521#![ cfg_attr( test, deny( warnings) ) ]
522522#![ 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) ) ]
524526
525527extern crate aho_corasick;
526528extern crate memchr;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ pub struct AVX2VectorBuilder(());
88
99impl AVX2VectorBuilder {
1010 pub fn new ( ) -> Option < AVX2VectorBuilder > {
11- if is_target_feature_detected ! ( "avx2" ) {
11+ if is_x86_feature_detected ! ( "avx2" ) {
1212 Some ( AVX2VectorBuilder ( ( ) ) )
1313 } else {
1414 None
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ impl SSSE3VectorBuilder {
2020 /// If the SSSE3 feature is not enabled for the current target, then
2121 /// return `None`.
2222 pub fn new ( ) -> Option < SSSE3VectorBuilder > {
23- if is_target_feature_detected ! ( "ssse3" ) {
23+ if is_x86_feature_detected ! ( "ssse3" ) {
2424 Some ( SSSE3VectorBuilder ( ( ) ) )
2525 } else {
2626 None
You can’t perform that action at this time.
0 commit comments