Static rustc_lint::builtin::WHILE_TRUE [−][src]
static WHILE_TRUE: &LintExpand description
The while_true lint detects while true { }.
Example
while true {
}{{produces}}
Explanation
while true should be replaced with loop. A loop expression is
the preferred way to write an infinite loop because it more directly
expresses the intent of the loop.