Rules / TAU-L001
No unbounded loops outside the edge
decided by Clippy kernel deny core deny edge –
Applies to tests: no
Exceptions:
#[expect] + reasonWhy
A loop with no exit cannot be reasoned about or terminated by the caller.
Fix
Bound the loop, return a value from it, or move the event loop to the edge.
What it checks
Lints: clippy::infinite_loop
Seen in fixtures
rej-infinite-loop/src/lib.rs core
//! Unbounded loop in library code. /// Spin.pub fn spin(counter: &mut u64) { loop { *counter = counter.wrapping_add(1); }}$ cargo tauten check
error[TAU-L001]: infinite loop detected --> rej-infinite-loop/src/lib.rs:5:5 (core crate `rej-infinite-loop`) = rule: No unbounded loops outside the edge (decided by Clippy) = fix: Bound the loop, return a value from it, or move the event loop to the edge.rej-infinite-loop (core) expects TAU-L001. Output captured at 0200db3.In the terminal
cargo tauten explain TAU-L001$ cargo tauten explain TAU-L001
TAU-L001: No unbounded loops outside the edge Why: A loop with no exit cannot be reasoned about or terminated by the caller. Fix: Bound the loop, return a value from it, or move the event loop to the edge. Decided by: ClippyDecides: No loop without an exit outside the edge.Sees: resolved; complete: yesDoes not see: Code expanded from macros defined in other crates (clippy skips it); code disabled by `cfg`; build scripts.Applies to tests: noExceptions allowed: with #[expect(.., reason)] kernel deny core deny edge -Lints: clippy::infinite_loop