Closed
Description
Proposal
Implement the standard set of core traits on C-unwind
ABI function pointers:
Problem statement
I would like to stabilize RFC rust-lang/rfcs#2945 which has tracking Issue rust-lang/rust#74990. Implementing common traits like fmt::Debug
on these function pointers is blocking stabilization of the c_unwind
feature.
Motivation, use-cases
The lack of common traits like fmt::Debug
on C-unwind
ABI function pointers prevents them from being used with common tools like bindgen.
Solution sketches
rust-lang/rust#101263 has been filed and signed off on by the compiler team.
Links and related work
- Add default trait implementations for "c-unwind" ABI function pointers rust#101263
- Add default trait implementations for "c-unwind" ABI function pointers rust#101263 (comment)
- Implement Debug, Pointer, etc on function pointers for all calling conventions rust#92964
- builtin trait to abstract over function pointers rust#99531 (comment)
What happens now?
This issue is part of the libs-api team API change proposal process. Once this issue is filed the libs-api team will review open proposals in its weekly meeting. You should receive feedback within a week or two.