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> {
395395 "__builtin_arm_yield" => {
396396 let fn_name = "__yield" ;
397397 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.
401404 self . import_arch_function ( "arm" , fn_name) ;
402405 self . import_arch_function ( "aarch64" , fn_name) ;
403406 let ident = mk ( ) . ident_expr ( fn_name) ;
Original file line number Diff line number Diff line change 88 unused_mut
99) ]
1010#![ feature( stdsimd) ]
11- #![ feature( stdarch_arm_hints) ]
1211#[ cfg( target_arch = "arm" ) ]
1312pub use core:: arch:: arm:: __yield;
1413#[ 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
1313 unused_mut
1414)]
1515#! [feature (stdsimd )]
16- #! [feature (stdarch_arm_hints )]
1716#[cfg (target_arch = " arm" )]
1817pub use core ::arch ::arm ::__yield ;
1918#[cfg (target_arch = " aarch64" )]
You can’t perform that action at this time.
0 commit comments