Skip to content

Spec errata (#2966, #3040, #3021; #2955 items 11, 13): stale examples and one changelog line - #3055

Merged
ehartford merged 1 commit into
mainfrom
spec-errata
Nov 6, 2026
Merged

ehartford merged 1 commit into
mainfrom
spec-errata

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Docs-only; spec-inventory-check green; no battery per the docs-only rule. Blessed by Eric 2026-11-06. See the commit message for each site and for the items checked and left as written (§18.5b.1 nr is i64 by D114; one-liner args follow --; §14.9 :: and §14.6 Ok(a + b) were already fixed). Items of #2955 that need a ruling (Duration literal #2957, comprehension families #2961, drop naming #2962, iterable zip #2963, the tuple-await ceiling #2964, the two-parameter borrow hole #2965, script globals #2951, #2522) stay on their issues.

… and one changelog line

Docs-only (spec-inventory-check green; no battery). Blessed by Eric 2026-11-06.

- README v7.24 (D95): the tuple/array/Option/Result trait list drops `Hash`,
  retired the same day by D96 (v7.25); the line says so.
- §1.7: the short-circuit comprehension example is the bracket form D185 kept,
  not the retired `for ...: yield` expression.
- §3.8: `let count = counts.get("api").unwrap()` is an `i32` under D144, so the
  view example is written with its `&i32` annotation and the independent copy
  loses its redundant one.
- §22.3: the diagnostic example reads as the compiler writes it ("take an
  independent Copy value with `let count: i32 = ...`"), with a note that the
  view exists only because it was annotated `&i32`.
- §14.10: `recv()` yields `Option[T]`, so the select examples bind the Option
  (`msg.unwrap()` one-shot; `let Some(m) = msg else break` in a loop, the
  section's own later idiom). A select arm takes a binding name today; a
  refutable arm pattern has no semantics in the spec, so none is written.

Checked and left as written: §18.5b.1's `nr` is `i64` in the implementation
and D114 wants a fixed width for a count a stream does not bound; one-liner
`args` do come after `--` (`with -e '...' -- a b`; `with run tool.w a b` is the
script path). §14.9's `::` and §14.6's `Ok(a + b)`/`String` were already fixed.
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