stabilize naked_functions
This commit is contained in:
parent
49e5e4e3a5
commit
df8a3d5f1d
53 changed files with 165 additions and 294 deletions
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
#![crate_type = "lib"]
|
||||
#![feature(c_variadic)]
|
||||
#![feature(naked_functions)]
|
||||
#![no_std]
|
||||
|
||||
#[unsafe(naked)]
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#![crate_type = "lib"]
|
||||
#![no_std]
|
||||
#![feature(abi_x86_interrupt, naked_functions)]
|
||||
#![feature(abi_x86_interrupt)]
|
||||
|
||||
pub fn caller() {
|
||||
page_fault_handler(1, 2);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
//@ ignore-arm no "ret" mnemonic
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![feature(naked_functions, fn_align)]
|
||||
#![feature(fn_align)]
|
||||
use std::arch::naked_asm;
|
||||
|
||||
// CHECK: .balign 16
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
//@ only-x86_64
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![feature(naked_functions, asm_const)]
|
||||
|
||||
use std::arch::naked_asm;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
//@ [thumb-mode] needs-llvm-components: arm
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![feature(no_core, lang_items, rustc_attrs, naked_functions)]
|
||||
#![feature(no_core, lang_items, rustc_attrs)]
|
||||
#![no_core]
|
||||
|
||||
extern crate minicore;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
//@ needs-asm-support
|
||||
//@ ignore-arm no "ret" mnemonic
|
||||
|
||||
#![feature(naked_functions, fn_align)]
|
||||
#![feature(fn_align)]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
// functions without explicit alignment use the global minimum
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
//@[thumb] needs-llvm-components: arm
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![feature(no_core, lang_items, rustc_attrs, naked_functions)]
|
||||
#![feature(no_core, lang_items, rustc_attrs)]
|
||||
#![no_core]
|
||||
|
||||
extern crate minicore;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue