Skip to content

D172: mutation is a declared capability on any parameter (ruled) - #2833

Merged
ehartford merged 1 commit into
mainfrom
d172-ruling
Oct 30, 2026
Merged

ehartford merged 1 commit into
mainfrom
d172-ruling

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Records Eric's D172 ruling and lands its spec changes verbatim (§3.1, §3.2, new §3.2a, §3.8, new §3.8a, §9, §19, ABI). Docs-only: spec-inventory-check green; no battery (docs-only rule). The implementation is non-compliant until it conforms.

Records Eric's ruling and lands its spec changes as written:
- §3.1: mutation in place is a parameter mode, not a type.
- §3.2: passing a place to a `mut` parameter mutates it; a `mut` receiver
  or parameter is exclusive, beginning at call activation.
- §3.2a (new): Access Activation, the four steps of a call.
- §3.8: the `mut T` parameter mode and the `mut x` call-site spelling.
- §3.8a (new): Mutable Parameters.
- §9: a `fn` receiver is read-only for every write through it.
- §19: the one compiler-known interior-mutability marker, `unsafe` to use
  directly, behind std's `Memo`.
- ABI: a `&T` parameter keeps readonly and noalias except where T
  contains the marker.

The implementation is non-compliant until it conforms (D172's
implementation order).
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