File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,7 @@ use crate::{
1717///
1818/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_pause)
1919#[ inline]
20- #[ cfg_attr(
21- all( test, target_feature = "sse2" ) ,
22- assert_instr( pause)
23- ) ]
20+ #[ cfg_attr( all( test, target_feature = "sse2" ) , assert_instr( pause) ) ]
2421#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
2522pub unsafe fn _mm_pause ( ) {
2623 // note: `pause` is guaranteed to be interpreted as a `nop` by CPUs without
Original file line number Diff line number Diff line change @@ -199,11 +199,22 @@ fn extract_path_ident(path: &syn::Path) -> syn::Ident {
199199 if path. segments . len ( ) != 1 {
200200 panic ! ( "unsupported path that needs name resolution" )
201201 }
202- match path. segments . first ( ) . expect ( "segment not found" ) . value ( ) . arguments {
202+ match path
203+ . segments
204+ . first ( )
205+ . expect ( "segment not found" )
206+ . value ( )
207+ . arguments
208+ {
203209 syn:: PathArguments :: None => { }
204210 _ => panic ! ( "unsupported path that has path arguments" ) ,
205211 }
206- path. segments . first ( ) . expect ( "segment not found" ) . value ( ) . ident . clone ( )
212+ path. segments
213+ . first ( )
214+ . expect ( "segment not found" )
215+ . value ( )
216+ . ident
217+ . clone ( )
207218}
208219
209220fn walk ( root : & Path , files : & mut Vec < ( syn:: File , String ) > ) {
You can’t perform that action at this time.
0 commit comments