diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-19 22:00:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-19 22:00:54 +0200 |
| commit | b2d132f10e2858fa59528ca471fadf6fb3339df2 (patch) | |
| tree | aff6b7cd1c020314299fc333b475216c37f3a8f8 /compiler/rustc_codegen_llvm/src | |
| parent | 8069f8d17a6c86a8fd881939fcce359a90c57ff2 (diff) | |
| parent | 62aa8f0740a5a847482df50ae457f22113630719 (diff) | |
| download | rust-b2d132f10e2858fa59528ca471fadf6fb3339df2.tar.gz rust-b2d132f10e2858fa59528ca471fadf6fb3339df2.zip | |
Rollup merge of #116863 - workingjubilee:non-exhaustive-is-not-ffi-unsafe, r=jieyouxu
warn less about non-exhaustive in ffi Bindgen allows generating `#[non_exhaustive] #[repr(u32)]` enums. This results in nonintuitive nonlocal `improper_ctypes` warnings, even when the types are otherwise perfectly valid in C. Adjust for actual tooling expectations by avoiding warning on simple enums with only unit variants. Closes https://github.com/rust-lang/rust/issues/116831
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
