Files
vectorcraft/xtask
dotCooCoo f91fe5bf54 xtask: test-lint sleep rule checks thread spawns and real polling calls
- A dropped-handle spawn counts only as `thread::spawn` through a path,
  with or without a leading `::`, or as a bare `spawn` that a `use` brings
  in. A local `fn spawn` that runs the closure at once is reported.
- A sleep that is the whole body of a closure without braces is judged by
  the call that takes the closure: a dropped `thread::spawn` is exempt, and
  a joined one is reported even inside a polling loop.
- A `loop` used as a `let` value is checked for polling calls.
- Calls inside the sleep's own argument and inside `stringify!` are not
  polling work, and neither are `unwrap`, `expect` and the `unwrap_or`
  family.
- `Duration::new` is matched per call, with `Duration` as a whole path
  segment, so a local named `new` or `ScheduleDuration::new()` does not
  change the result.
2026-12-01 17:10:02 -08:00
..