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::{
17
17
///
18
18
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_pause)
19
19
#[ 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) ) ]
24
21
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
25
22
pub unsafe fn _mm_pause ( ) {
26
23
// 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 {
199
199
if path. segments . len ( ) != 1 {
200
200
panic ! ( "unsupported path that needs name resolution" )
201
201
}
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
+ {
203
209
syn:: PathArguments :: None => { }
204
210
_ => panic ! ( "unsupported path that has path arguments" ) ,
205
211
}
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 ( )
207
218
}
208
219
209
220
fn walk ( root : & Path , files : & mut Vec < ( syn:: File , String ) > ) {
You can’t perform that action at this time.
0 commit comments