From 91119eee0f845b24267e5d4a2f6d92d71449683e Mon Sep 17 00:00:00 2001 From: Todd Nowacki Date: Thu, 12 Sep 2024 16:17:06 -0700 Subject: [PATCH] [more] Fix move tests --- .../tests/linter/true_positive_unnecessary_while_loop.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external-crates/move/crates/move-compiler/tests/linter/true_positive_unnecessary_while_loop.exp b/external-crates/move/crates/move-compiler/tests/linter/true_positive_unnecessary_while_loop.exp index f3f78d6cca224..d1ccfb5973007 100644 --- a/external-crates/move/crates/move-compiler/tests/linter/true_positive_unnecessary_while_loop.exp +++ b/external-crates/move/crates/move-compiler/tests/linter/true_positive_unnecessary_while_loop.exp @@ -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) {}; @@ -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 }