Fix several occurences of the improper_ctypes lint in tests where that was not the intent#111972
Fix several occurences of the improper_ctypes lint in tests where that was not the intent#111972asquared31415 wants to merge 7 commits intorust-lang:masterfrom
improper_ctypes lint in tests where that was not the intent#111972Conversation
|
(rustbot has picked a reviewer for you, use r? to override) |
|
@rustbot author whoops, meant to r? ghost in the first place, I want to do some more looking into some of the final list |
|
Failed to set assignee to
|
|
You can keep me as a reviewer for this PR. |
|
☔ The latest upstream changes (presumably #108611) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@asquared31415 any updates on this? |
Addresses most of #53858
Summary of changes:
allow(improper_ctypes)removed (it was not doing anything anymore)tests/ui/lint/lint-ctypes-fn.rstests/ui/abi/variadic-ffi.rstests/ui/abi/issues/issue-97463-broken-abi-leaked-uninit-data.rstests/ui/abi/foreign/foreign-fn-with-byval.rstests/debuginfo/type-names.rstests/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs(note: it's suspicious that there's an empty struct here that works, why is that the case?)Lint removed by addressing the root problem
tests/ui/issues/issue-3656.rstests/ui/issues/issue-51907.rstests/ui/repr/align-with-extern-c-fn.rstests/ui/lint/clashing-extern-fn.rstests/ui/lint/clashing-extern-fn-recursion.rstests/ui/abi/issue-28676.rstests/ui/abi/issues/issue-62350-sysv-neg-reg-counts.rstests/ui/abi/extern/extern-pass-TwoU8s.rstests/ui/abi/extern/extern-pass-TwoU16s.rstests/ui/abi/extern/extern-pass-TwoU32s.rstests/ui/abi/extern/extern-pass-TwoU64s.rstests/ui/abi/extern/extern-return-TwoU8s.rstests/ui/abi/extern/extern-return-TwoU16s.rstests/ui/abi/extern/extern-return-TwoU32s.rstests/ui/abi/extern/extern-return-TwoU64s.rstests/ui/abi/abi-sysv64-register-usage.rstests/ui/cfg/conditional-compile.rstests/ui/abi/abi-sysv64-arg-passing.rs(note: one instance here is intentional in the test, can this be fixed?)tests/ui/lint/clashing-extern-fn.rs(note: two instances here are intentional)Intentional or the lint firing/not firing is part of the test
tests/ui/lint/warn-ctypes-inhibit.rstests/ui/issues/issue-16441.rstests/ui/lint/lint-ctypes.rstests/ui/abi/extern/extern-pass-empty.rs(note:#![allow(improper_ctypes)] // FIXME: this test is inherently not FFI-safe.)Unknown/Not addressed in this PR/Needs more investigation
tests/ui/issues/issue-28600.rs(possibly intentional for ICE)tests/ui/issues/issue-26997.rs(possibly intentional for ICE)tests/ui/issues/issue-38763.rs(possibly intentional for ICE)tests/ui/issues/issue-5754.rs(possibly intentional for ICE)tests/ui/foreign/nil-decl-in-foreign.rs(maybe an LLVM bug test? It was fixed with no links to how.)tests/ui/mir/mir_cast_fn_ret.rs(I don't know enough about this test)tests/ui/mir/mir_codegen_calls.rs(I don't know enough about this test)tests/ui/abi/numbers-arithmetic/i128-ffi.rs(note: it's testing 128-bit ints in FFI, this is a known problem cc i128 / u128 are not compatible with C's definition. #54341 128-bit integers marked as having an unknown stable ABI #78473 )