From eaefd116e8f3e3061845808fc3702d87b237bfdd Mon Sep 17 00:00:00 2001 From: Luke Curley <432854+kixelated@users.noreply.github.com> Date: Sun, 1 Nov 2026 00:37:36 -0700 Subject: [PATCH] chore(quest): drop the box-places quest #369 completed Co-Authored-By: Claude Opus 5.5 --- quest/m3/README.md | 1 - quest/m3/ts-box-places.md | 16 ---------------- 2 files changed, 17 deletions(-) delete mode 100644 quest/m3/ts-box-places.md diff --git a/quest/m3/README.md b/quest/m3/README.md index cda0dfc57..aa58a1f40 100644 --- a/quest/m3/README.md +++ b/quest/m3/README.md @@ -34,6 +34,5 @@ generic std gap is planned here even when moq never calls it. - [std's sorts call their tests in std's order](/quest/m3/ts-sort-order.md) - `slice::sort` and a B-tree's `collect` call `lt` or `cmp` as std's driftsort does past 16 elements - [A B-tree's searches call Ord as std's do](/quest/m3/ts-btree-search-order.md) - a B-tree's lookups and inserts call a key's own `Ord` in std's order and number - [A str's checked and inclusive parts](/quest/m3/ts-str-get.md) - `str::get` and indexing a `str` by `a..=b` or `..=b` translate -- [A &mut into a Box of a value JS copies](/quest/m3/ts-box-places.md) - a write through `&mut *b` of a `Box`, a `Box`, or a `Box` reaches the box's place - [The rest of a boxed slice's impls](/quest/m3/ts-boxed-slice-rest.md) - `clone_from`, `AsRef`, `AsMut`, `TryFrom` into a boxed array, and `Box` into bytes translate for boxed slices - [A reversed zip's per-pair cost](/quest/m3/ts-zip-rev-overhead.md) - a reversed by-index zip costs per pair what a forward one does, or the gap is explained diff --git a/quest/m3/ts-box-places.md b/quest/m3/ts-box-places.md deleted file mode 100644 index 68b2d7dba..000000000 --- a/quest/m3/ts-box-places.md +++ /dev/null @@ -1,16 +0,0 @@ -# [S] A &mut into a Box of a value JS copies - -## Goal - -[rust2-ts](/ts/README.md) translates a `&mut` to what a `Box` holds, where JS copies it (a -number, a `String`, or a `str`), as a write to the local or field holding the box. Today -`*(&mut *b) += 1` of a `Box`, `push` on a `Box`, and `make_ascii_uppercase` -on a `Box` translate to `b.v` of a value with no `v`, which `tsc` rejects. Proven by -differential tests against native Rust. - -## Plan - -Found translating `&mut str`'s places. A `Box` is its `T`, so a `&mut` through it is -the box's own place, as `String::as_mut_str` borrows the `String`'s. - -Public API: the translator's output.