about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorJoão Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>2020-10-07 21:41:54 -0300
committerJoão Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>2020-10-07 21:41:54 -0300
commit738ed383066a561ae4f3ef0a6a2d570eaba7b6fa (patch)
tree47002d37388543cfc2408b060249161892531bea /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent13a80b34baab0576e07eaa986d68a355cb1637a9 (diff)
downloadrust-738ed383066a561ae4f3ef0a6a2d570eaba7b6fa.tar.gz
rust-738ed383066a561ae4f3ef0a6a2d570eaba7b6fa.zip
clippy_lints: Do not warn against Box parameter in C FFI
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 Cdecl.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions