about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-05 10:35:21 +0000
committerbors <bors@rust-lang.org>2021-08-05 10:35:21 +0000
commite21e1d6a417330af5f4693004230fd0efdf9445a (patch)
treec6ca112ce1ce60460461615958ac3eee04dc6d66 /compiler/rustc_codegen_llvm/src
parent2ddb65c32253872c0e7a02e43ec520877900370e (diff)
parent9c0147c02d7a58d41d25d7604d65bbb02b6d21b0 (diff)
downloadrust-e21e1d6a417330af5f4693004230fd0efdf9445a.tar.gz
rust-e21e1d6a417330af5f4693004230fd0efdf9445a.zip
Auto merge of #87740 - npmccallum:naked_args, r=Amanieu
Disable unused variable lint for naked functions

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

`@joshtriplett` `@Amanieu` `@haraldh`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions