Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
warning[Lint W01002]: unnecessary 'while (true)', replace with 'loop'
warning[Lint W04002]: unnecessary 'while (true)', replace with 'loop'
┌─ tests/linter/true_positive_unnecessary_while_loop.move:3:9
3 │ while (true) {};
Expand All @@ -7,7 +7,7 @@ warning[Lint W01002]: unnecessary 'while (true)', replace with 'loop'
= A 'loop' is more useful in these cases. Unlike 'while', 'loop' can have a 'break' with a value, e.g. 'let x = loop { break 42 };'
= This warning can be suppressed with '#[allow(lint(while_true))]' applied to the 'module' or module member ('const', 'fun', or 'struct')

warning[Lint W01002]: unnecessary 'while (true)', replace with 'loop'
warning[Lint W04002]: unnecessary 'while (true)', replace with 'loop'
┌─ tests/linter/true_positive_unnecessary_while_loop.move:4:9
4 │ while (true) { break }
Expand Down
Loading