File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -395,9 +395,12 @@ impl<'c> Translation<'c> {
395
395
"__builtin_arm_yield" => {
396
396
let fn_name = "__yield" ;
397
397
self . use_feature ( "stdsimd" ) ;
398
- self . use_feature ( "stdarch_arm_hints" ) ;
399
- // TODO needs to be behind `#![cfg_attr(target_arch = "arm", feature(stdarch_arm_neon_intrinsics))]`.
400
- // self.use_feature("stdarch_arm_neon_intrinsics");
398
+ // TODO In Rust 1.89 (probably earlier), `#![feature(stdsimd)]`
399
+ // has been removed and split into (at least):
400
+ // `#![feature("stdarch_arm_hints")]` and
401
+ // `#![cfg_attr(target_arch = "arm", feature(stdarch_arm_neon_intrinsics))]`.
402
+ // self.use_feature("stdarch_arm_hints");
403
+ // self.use_feature("stdarch_arm_neon_intrinsics"); // TODO need to add `cfg_attr` support.
401
404
self . import_arch_function ( "arm" , fn_name) ;
402
405
self . import_arch_function ( "aarch64" , fn_name) ;
403
406
let ident = mk ( ) . ident_expr ( fn_name) ;
Original file line number Diff line number Diff line change 8
8
unused_mut
9
9
) ]
10
10
#![ feature( stdsimd) ]
11
- #![ feature( stdarch_arm_hints) ]
12
11
#[ cfg( target_arch = "arm" ) ]
13
12
pub use core:: arch:: arm:: __yield;
14
13
#[ cfg( target_arch = "aarch64" ) ]
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ input_file: c2rust-transpile/tests/snapshots/arch-specific/spin.c
13
13
unused_mut
14
14
)]
15
15
#! [feature (stdsimd )]
16
- #! [feature (stdarch_arm_hints )]
17
16
#[cfg (target_arch = " arm" )]
18
17
pub use core ::arch ::arm ::__yield ;
19
18
#[cfg (target_arch = " aarch64" )]
You can’t perform that action at this time.
0 commit comments