about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-08 22:50:29 +0000
committerbors <bors@rust-lang.org>2020-10-08 22:50:29 +0000
commite651a04faba597ea3ac54479c4fbdce4d5548583 (patch)
treecd807fd9a4fcac43ee7f85cd433ef2568a424ae2 /compiler/rustc_codegen_llvm/src
parent265e4841b7d8ee26ed0d642075f3c90496ba610a (diff)
parentb709b873632dc001b381704c1deb6be702111706 (diff)
downloadrust-e651a04faba597ea3ac54479c4fbdce4d5548583.tar.gz
rust-e651a04faba597ea3ac54479c4fbdce4d5548583.zip
Auto merge of #6133 - JPTIZ:no-box-for-c-ffi, r=ebroto
clippy_lints: Do not warn against Box parameter in C FFI

changelog: [`boxed_local`]: don't lint in `extern fn` arguments

Fixes #5542.

When using C FFI, to handle pointers in parameters it is needed to
declare them as `Box` in its Rust-side signature. However, the current
linter warns against the usage of Box stating that "local variable
doesn't need to be boxed here".

This commit fixes it by ignoring functions whose Abi is C.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions