Skip to content

chore(lane): daily maintenance 2026-10-28 - #134

Merged
kirillDevPro merged 2 commits into
masterfrom
lane/daily-2026-10-28
Oct 28, 2026
Merged

kirillDevPro merged 2 commits into
masterfrom
lane/daily-2026-10-28

Conversation

@kirillDevPro

Copy link
Copy Markdown
Collaborator

Docs

Stale: the regeneration command in docs/MOON_PATCH_QUEUE.md passed --local to cargo xtask transform. The Transform subcommand only defines --zed-tag, --zed-path, --output and --versioned-deps, so clap rejects the documented command with "unexpected argument '--local'" (exit 2).

What the code does now: path dependencies are the default (main.rs passes !versioned_deps as use_local_deps), and --versioned-deps opts into version dependencies. The doc now says so.

Verified: cargo xtask transform --help lists no --local, and running the command with --local exits 2 before touching any directory.

Reviewer: Codex. It confirmed all three changed claims against main.rs, transform.rs and transform/manifest.rs.

Also read today and still current: crates/moon-gpui/README.md, crates/moon-ui-gallery/README.md. No issues opened.

Hunt

Ground: moon-refineable and its derive macro (moon-derive-refineable).

Input: a refinement generated by #[derive(Refineable)] with only one field set (one field of a nested #[refineable] refinement).

Documented result: the generated <Name>Refinement::is_some said "Returns true if all fields are Some", so it should return false.

Actual result: it returns true, because the body returns on the first set field.

Why the doc is the part that is wrong: callers rely on what the code does. Style::text_style (moon-gpui/src/style.rs) returns the text refinement whenever self.text.is_some(). With the documented "all fields" meaning, a style that overrides only the text colour would lose that override. The macro's generated Debug uses the same "any field set" meaning. So only the doc comment changes, and no behaviour changes.

Proof: a throwaway probe in crates/moon-refineable/tests asserted the documented meaning and failed on origin/master at 11caff6. The probe was deleted and is not committed. Five more edge probes passed and were deleted: refined ⊇ is_superset_of, the subtract round-trip, cascade order with an emptied slot, subtract against an empty refinement, and From<Refinement>.

Checks: cargo fmt --all; cargo clippy and cargo test for both crates; cargo check -p moon-gpui.

Reviewer: Codex. No findings.

Leftovers

Quiet: no open lane pull requests.

Fix

Quiet: both open auto-found issues (#127, #129) carry needs-human.

…ation command

What was stale: the regeneration command in docs/MOON_PATCH_QUEUE.md passed
`--local` to `cargo xtask transform`. The Transform subcommand defines only
--zed-tag, --zed-path, --output and --versioned-deps, so clap rejects the
documented command with "unexpected argument '--local'" (exit 2).

What the code does now: path dependencies are the default (main.rs passes
`!versioned_deps` as `use_local_deps`); `--versioned-deps` opts into
version dependencies. The doc now says so.

Verified: `cargo xtask transform --help` lists no --local, and running the
command with --local exits 2 before touching any directory.
Reviewer: Codex (all three changed claims confirmed against main.rs,
transform.rs and transform/manifest.rs).
Other documents read today and current: crates/moon-gpui/README.md,
crates/moon-ui-gallery/README.md.
Found by the hunt lane in moon-refineable / its derive macro.

Input: a refinement generated by #[derive(Refineable)] in which only one
field (here one field of a nested #[refineable] refinement) is set.
Documented result: the generated `<Name>Refinement::is_some` doc comment
said "Returns `true` if all fields are `Some`", so it should return false.
Actual result: it returns true; the body returns on the first field whose
`is_some()` is true.

The code, not the comment, is what callers depend on:
`Style::text_style` (moon-gpui/src/style.rs) returns the text refinement
whenever `self.text.is_some()`, so a style that overrides only the text
colour keeps it; with the documented "all fields" meaning that override
would be discarded. The macro's own Debug impl uses the same presence
meaning for nested refinements. So the doc comment is corrected and no
behaviour changes.

Proof: a throwaway integration probe in crates/moon-refineable/tests
(deleted, not committed) asserted the documented meaning and failed on
origin/master at 11caff6 ("is_some returned true with only one nested
field set"). Re-run: derive a two-level refinement, set one nested field,
call is_some().
Checks: cargo fmt --all, cargo clippy and cargo test for
moon-derive-refineable and moon-refineable, cargo check -p moon-gpui.
Reviewer: Codex (no findings; confirmed the text matches the generated
body and that Style::text_style and the generated Debug rely on it).
@kirillDevPro
kirillDevPro merged commit a3423e4 into master Oct 28, 2026
4 checks passed
@kirillDevPro
kirillDevPro deleted the lane/daily-2026-10-28 branch October 28, 2026 05:17
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