Skip to content

Stale spec prose (#2955): §1.7 names the retired yield comprehension (D185) and §3.8 / §22.3 write let count = counts.get(...).unwrap() as &i32 (D144) #3040

Closed

Description

@ehartford

Found during the #2987 manual audit (child of #2955; normative prose / coupled prose-and-diagnostic text left for Eric's blessing):

  1. docs/spec/001_design-goals.md:183-185 (§1.7):

    - **Short-circuit \for` comprehensions** — `for user in get_user(id); profile in get_profile(user): yield profile.name` chains `Option` and `Result` without pyramid-shaped `match` nests. (§13.6a)D185 retired thefor ...: yield exprexpression comprehension in favor of[profile.name for user in get_user(id); profile in get_profile(user)]`.

  2. docs/spec/003_borrowing.md:423-424 (§3.8) and docs/spec/022_ephemeral-rules.md:106-113 (§22.3):
    003_borrowing.md:423 writes let count = counts.get("api").unwrap() // &i32 beside let snapshot: i32 = counts.get("api").unwrap() // independent i32, and 022_ephemeral-rules.md:106-113 shows the diagnostic help let count: i32 = counts.get("api").unwrap(). Under D144 (003_borrowing.md:344-348), an unannotated binding of a plain-bits view (i32) already takes i32 (let count: &i32 = ... or &counts.get("api").unwrap() is the view, while HashMap[str, List[Job]] keeps observing unannotated).

Activity

  1. added
    documentation
    on Nov 5, 2026
  2. added a commit that references this issue on Nov 6, 2026
  3. ehartford commented on Nov 6, 2026

    @ehartford
    ContributorAuthor

    Fixed in #3055 (docs-only, blessed by Eric 2026-11-06).

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

    documentationspec

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions