diff options
| author | Nathaniel McCallum <nathaniel@congru.us> | 2021-08-03 16:45:55 -0400 |
|---|---|---|
| committer | Nathaniel McCallum <nathaniel@congru.us> | 2021-08-04 15:30:10 -0400 |
| commit | 9c0147c02d7a58d41d25d7604d65bbb02b6d21b0 (patch) | |
| tree | 117124fdfafd4aef3a582dbc60056df4ebb11803 /compiler/rustc_codegen_llvm/src | |
| parent | 7ac0cb0ec1152a9a64da0d444b5f21c801f9ca77 (diff) | |
| download | rust-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
