diff --git a/src/detail/x86_64_unix.rs b/src/detail/x86_64_unix.rs index 47b5060..1cfb2bc 100644 --- a/src/detail/x86_64_unix.rs +++ b/src/detail/x86_64_unix.rs @@ -25,7 +25,6 @@ mod asm_impl { ); } - #[naked] #[inline(never)] pub unsafe extern "C" fn bootstrap_green_task() { llvm_asm!( @@ -42,7 +41,6 @@ mod asm_impl { ); } - #[naked] #[inline(never)] pub unsafe extern "C" fn swap_registers(out_regs: *mut Registers, in_regs: *const Registers) { // The first argument is in %rdi, and the second one is in %rsi @@ -55,7 +53,7 @@ mod asm_impl { ); // introduce this function to workaround rustc bug! (#6) - #[naked] + #[inline(never)] unsafe extern "C" fn _swap_reg() { // Save registers llvm_asm!( diff --git a/src/detail/x86_64_windows.rs b/src/detail/x86_64_windows.rs index 1a27855..2a4dff0 100644 --- a/src/detail/x86_64_windows.rs +++ b/src/detail/x86_64_windows.rs @@ -31,7 +31,6 @@ mod asm_impl { ); } - #[naked] #[inline(never)] pub unsafe extern "C" fn bootstrap_green_task() { llvm_asm!( @@ -48,7 +47,6 @@ mod asm_impl { ); } - #[naked] #[inline(never)] pub unsafe extern "C" fn swap_registers(out_regs: *mut Registers, in_regs: *const Registers) { // The first argument is in %rcx, and the second one is in %rdx @@ -61,7 +59,7 @@ mod asm_impl { ); // introduce this function to workaround rustc bug! (#6) - #[naked] + #[inline(never)] unsafe extern "C" fn _swap_reg() { // Save registers llvm_asm!( diff --git a/src/lib.rs b/src/lib.rs index 475f835..bd21a88 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,6 @@ #![cfg_attr(nightly, feature(llvm_asm))] #![cfg_attr(nightly, feature(repr_simd))] #![cfg_attr(nightly, feature(core_intrinsics))] -#![cfg_attr(nightly, feature(naked_functions))] #![cfg_attr(nightly, feature(thread_local))] #![cfg_attr(test, deny(warnings))] #![deny(missing_docs)]