about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift
diff options
context:
space:
mode:
authorThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-04-21 04:03:09 +0000
committerThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-04-21 04:03:09 +0000
commitd12c1f581f97ca0fe67d1498fa2c34b61a8bd189 (patch)
treecad0adefe81f03e6b1727edbe2ff7cd35f33ebf2 /compiler/rustc_codegen_cranelift
parent49b62eeacc0b57c01464577c5f3437f2f29f9683 (diff)
parentb8005bff3248cfc6e327faf4fa631ac49bb49ba9 (diff)
downloadrust-d12c1f581f97ca0fe67d1498fa2c34b61a8bd189.tar.gz
rust-d12c1f581f97ca0fe67d1498fa2c34b61a8bd189.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
-rw-r--r--compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs b/compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs
index 09d5b73fd3d..0b3a7281d5a 100644
--- a/compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs
+++ b/compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs
@@ -387,11 +387,9 @@ global_asm! {
 }
 
 #[cfg(all(not(jit), target_arch = "x86_64"))]
-#[naked]
+#[unsafe(naked)]
 extern "C" fn naked_test() {
-    unsafe {
-        naked_asm!("ret");
-    }
+    naked_asm!("ret")
 }
 
 #[repr(C)]