diff options
| author | bors <bors@rust-lang.org> | 2021-10-20 20:35:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-10-20 20:35:58 +0000 |
| commit | 300b821d51969261469b61d1cf87eaab01e64284 (patch) | |
| tree | a058c13d9660773c96d0e3aa65d8f59cdc8678b1 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | f11905af15e5fc3037478128760be20da550bc7f (diff) | |
| parent | 0f9f591e30074bf5e31e4ca279280425685f33ff (diff) | |
| download | rust-300b821d51969261469b61d1cf87eaab01e64284.tar.gz rust-300b821d51969261469b61d1cf87eaab01e64284.zip | |
Auto merge of #7838 - nhamovitz:trailing_zs_arr_wo_repr, r=Manishearth
Warn on structs with a trailing zero-sized array but no `repr` attribute Closes #2868 changelog: Implement ``[`trailing_empty_array`]``, which warns if a struct is defined where the last field is a zero-sized array but there are no `repr` attributes. Zero-sized arrays aren't very useful in Rust itself, so such a struct is likely being created to pass to C code or in some other situation where control over memory layout matters. Either way, a `repr` attribute is needed.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
