diff options
| author | bors <bors@rust-lang.org> | 2021-08-05 10:35:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-05 10:35:21 +0000 |
| commit | e21e1d6a417330af5f4693004230fd0efdf9445a (patch) | |
| tree | c6ca112ce1ce60460461615958ac3eee04dc6d66 /compiler/rustc_codegen_llvm/src | |
| parent | 2ddb65c32253872c0e7a02e43ec520877900370e (diff) | |
| parent | 9c0147c02d7a58d41d25d7604d65bbb02b6d21b0 (diff) | |
| download | rust-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
