mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 20:18:38 -05:00
- A `while n < bound` loop that adds to or subtracts from `n` in its body
counts its own passes, so calls in the bound (`attempts.len()`) no
longer exempt the sleep. A condition that also has `&&` or `||` keeps
its calls as polling evidence.
- A change to the loop or spawn closure around a reported sleep counts as
a change to the hit, so an edit that removes the poll from the
condition fails the changed-line check.
- `use std::thread::spawn as spawn_thread;` and
`use std::thread::sleep as nap;` no longer bring in the bare names, and
`thread::sleep_ms` no longer matches `thread::sleep`.
- A `thread::spawn` path counts only where a `use` binds `thread` to
`std::thread`, so a local `mod thread` with its own `spawn` is not
exempt.
- A `;` inside a nested block in a loop condition
(`while !ready({ let key = 1; key })`) no longer ends the header, and a
block after `||` stays part of the condition.
- A sleep in a `let` initializer block inside a dropped spawn closure is
exempt like the closure's other sleeps; the same block inside a polling
loop is still reported.