The reader opens a PowerClip frame whose clipped objects were all left out
(bitmaps, text and other objects it doesn't read yet, or contents past the
import limits) as a plain shape, and the warnings only said that objects
were left out, so an empty frame had no explanation.
Opening a drawing of version 4 or later now adds the line "CDR PowerClip
frames whose contents were left out opened empty, as plain shapes" whenever
the reader left objects out or stopped at a limit. Drawings of versions 1 to
3, which the reader opens without frames, don't get it. The reader's
warnings don't say which frames lost their contents, so the line is shown
for every such drawing.
DWG drawings open and place through the DXF reader since #10802, but
the M4 row in docs/roadmap.md still listed DWG under Left. The row now
lists DWG import with its pull request, and Left keeps DWG export (use
DXF).
#10622 changed the tool-name assertion in crates/mcp/src/tests.rs, and
test-lint's all-unguarded rule failed main's gate on it: the all() check
had no emptiness check that the rule recognizes. The test now asserts
that tools are defined and that each name is non-empty on its own, then
checks the name's length and characters.
Under the Selection tool, Group Selection and the other tools that do not
edit anchors, the selected paths' anchor squares draw at 4 pt at the
default Size, one point smaller than under Direct Selection, the Pen and
the other anchor-editing tools, which keep 5 pt. Each Size step still
adds or removes one point under every tool. Tool overlays follow the
active tool the same way.
Part of #10720.
A failed conversion was returned for the same bytes until another
drawing replaced it, so a worker stopped by its deadline, by a lack of
memory or by a failed start kept failing after the cause was gone. The
failure is now kept for 10 seconds from when the conversion returned,
which still covers the reads of one Open, and the next read converts
the drawing again. A conversion that worked is kept as before.
The time-limit test checked only the worker's exit code, which the
test-lint exit-status-only rule rejects. It now also reads the worker's
output and checks that nothing was written before it exited.
A local saved from `xs.len()` or `xs.iter().count()` gives the number
compared with it as the item count. One saved from an item or a flag
(`xs.first().copied().unwrap_or(0)`) shows at least one item, whatever
it is compared with.
A star with a radius on each corner stores its corner list in its
shape settings entry. A 1000-point star's entry is longer than the
4,096-byte read limit, so it was dropped on read and the star lost its
pie angles and arc mode on the next edit. The limit is now 128 KiB,
which holds the longest entry a 1000-point star can write.
Workflow environment scan:
- A command whose standard output is redirected
(`echo "N=x" >/dev/null |& tee -a "$GITHUB_ENV"`) does not set the
variable; the same pipeline without the redirect still does.
- `env` reads assignments only before its child command, so
`env printf '%s' "N=x"` passes the word to `printf`.
- A line break after `|` or `|&` continues the pipeline.
- A line continuation inside a name (`MY_\` and `SAMPLES=x` on the
next line) is removed before names are read; single-quoted text is
kept as it is.
Test reads:
- Closure names are read past the 1 KiB decode window and with
combining marks.
- A unary `-` or `!` stays inside a cast's operand (`-Kind::A as i8`).
- A closure called only from a closure that never runs is not run;
statements are judged last first against the code kept so far.
- An async closure's future passed to `drop` or `std::mem::drop` is not
polled.
- `fallback(xs).len()` is a size check of the call's result, not of
`xs`; `(xs).len() == 2` keeps its exact bound.
- An index shows `k + 1` items (`xs[0]` does not guard
`xs.windows(2)`), and an index after the assertion counts only while
nothing in between changes the collection.
- Turbofish arguments neither end a selector closure nor count as
selector locals.
- A count through `by_ref()` consumes its source.
- A saved count (`let n = xs.len()`) guards only `xs`, with its compared
bound.
- `(status.success() && dest.exists()) == true` is not status-only.
- Brackets inside const arguments are skipped when tracking open
generic lists, so a shift after them stays visible.
- Every grouping layer around a constructor is unwrapped before a field
is read.
- A raw identifier (`r#loop`) does not open an iterator block.
A nudge that the pixel-grid snap took back still recorded an undo step and
left a rounded live rectangle a live path when an object selected whole
was moved together with direct-selected anchors, because the no-change
check ran only for anchor-only selections. The check now also covers
objects selected whole. The path.moveAnchors params text and the Live
Corners progress entry now state the pixel-grid case as docs/mcp.md does.
The conflicts in xtask/src/test_lint.rs keep main's shell command
reader (shell_command, command_word, writes_env_file with its later
redirection check), main's first-item roots, indexed_local and
name_byte/local_name, and this branch's grouped receivers, unused
closure check, status_condition and tuple-literal fields.
The merged scanner also closes these gaps:
- A quoted NAME=value counts only when the setter is the command
itself, not an argument (`cargo test -- env "NAME=x"`);
`/usr/bin/env "NAME=x" cargo test` still counts.
- Bash `|&` continues the pipeline, and the environment-file writer is
the command after the last pipe outside quotes, so
`tee 'backup|copy' "$GITHUB_ENV"` is found. `>|` redirects like `>`.
- A backslash-newline continuation leaves the word state as it was, so
a `#` after `true; \` and a line break starts a comment.
- name_at reads past whitespace longer than 1 KiB, such as a long
masked comment before a binding or nested fn name.
- An indexed item, or an iterator taken from it (`rows[1].by_ref()`),
that is the `.all()` receiver in the assertion does not guard it.
- A selector after a closure (`r.items(|i| i > 0, i)`) is tracked:
closure parameters are hidden only inside the closure's body.
Non-ASCII selector locals (`café`) are tracked through the mutation
check.
- A count produced by draining its source (`xs.drain(..).count()`)
guards nothing.
- The type of a qualified path in a loop iterator
(`<Producer as Make<{ 1 + 1 }>>::items()`) is not taken as the loop
body.