1
Fork 0

Add naked_functions_rustic_abi feature gate

This commit is contained in:
Folkert de Vries 2025-03-26 19:44:53 +01:00
parent 19cab6b878
commit 8866af3884
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
17 changed files with 142 additions and 107 deletions

View file

@ -122,18 +122,6 @@ unsafe extern "C" fn invalid_may_unwind() {
//~^ ERROR the `may_unwind` option cannot be used with `naked_asm!`
}
#[naked]
pub unsafe fn default_abi() {
//~^ WARN Rust ABI is unsupported in naked functions
naked_asm!("");
}
#[naked]
pub unsafe fn rust_abi() {
//~^ WARN Rust ABI is unsupported in naked functions
naked_asm!("");
}
#[naked]
pub extern "C" fn valid_a<T>() -> T {
unsafe {