Jonathan Brouwer
75e90b2129
Rollup merge of #162956 - beetrees:test-repr-c-struct, r=folkertdev
...
Add missing `#[repr(C)]` in UI, codegen and assembly tests
There are quite a few tests which omit the `#[repr(C)]` on structs that are then used in non-Rustic ABIs. I've gone through the tests in `ui/abi`, `ui/ffi`, `codegen-llvm` and `assembly-llvm` and added `#[repr(C)]` where it was missing. I also converted `#[allow(improper_ctypes{,_definitions})]` to `#[expect(improper_ctypes{,_definitions})]` where possible, and removed it where the lint no longer triggers.
I haven't done it in this PR, but I think it's worth making codegen and assembly tests deny warnings by default. With UI tests `improper_ctypes{,_definitions}` has to be either allowed or will show up in the output, meaning it should be fairly obvious to reviewers, but with codegen and assembly tests warnings just get ignored if the test passes.
Fixes rust-lang/rust#53858
r? @folkertdev
cc @RalfJung
2026-09-19 08:45:42 +02:00
..
2026-09-18 14:36:44 +01:00
2026-09-18 14:36:44 +01:00
2026-09-18 14:36:44 +01:00
2026-07-18 23:29:41 -07:00
2026-07-03 14:55:08 +03:00
2026-09-18 14:36:44 +01:00
2026-09-18 14:36:44 +01:00
2026-09-18 14:36:44 +01:00
2026-09-04 08:22:14 +02:00
2026-09-04 08:22:14 +02:00
2026-08-31 08:17:27 +10:00
2026-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-09-13 21:45:02 +02:00
2026-09-13 21:45:02 +02:00
2026-09-13 21:45:02 +02:00
2026-09-13 21:45:02 +02:00
2026-09-13 21:45:02 +02:00
2026-09-13 21:45:02 +02:00
2026-09-13 21:45:02 +02:00
2026-09-13 21:45:02 +02:00
2026-09-13 21:45:02 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-09-18 14:36:44 +01:00
2026-08-14 22:28:22 +02:00
2026-07-28 14:56:50 +10:00
2026-07-28 14:56:50 +10:00
2026-07-28 14:56:50 +10:00
2026-07-28 14:56:50 +10:00
2026-09-18 14:36:44 +01:00
2026-07-24 20:59:10 +02:00
2026-07-24 20:59:10 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:53:37 +02:00
2026-07-24 20:59:10 +02:00
2026-07-24 20:59:10 +02:00
2026-07-24 20:53:37 +02:00
2026-09-18 14:36:44 +01:00
2026-09-18 14:36:44 +01:00
2026-09-10 09:40:28 +02:00
2026-09-10 09:40:28 +02:00
2026-09-18 14:36:44 +01:00
2026-08-21 21:25:26 +02:00
2026-05-07 14:41:54 +05:30
2026-09-04 08:22:14 +02:00
2026-09-04 08:22:14 +02:00
2026-09-04 08:22:14 +02:00
2026-06-05 20:19:51 +02:00
2026-06-05 20:19:51 +02:00
2026-09-04 08:22:14 +02:00
2026-09-04 08:22:14 +02:00
2026-02-09 09:29:16 +01:00
2026-09-18 14:36:44 +01:00
2026-08-25 16:01:14 +02:00
2026-07-23 12:22:51 +02:00
2026-07-23 12:22:51 +02:00
2026-09-18 14:36:44 +01:00
2026-08-25 16:01:14 +02:00
2026-08-25 16:01:14 +02:00
2026-09-04 08:22:14 +02:00
2026-09-18 14:36:44 +01:00
2026-08-25 16:01:14 +02:00
2026-08-17 11:30:25 +02:00
2026-09-04 08:22:14 +02:00
2026-09-04 08:22:14 +02:00
2026-07-07 17:31:05 +01:00
2026-07-07 17:31:05 +01:00
2026-07-11 10:38:15 +02:00
2026-05-12 17:09:19 +02:00
2026-05-12 17:09:19 +02:00
2026-07-08 23:23:47 +02:00
2026-07-08 23:23:47 +02:00
2026-09-18 14:36:44 +01:00
2026-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-07-22 11:42:09 +02:00
2026-05-13 17:15:51 +10:00
2026-05-13 17:15:51 +10:00