Repository navigation
A function-pointer field the package fills: several writers join, and a record handed through a closed field stays proven (D211) - #3470
Merged
Conversation
added 5 commits
November 19, 2026 08:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3206 and #3174 (D211, ruled by Eric 2026-11-18). It does not close them: the
field F of R holds f, gclause is new grammar and comes as a spec diff, and see the measurement below.The ruling, implemented in the drafter (
fd_draw_fnptr_verdicts) and the C evidence (ci_fnptr_field_evidence):memcpyalready failed as an unreadable callee.A fourth fix, found measuring glfw. A record named by a typedef before its struct is defined (
typedef struct T T;) answered with that first, field-less declaration, so every designated initializer of it "mapped to no field". Fields are now read from the definition (with_ci_type_declaration).Measured,
with get --from-sourceover the sixteen libraries that build here, functions presented safely: glfw 30 → 31, raylib 459 → 473, the other fourteen unchanged. glfw's remaining 39 wait on something outside D211: the functions its platform table can hold are defined in Objective-C units on macOS, which the proofs do not read, so the set does not close on this target.Tests.
conan_facade_fnptr_field_proof_testgains five cases: two writers that both only read (now a lend), two writers one of which keeps its argument (retained, member named), a table handed through a closed field, a table assigned whole from a caller's pointer, and the typedef-before-struct table.tools/facade_coverage.wknows the new reasons.Battery green on the branch tip;
:release-checksgreen.