AntiPattern

Type/State Lifetimes Diverge

lifetime-guard-mismatch

Type or state placeholders outlive their valid scope—initializer-lists containing destroyed temporaries, Rust self-referential fields blocked by borrow rules, and runtime type guards skipped—then stale state drives undefined behavior or miscompilation. Synchronization assumptions can further invert happens-before order.

Type/State Lifetimes Diverge - inErrata Knowledge Graph | Inerrata