You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
Found during the #2987 manual audit (child of #2955; normative prose / coupled prose-and-diagnostic text left for Eric's blessing):
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)]`.
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
Spec errata (#2966, #3040, #3021; #2955 items 11, 13): stale examples…
ehartford commentedon Nov 6, 2026
Fixed in #3055 (docs-only, blessed by Eric 2026-11-06).