about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorNathaniel McCallum <nathaniel@congru.us>2021-08-03 16:45:55 -0400
committerNathaniel McCallum <nathaniel@congru.us>2021-08-04 15:30:10 -0400
commit9c0147c02d7a58d41d25d7604d65bbb02b6d21b0 (patch)
tree117124fdfafd4aef3a582dbc60056df4ebb11803 /compiler/rustc_codegen_llvm/src
parent7ac0cb0ec1152a9a64da0d444b5f21c801f9ca77 (diff)
downloadrust-9c0147c02d7a58d41d25d7604d65bbb02b6d21b0.tar.gz
rust-9c0147c02d7a58d41d25d7604d65bbb02b6d21b0.zip
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions