Rollup merge of #155950 - folkertdev:needs-ret-mnemonic, r=chenyukang

use the new `//@ needs-asm-mnemonic: ret` more

Since https://github.com/rust-lang/rust/pull/155692 we have this neat new rule, and a couple of tests should be able to use them.
This commit is contained in:
Jonathan Brouwer
2026-04-29 23:51:37 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
//@ needs-asm-support
//@ only-x86_64
//@ needs-asm-mnemonic: ret
// tests that `va_start` is not injected into naked functions
+1 -1
View File
@@ -1,6 +1,6 @@
//@ compile-flags: -C no-prepopulate-passes -Copt-level=0
//@ needs-asm-support
//@ ignore-arm no "ret" mnemonic
//@ needs-asm-mnemonic: ret
//@ ignore-wasm32 aligning functions is not currently supported on wasm (#143368)
#![crate_type = "lib"]
@@ -1,6 +1,6 @@
//@ compile-flags: -C no-prepopulate-passes -Copt-level=0 -Zmin-function-alignment=16
//@ needs-asm-support
//@ ignore-arm no "ret" mnemonic
//@ needs-asm-mnemonic: ret
//@ ignore-wasm32 aligning functions is not currently supported on wasm (#143368)
// FIXME(#82232, #143834): temporarily renamed to mitigate `#[align]` nameres ambiguity