about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2019-11-27 15:28:33 -0600
committerGitHub <noreply@github.com>2019-11-27 15:28:33 -0600
commit2f1a4b3748d4632b0519097ee993136c3d5dc6ed (patch)
tree2a2a0b65fe7e719116e18db8fb5f204f6c804928 /src/test/debuginfo/enum-thinlto.rs
parentb92b7052b711c2097565816797347e1652be08fa (diff)
parentb3666b64738980579f05eec0cfae43f917f74a29 (diff)
downloadrust-2f1a4b3748d4632b0519097ee993136c3d5dc6ed.tar.gz
rust-2f1a4b3748d4632b0519097ee993136c3d5dc6ed.zip
Rollup merge of #66305 - elichai:2019-11-array_ffi, r=eddyb
Add by-value arrays to `improper_ctypes` lint

Hi,
C doesn't have a notion of passing arrays by value, only by reference/pointer.
Rust currently will pass it correctly by reference by it looks very misleading, and can confuse the borrow checker to think a move had occurred.

Fixes #58905 and fixes #24578.

We could also improve the borrow checker here but I think it's kinda a waste of work if we instead just tell the user it's an invalid FFI call.

(My first PR to `rustc` so if I missed some test or formatting guideline please tell me :) )
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions