From c8976debc881c33c7a54b227f184f9447914ce07 Mon Sep 17 00:00:00 2001 From: Intege-rs Date: Fri, 28 Nov 2025 13:08:42 -0500 Subject: [PATCH] mark naked as unsafe --- src/lib.rs | 2 +- src/win64/misc.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e5e6c09..29fe1ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![no_std] #![feature(naked_functions)] +#![no_std] #[cfg(target_arch = "x86_64")] mod win64 { diff --git a/src/win64/misc.rs b/src/win64/misc.rs index 196e251..630f94d 100644 --- a/src/win64/misc.rs +++ b/src/win64/misc.rs @@ -1,4 +1,4 @@ -#[no_mangle] #[naked] +#[no_mangle] #[unsafe(naked)] pub unsafe extern "C" fn __chkstk() { core::arch::naked_asm!( "push %rcx",