-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Function pointers are not VaArgSafe #153646
Copy link
Copy link
Open
Labels
A-coherenceArea: CoherenceArea: CoherenceC-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.F-c_variadic`#![feature(c_variadic)]``#![feature(c_variadic)]`T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-coherenceArea: CoherenceArea: CoherenceC-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.F-c_variadic`#![feature(c_variadic)]``#![feature(c_variadic)]`T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The VaArgSafe trait is not implemented for
fntypes -- and fixing that seems non-trivial? There is no easy way to "implement a trait for all function pointers". This is something we may have to figure out before stabilizing #44930 because surely we want to support fn types eventually and so we should be confident that the design we stabilize can accommodate that.We do have the
FnPtrtrait, but wouldn't we risk coherence issues if we add something like this?Cc @folkertdev