The following run-pass tests cause the `improper_ctypes` lint to fire. It would probably be fine (and trivial) to add `#[repr(C)]` to them. https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/extern-pass-TwoU16s.rs#L17 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/extern-pass-TwoU32s.rs#L17 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/extern-pass-TwoU64s.rs#L17 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/extern-pass-TwoU8s.rs#L17 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/extern-return-TwoU16s.rs#L13 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/extern-return-TwoU32s.rs#L13 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/extern-return-TwoU64s.rs#L13 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/extern-return-TwoU8s.rs#L13 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/foreign-fn-with-byval.rs#L14 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/issue-3656.rs#L23 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/issue-5754.rs#L13 https://github.com/rust-lang/rust/blob/c2afca36672a85248f4da3e8db8cdfac198ad4ad/src/test/run-pass/issue-6470.rs#L14 (I'm just filing this ticket so I have something to point at from a PR for #53764.) <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":null}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->
The following run-pass tests cause the
improper_ctypeslint to fire. It would probably be fine (and trivial) to add#[repr(C)]to them.rust/src/test/run-pass/extern-pass-TwoU16s.rs
Line 17 in c2afca3
rust/src/test/run-pass/extern-pass-TwoU32s.rs
Line 17 in c2afca3
rust/src/test/run-pass/extern-pass-TwoU64s.rs
Line 17 in c2afca3
rust/src/test/run-pass/extern-pass-TwoU8s.rs
Line 17 in c2afca3
rust/src/test/run-pass/extern-return-TwoU16s.rs
Line 13 in c2afca3
rust/src/test/run-pass/extern-return-TwoU32s.rs
Line 13 in c2afca3
rust/src/test/run-pass/extern-return-TwoU64s.rs
Line 13 in c2afca3
rust/src/test/run-pass/extern-return-TwoU8s.rs
Line 13 in c2afca3
rust/src/test/run-pass/foreign-fn-with-byval.rs
Line 14 in c2afca3
rust/src/test/run-pass/issue-3656.rs
Line 23 in c2afca3
rust/src/test/run-pass/issue-5754.rs
Line 13 in c2afca3
rust/src/test/run-pass/issue-6470.rs
Line 14 in c2afca3
(I'm just filing this ticket so I have something to point at from a PR for #53764.)