Skip to content

Spurious "infinitely recursive" not ffi-safe warning #130757

@ChrisDenton

Description

@ChrisDenton

The windows-rs crate is getting a whole bunch of spurious FFI-safe warnings:

 error: `extern` block uses type `*mut CRYPT_PROVIDER_FUNCTIONS`, which is not FFI-safe
  --> crates/libs/sys/src/Windows/Win32/Security/WinTrust/mod.rs:23:131
   |
23 | ...ionid : *mut windows_sys::core::GUID, ppfns : *mut CRYPT_PROVIDER_FUNCTIONS) -> super::super::Foundation:: BOOL);
   |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
   |
   = note: type is infinitely recursive

error: could not compile `windows-sys` (lib) due to 668 previous errors

See: https://github.com/microsoft/windows-rs/actions/runs/10997420795/job/30532923854?pr=3291

Metadata

Metadata

Labels

A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.L-improper_ctypesLint: improper_ctypesT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions