Naked functions do not require unsafety · Issue #32489 · rust-lang/rust (original) (raw)
RFC states that naked functions must either not contain any “safe” blocks or be unsafe themselves. Currently, code like
#![feature(asm, naked_functions)]
#[naked]
extern "win64" fn naked(x: u32) -> u32 {
x + 1
}
is accepted.