Skip to content

D198: a proof about C is accepted only when the drafter can enumerate everything it depends on - #3211

Merged
ehartford merged 1 commit into
mainfrom
d198
Nov 10, 2026
Merged

ehartford merged 1 commit into
mainfrom
d198

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Decision-log entry recording Eric's rulings on the #3206 and #3173 briefs (2026-11-09). Docs only; spec-inventory-check green.

… everything it depends on (Eric's rulings on #3206 and #3173)

Function-pointer fields: the closed-world proof is refused; a field's
callee set is proven only when it is written in exactly one place (a
constant initializer or a single assignment of a named package function)
and its struct is never passed by address outside what the drafter
reads; anything else is a registry fact. User-replaceable hooks are a
facts clause, and a hook's setter mutates the library's state domain.
Caller-allocated structs: a read-only value record is `&T` under a
tightened retention proof; an out-only record is the return value; an
in-out record is a `mut fn` only when it is no init/end resource; the
init/end resource in pinned storage is granted and waits for its spec
words. Docs only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant