extern "rust-cold" fn
s should not trigger improper_ctypes
lint
#125830
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
L-improper_ctypes
Lint: improper_ctypes
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
<<no warnings>>
Rationale and extra context
(godbolt link)
Like
extern "Rust"
and the otherextern "rust-*"
ABIs,extern "rust-cold"
should not triggerimproper_ctypes
andimproper_ctypes_definitions
for non-FFI-safe types.Related: #64593, #64641; tracking issue #97544.
Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: