Files
rust/tests/ui/abi
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-08-14 22:28:22 +02:00
2026-08-14 22:28:22 +02:00
2026-09-13 21:45:02 +02:00
2026-08-14 22:28:22 +02:00
2026-07-07 17:31:05 +01:00
2026-07-07 17:31:05 +01:00
2026-08-14 22:28:22 +02:00
2026-07-22 11:42:09 +02:00