Skip to content

Plan docs still spell &mut parameters — respell per §15.1/D27 before implementing #739

Closed

Description

@ehartford

The D27 dissent purge repaired all live docs (spec, idiomatic guide, migration guide, migrator specs, blog). Plan documents still contain &mut parameter signatures that predate mut.md Rev 8 — each needs per-API respelling (mut receivers, []mut T slices, or threaded owned values), which is design work, not find-and-replace, so they carry conformance banners until repaired:

  • docs/feature_plans/libstd-spec.md (74 sites)
  • docs/feature_plans/std-math-spec.md (~10 sites)
  • docs/feature_plans/state_machine_async.md (3)
  • docs/demo_plans/ml/weld/weld-design.md (18)
  • docs/demo_plans/ml/weld/weld-implementation-notes.md (4 remaining)
  • docs/demo_plans/ml/with-enhancements.md (3)
  • docs/demo_plans/with-kernel-module.md (5)
  • docs/demo_plans/wipe-survival/wipe-survival-implementation-notes.md (2)
  • docs/with-implementation-notes.md (16 — historical notebook, banner only)

docs/completed/* is archived history (banner via docs/completed/README.md); its &mut occurrences document the pre-Rev8 world and stay, except serialization-doctrine signatures which were repaired under D27 ruling 1.

Rule for the repair: the parameter's replacement must preserve the API's intent — a mutating method becomes mut fn on the receiver; a mutable buffer becomes []mut T; an out-param becomes a threaded owned value or a return. No mechanical substitution.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): still open; the documents moved. Counts of &mut today:

    docs/spec/stdlib/libstd-spec.md: 67
    docs/spec/stdlib/std-math-spec.md: 11
    docs/proposals/state_machine_async.md: 7
    docs/proposals/storage-types-and-caller-places-spec.md: 2
    docs/proposals/with-fmt.md: 1
    docs/proposals/vx.md: 1
    

    Two of them now sit under docs/spec/, where a reader takes them as current.

    post-release: per-API respelling is design work; the banners stand meanwhile.

  2. added this to the post-v0.16.0 milestone on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions