mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 19:41:36 -05:00
9c8f31344a
- A closure or async block bound to `_` inside parentheses
(`let _ = (|| { … });`) is dropped unrun; `(|| { … })()` still runs.
- A length check after an `.all(…)` assertion guards it only when no code
between them changes the local's item count (`xs.push(1)` included).
- A strict bound (`xs.len() > 1`, `1 < xs.len()`) gives one item more
than its count, so `.windows(2)` after `> 1` is guarded.
- An index into the outer collection no longer guards `.all(…)` over an
item read through `.iter_mut()`, `.windows(…)`, `.chunks(…)` or
`.chunks_exact(…)`.
- A grouped argument (`std::mem::take((xs))`) is found as a call that can
change a `&mut` local; `(xs).len()` stays a read.
- A nested `fn` with a non-ASCII name is skipped by the polling scan.
- A non-ASCII container local is followed to its initializer when deciding
whether a conversion can test a user value.
- A `cfg` attribute covers a function whose return type holds `;`
(`-> Result<(), [u8; 2]>`), so `never-run` reports it.
- The test repository directory comes from `tempfile`, created for the
test alone.