Skip to content

Ceremony audit 2026-11-02: 483 .clone() on a str — a str is a value (D111); sweep the tree #2942

Closed

Description

@ehartford

From the ceremony audit of 2026-11-02.

D111 (2026-10-08): str is a value; passing a str always copies; code using str never sees "use of moved value" and never needs .clone(). The compiler conforms (D120 CoW campaign done 2026-10-18), but the tree still spells it.

Count (census str-clone, typed): src 480, lib 3. Lexical clone-call overall: src 559, build 175, tools 174, lib 38, examples 6 — the non-str remainder is a separate question (which of those clones are a real second owner).

Done when: a Sema-backed sweep (the census already lists the sites: with run tools/ceremony_census.w --sites str-clone) removes every .clone() whose receiver is a str; census bar str-clone reads 0. The examples/ sites are Eric's: list, do not edit without his word.

Umbrella: #2519.

Activity

  1. added
    ceremony
    on Nov 2, 2026
  2. added 9 commits that reference this issue on Nov 3, 2026
  3. ehartford commented on Nov 8, 2026

    @ehartford
    ContributorAuthor

    Swept by with fix-ceremony in #3079 (the tool's passes cover this pattern on Sema's facts; the census count fell and the gate holds the new bar). The 165 str clones and 69 shift-count casts the pinned seed still refuses stay until the next seed under #3073.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ceremony

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions