mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 09:53:26 +00:00
![]() In most calling conventions, accessing function parameters may require stack access. However, naked functions have no assembly prelude to set up stack access. This is why naked functions may only contain a single `asm!()` block. All parameter access is done inside the `asm!()` block, so we cannot validate the liveness of the input parameters. Therefore, we should disable the lint for naked functions. rust-lang/rfcs#2774 rust-lang/rfcs#2972 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |