File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ maintenance = { status = "experimental" }
2222
2323[dev-dependencies ]
2424stdarch-test  = { version  = " 0.*"  , path  = " ../stdarch-test"   }
25- std_detect  = { version  = " 0.*"  , path  = " ../std_detect"   }
25+ # std_detect = { version = "0.*", path = "../std_detect" }
2626
2727[target .'cfg(all(target_arch  =  "x86_64",  target_os  =  "linux"))' .dev-dependencies ]
2828syscalls  = { version  = " 0.6.18"  , default-features  = false  }
Original file line number Diff line number Diff line change 7575#[ cfg( test) ]  
7676#[ macro_use]  
7777extern  crate  std; 
78- #[ cfg( test) ]  
79- #[ macro_use]  
80- extern  crate  std_detect; 
78+ 
8179#[ path = "mod.rs" ]  
8280mod  core_arch; 
8381
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ pub fn simd_test(
6666        "s390x"  => "is_s390x_feature_detected" , 
6767        t => panic ! ( "unknown target: {t}" ) , 
6868    } ; 
69-     let  macro_test = Ident :: new ( macro_test,  Span :: call_site ( ) ) ; 
69+     let  macro_test = Ident :: new ( & macro_test,  Span :: call_site ( ) ) ; 
7070
7171    let  skipped_functions = env:: var ( "STDARCH_TEST_SKIP_FUNCTION" ) . unwrap_or_default ( ) ; 
7272    let  skipped_features = env:: var ( "STDARCH_TEST_SKIP_FEATURE" ) . unwrap_or_default ( ) ; 
@@ -89,7 +89,7 @@ pub fn simd_test(
8989    for  feature in  target_features { 
9090        let  q = quote_spanned !  { 
9191            proc_macro2:: Span :: call_site( )  =>
92-             if  !#macro_test!( #feature)  { 
92+             if  !:: std :: arch :: #macro_test!( #feature)  { 
9393                missing_features. push( #feature) ; 
9494            } 
9595        } ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments