diff options
| author | The rustc-dev-guide Cronjob Bot <github-actions@github.com> | 2025-04-21 04:03:09 +0000 |
|---|---|---|
| committer | The rustc-dev-guide Cronjob Bot <github-actions@github.com> | 2025-04-21 04:03:09 +0000 |
| commit | d12c1f581f97ca0fe67d1498fa2c34b61a8bd189 (patch) | |
| tree | cad0adefe81f03e6b1727edbe2ff7cd35f33ebf2 /compiler/rustc_codegen_cranelift | |
| parent | 49b62eeacc0b57c01464577c5f3437f2f29f9683 (diff) | |
| parent | b8005bff3248cfc6e327faf4fa631ac49bb49ba9 (diff) | |
| download | rust-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.rs | 6 |
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)] |
