Skip to content

Commit

Permalink
Regenerated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
awelc committed Mar 14, 2024
1 parent 9d4baf4 commit 0bdb762
Show file tree
Hide file tree
Showing 19 changed files with 162 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
warning[W09002]: unused variable
┌─ tests/move_2024/parser/mut_field_pun_invalid_assign.move:5:13
5 │ let f = 0;
│ ^ Unused local variable 'f'. Consider removing or prefixing with an underscore: '_f'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E04016]: too few arguments
┌─ tests/move_2024/parser/mut_field_pun_invalid_assign.move:6:9
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
warning[W09002]: unused variable
┌─ tests/move_2024/parser/mut_field_pun_invalid_pack.move:5:13
5 │ let f = 0;
│ ^ Unused local variable 'f'. Consider removing or prefixing with an underscore: '_f'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E04016]: too few arguments
┌─ tests/move_2024/parser/mut_field_pun_invalid_pack.move:6:9
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
warning[W09003]: unused assignment
warning[W09002]: unused variable
┌─ tests/move_check/expansion/invalid_unpack_assign_lhs_not_name.move:3:13
3 │ let f = 0;
│ ^ Unused assignment for variable 'f'. Consider removing, replacing with '_', or prefixing with '_' (e.g., '_f')
│ ^ Unused local variable 'f'. Consider removing or prefixing with an underscore: '_f'
= This warning can be suppressed with '#[allow(unused_assignment)]' applied to the 'module' or module member ('const', 'fun', or 'struct')
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E01002]: unexpected token
┌─ tests/move_check/expansion/invalid_unpack_assign_lhs_not_name.move:4:11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ error[E13001]: feature is not supported in specified edition
┌─ tests/move_check/expansion/invalid_unpack_assign_lhs_other_value.move:5:9
5 │ foo() = 0;
│ ^^^^^ Positional fields are not supported by current edition 'legacy', only '2024.alpha' support this feature
│ ^^^^^ Positional fields are not supported by current edition 'legacy', only '2024.alpha' and '2024.beta' support this feature
= You can update the edition in the 'Move.toml', or via command line flag if invoking the compiler directly.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ error[E13001]: feature is not supported in specified edition
┌─ tests/move_check/expansion/mdot_with_non_address_exp.move:17:9
17 │ foo().bar().X::bar()
│ ^^^^^^^^^^^ Method syntax is not supported by current edition 'legacy', only '2024.alpha' support this feature
│ ^^^^^^^^^^^ Method syntax is not supported by current edition 'legacy', only '2024.alpha' and '2024.beta' support this feature
= You can update the edition in the 'Move.toml', or via command line flag if invoking the compiler directly.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
warning[W09002]: unused variable
┌─ tests/move_check/expansion/pack_no_fields_block_expr.move:4:13
4 │ let s = S { let x = 0; x };
│ ^ Unused local variable 's'. Consider removing or prefixing with an underscore: '_s'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E01002]: unexpected token
┌─ tests/move_check/expansion/pack_no_fields_block_expr.move:4:21
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
warning[W09002]: unused variable
┌─ tests/move_check/expansion/pack_no_fields_single_block_expr.move:4:13
4 │ let s = S { false };
│ ^ Unused local variable 's'. Consider removing or prefixing with an underscore: '_s'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E04016]: too few arguments
┌─ tests/move_check/expansion/pack_no_fields_single_block_expr.move:4:17
Expand All @@ -10,6 +18,14 @@ error[E01002]: unexpected token
4 │ let s = S { false };
│ ^ Expected a field expression

warning[W09002]: unused variable
┌─ tests/move_check/expansion/pack_no_fields_single_block_expr.move:5:13
5 │ let s = S { 0 };
│ ^ Unused local variable 's'. Consider removing or prefixing with an underscore: '_s'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E04016]: too few arguments
┌─ tests/move_check/expansion/pack_no_fields_single_block_expr.move:5:17
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
warning[W09002]: unused variable
┌─ tests/move_check/expansion/pack_no_fields_single_block_other_expr.move:5:13
5 │ let f = 0;
│ ^ Unused local variable 'f'. Consider removing or prefixing with an underscore: '_f'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

warning[W09002]: unused variable
┌─ tests/move_check/expansion/pack_no_fields_single_block_other_expr.move:6:13
6 │ let s = S 0;
│ ^ Unused local variable 's'. Consider removing or prefixing with an underscore: '_s'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E03003]: unbound module member
┌─ tests/move_check/expansion/pack_no_fields_single_block_other_expr.move:6:17
Expand All @@ -13,6 +29,14 @@ error[E01002]: unexpected token
│ Unexpected '0'
│ Expected ';'

warning[W09002]: unused variable
┌─ tests/move_check/expansion/pack_no_fields_single_block_other_expr.move:7:13
7 │ let s = S f;
│ ^ Unused local variable 's'. Consider removing or prefixing with an underscore: '_s'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E03003]: unbound module member
┌─ tests/move_check/expansion/pack_no_fields_single_block_other_expr.move:7:17
Expand All @@ -28,11 +52,19 @@ error[E01002]: unexpected token
│ Unexpected 'f'
│ Expected ';'

warning[W09002]: unused variable
┌─ tests/move_check/expansion/pack_no_fields_single_block_other_expr.move:8:13
8 │ let g = G ();
│ ^ Unused local variable 'g'. Consider removing or prefixing with an underscore: '_g'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E13001]: feature is not supported in specified edition
┌─ tests/move_check/expansion/pack_no_fields_single_block_other_expr.move:8:17
8 │ let g = G ();
│ ^^^^ Positional fields are not supported by current edition 'legacy', only '2024.alpha' support this feature
│ ^^^^ Positional fields are not supported by current edition 'legacy', only '2024.alpha' and '2024.beta' support this feature
= You can update the edition in the 'Move.toml', or via command line flag if invoking the compiler directly.

Expand All @@ -42,6 +74,14 @@ error[E03013]: positional call mismatch
8 │ let g = G ();
│ ^^^^ Invalid struct instantiation. Named struct declarations require named instantiations.

warning[W09002]: unused variable
┌─ tests/move_check/expansion/pack_no_fields_single_block_other_expr.move:9:13
9 │ let g = G { {} };
│ ^ Unused local variable 'g'. Consider removing or prefixing with an underscore: '_g'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E01002]: unexpected token
┌─ tests/move_check/expansion/pack_no_fields_single_block_other_expr.move:9:21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E13001]: feature is not supported in specified edition
┌─ tests/move_check/expansion/type_arguments_on_field_access.move:6:9
6 │ x.f<u64>;
│ ^^^^^^^^ Method syntax is not supported by current edition 'legacy', only '2024.alpha' support this feature
│ ^^^^^^^^ Method syntax is not supported by current edition 'legacy', only '2024.alpha' and '2024.beta' support this feature
= You can update the edition in the 'Move.toml', or via command line flag if invoking the compiler directly.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E13001]: feature is not supported in specified edition
┌─ tests/move_check/expansion/unpack_assign_other_expr.move:6:9
6 │ S ( f ) = S { f: 0 };
│ ^^^^^^^ Positional fields are not supported by current edition 'legacy', only '2024.alpha' support this feature
│ ^^^^^^^ Positional fields are not supported by current edition 'legacy', only '2024.alpha' and '2024.beta' support this feature
= You can update the edition in the 'Move.toml', or via command line flag if invoking the compiler directly.

Expand Down Expand Up @@ -51,7 +51,7 @@ error[E13001]: feature is not supported in specified edition
┌─ tests/move_check/expansion/unpack_assign_other_expr.move:11:9
11 │ G () = G {};
│ ^^^^ Positional fields are not supported by current edition 'legacy', only '2024.alpha' support this feature
│ ^^^^ Positional fields are not supported by current edition 'legacy', only '2024.alpha' and '2024.beta' support this feature
= You can update the edition in the 'Move.toml', or via command line flag if invoking the compiler directly.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,19 @@ error[E04007]: incompatible types
11 │
12 │ ╭ ╭ fun everything<T>(u: u64): u64 {

warning[W09002]: unused variable
┌─ tests/move_check/parser/function_incomplete.move:20:13
20 │ let n1 = just_ret<u64>(42);
│ ^^ Unused local variable 'n1'. Consider removing or prefixing with an underscore: '_n1'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

warning[W09002]: unused variable
┌─ tests/move_check/parser/function_incomplete.move:21:13
21 │ let n2 = everything<u64>(42);
│ ^^ Unused local variable 'n2'. Consider removing or prefixing with an underscore: '_n2'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
warning[W09002]: unused variable
┌─ tests/move_check/parser/invalid_unpack_assign_lhs_mdot_no_addr.move:3:13
3 │ let f = 0;
│ ^ Unused local variable 'f'. Consider removing or prefixing with an underscore: '_f'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E01002]: unexpected token
┌─ tests/move_check/parser/invalid_unpack_assign_lhs_mdot_no_addr.move:4:14
Expand All @@ -7,6 +15,14 @@ error[E01002]: unexpected token
│ Unexpected '::'
│ Expected ';'

warning[W09002]: unused variable
┌─ tests/move_check/parser/invalid_unpack_assign_lhs_mdot_no_addr.move:6:13
6 │ let f = 0;
│ ^ Unused local variable 'f'. Consider removing or prefixing with an underscore: '_f'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E03006]: unexpected name in this position
┌─ tests/move_check/parser/invalid_unpack_assign_lhs_mdot_no_addr.move:7:9
Expand All @@ -16,6 +32,14 @@ error[E03006]: unexpected name in this position
│ Unexpected module identifier. A module identifier is not a valid type
│ Expected a module name

warning[W09002]: unused variable
┌─ tests/move_check/parser/invalid_unpack_assign_lhs_mdot_no_addr.move:9:13
9 │ let f = 0;
│ ^ Unused local variable 'f'. Consider removing or prefixing with an underscore: '_f'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E04005]: expected a single type
┌─ tests/move_check/parser/invalid_unpack_assign_lhs_mdot_no_addr.move:10:9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ error[E13001]: feature is not supported in specified edition
┌─ tests/move_check/parser/invalid_unpack_assign_rhs_not_fields.move:9:9
9 │ X::S () = 0;
│ ^^^^^^^ Positional fields are not supported by current edition 'legacy', only '2024.alpha' support this feature
│ ^^^^^^^ Positional fields are not supported by current edition 'legacy', only '2024.alpha' and '2024.beta' support this feature
= You can update the edition in the 'Move.toml', or via command line flag if invoking the compiler directly.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
warning[W09002]: unused variable
┌─ tests/move_check/parser/missing_angle_brace_close.move:3:13
3 │ let x = t<u64;
│ ^ Unused local variable 'x'. Consider removing or prefixing with an underscore: '_x'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E03006]: unexpected name in this position
┌─ tests/move_check/parser/missing_angle_brace_close.move:3:17
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
warning[W09003]: unused assignment
warning[W09002]: unused variable
┌─ tests/move_check/parser/use_inner_scope_invalid.move:4:13
4 │ let x = 0;
│ ^ Unused assignment for variable 'x'. Consider removing, replacing with '_', or prefixing with '_' (e.g., '_x')
│ ^ Unused local variable 'x'. Consider removing or prefixing with an underscore: '_x'
= This warning can be suppressed with '#[allow(unused_assignment)]' applied to the 'module' or module member ('const', 'fun', or 'struct')
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E01002]: unexpected token
┌─ tests/move_check/parser/use_inner_scope_invalid.move:6:9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ error[E13001]: feature is not supported in specified edition
┌─ tests/move_check/parser/use_with_modifiers_exp.move:3:16
3 │ public use fun bar as X.baz;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Method syntax is not supported by current edition 'legacy', only '2024.alpha' and '2024.beta' support this feature
^^^^^^^^^^^^^^^^^^^^^ Method syntax is not supported by current edition 'legacy', only '2024.alpha' and '2024.beta' support this feature
= You can update the edition in the 'Move.toml', or via command line flag if invoking the compiler directly.

Expand All @@ -32,3 +32,4 @@ error[E01002]: unexpected token
5 │ }
│ ^ Invalid code unit. Expected 'address' or 'module'. Got '}'

Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
warning[W09002]: unused variable
┌─ tests/move_check/parser/vector_literal_unclosed_args.move:4:13
4 │ let v = vector[
│ ^ Unused local variable 'v'. Consider removing or prefixing with an underscore: '_v'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E04010]: cannot infer type
┌─ tests/move_check/parser/vector_literal_unclosed_args.move:4:17
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
warning[W09003]: unused assignment
warning[W09002]: unused variable
┌─ tests/move_check/parser/vector_literal_unclosed_type_args.move:4:13
4 │ let v = vector<u64[0, 1];
│ ^ Unused assignment for variable 'v'. Consider removing, replacing with '_', or prefixing with '_' (e.g., '_v')
│ ^ Unused local variable 'v'. Consider removing or prefixing with an underscore: '_v'
= This warning can be suppressed with '#[allow(unused_assignment)]' applied to the 'module' or module member ('const', 'fun', or 'struct')
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E01002]: unexpected token
┌─ tests/move_check/parser/vector_literal_unclosed_type_args.move:4:27
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
warning[W09002]: unused variable
┌─ tests/move_check/parser/vector_space_after_less.move:4:13
4 │ let a = vector < 100;
│ ^ Unused local variable 'a'. Consider removing or prefixing with an underscore: '_a'
= This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')

error[E03008]: too few type arguments
┌─ tests/move_check/parser/vector_space_after_less.move:4:17
Expand Down

0 comments on commit 0bdb762

Please sign in to comment.