From 900ccb96399f77ad50617e6db58d35f557f4992d Mon Sep 17 00:00:00 2001 From: Teng Zhang Date: Sun, 15 Dec 2024 16:35:02 -0800 Subject: [PATCH] update baseline --- ...s_api__tests__state_test__test_get_account_module.json | 2 +- .../tests/build_tests/build_with_warnings/args.exp | 8 ++++---- .../move-cli/tests/build_tests/dependency_chain/args.exp | 2 +- .../tools/move-cli/tests/build_tests/dev_address/args.exp | 2 +- .../tests/build_tests/disassemble_script/args.exp | 3 +++ .../tests/build_tests/empty_module_no_deps/args.exp | 2 +- .../tests/build_tests/include_exclude_stdlib/args.exp | 8 ++++---- 7 files changed, 15 insertions(+), 12 deletions(-) diff --git a/api/goldens/aptos_api__tests__state_test__test_get_account_module.json b/api/goldens/aptos_api__tests__state_test__test_get_account_module.json index c1776be65eea1..8840a0ca30091 100644 --- a/api/goldens/aptos_api__tests__state_test__test_get_account_module.json +++ b/api/goldens/aptos_api__tests__state_test__test_get_account_module.json @@ -1,5 +1,5 @@ { - "bytecode": "0xa11ceb0b0700000a0c010002020208030a30053a23075d7b08d8012006f8010a1082029a010a9c030d0ca9037e0da704060fad040400020003060000040700000500010001000602030001000704050001000804060001000907080001000a04030001000b09050001000c090600010205070301080002050301080101060800010301050206080006080101010106080100076163636f756e74066f626a6563740467756964044755494402494406637265617465096372656174655f69640c6372656174696f6e5f6e756d0f63726561746f725f616464726573730565715f69640269640f69645f6372656174696f6e5f6e756d1269645f63726561746f725f616464726573730461646472000000000000000000000000000000000000000000000000000000000000000103080000000000000000126170746f733a3a6d657461646174615f763185010100000000000000001d45475549445f47454e455241544f525f4e4f545f5055424c49534845445b475549442067656e657261746f72206d757374206265207075626c6973686564206168656164206f66206669727374207573616765206f6620606372656174655f776974685f6361706162696c697479602066756e6374696f6e2e00000002010a080101020207030d0500030000050d0a01140c020a02060100000000000000160b01150b020b001201120002010100000a040b010b00120102020100000a050b00100010011402030100000a050b00100010021402040100000a050b0010000b012102050100000a040b0010001402060100000a040b0010011402070100000a040b00100214020000010001010000000100", + "bytecode": "0xa11ceb0b0700000a0b010002020208030a30053a23075d7b08d8012010f801b9010ab1030d0cbe037e0dbc04060fc2040400000001060000030700000600010001000703040001000406020001000806070001000908090001000206040001000a0a020001000b0a0700010205070301080001030205030108010001060800010502060800060801010101060801046775696404475549440269640249440c6372656174696f6e5f6e756d046164647206637265617465096372656174655f69640f63726561746f725f616464726573730565715f69640f69645f6372656174696f6e5f6e756d1269645f63726561746f725f61646472657373076163636f756e74066f626a656374000000000000000000000000000000000000000000000000000000000000000114636f6d70696c6174696f6e5f6d65746164617461090003322e3003322e31126170746f733a3a6d657461646174615f763185010100000000000000001d45475549445f47454e455241544f525f4e4f545f5055424c49534845445b475549442067656e657261746f72206d757374206265207075626c6973686564206168656164206f66206669727374207573616765206f6620606372656174655f776974685f6361706162696c697479602066756e6374696f6e2e00000002010208010102020403050500030000020d0a01140c020a02060100000000000000160b01150b020b0012011200020101000005040b010b001201020201000005050b001000100114020301000005050b001000100214020401000005050b0010000b0121020501000005040b00100014020601000005040b00100114020701000005040b0010021402000001000101000c000d00", "abi": { "address": "0x1", "name": "guid", diff --git a/third_party/move/tools/move-cli/tests/build_tests/build_with_warnings/args.exp b/third_party/move/tools/move-cli/tests/build_tests/build_with_warnings/args.exp index 6fa3311b0bcf1..ad68bb1cf49e7 100644 --- a/third_party/move/tools/move-cli/tests/build_tests/build_with_warnings/args.exp +++ b/third_party/move/tools/move-cli/tests/build_tests/build_with_warnings/args.exp @@ -1,10 +1,10 @@ Command `build`: BUILDING Test -warning[W09002]: unused variable +warning: Unused parameter `x`. Consider removing or prefixing with an underscore: `_x` ┌─ ./sources/m.move:2:16 │ 2 │ public fun foo(x: u64): u64 { - │ ^ Unused parameter 'x'. Consider removing or prefixing with an underscore: '_x' + │ ^ Command `disassemble --package Test --name m`: // Move bytecode v7 @@ -17,9 +17,9 @@ B0: 1: Ret } } -warning[W09002]: unused variable +warning: Unused parameter `x`. Consider removing or prefixing with an underscore: `_x` ┌─ ./sources/m.move:2:16 │ 2 │ public fun foo(x: u64): u64 { - │ ^ Unused parameter 'x'. Consider removing or prefixing with an underscore: '_x' + │ ^ diff --git a/third_party/move/tools/move-cli/tests/build_tests/dependency_chain/args.exp b/third_party/move/tools/move-cli/tests/build_tests/dependency_chain/args.exp index 9a73b9bf3e1b9..c7d471836cae1 100644 --- a/third_party/move/tools/move-cli/tests/build_tests/dependency_chain/args.exp +++ b/third_party/move/tools/move-cli/tests/build_tests/dependency_chain/args.exp @@ -2,7 +2,7 @@ Command `build -v`: INCLUDING DEPENDENCY Bar INCLUDING DEPENDENCY Foo BUILDING A -warning[W02016]: unknown attribute +warning: unknown attribute ┌─ ./sources/A.move:1:3 │ 1 │ #[evm_contract] // for passing evm test flavor diff --git a/third_party/move/tools/move-cli/tests/build_tests/dev_address/args.exp b/third_party/move/tools/move-cli/tests/build_tests/dev_address/args.exp index 7d092c5569e34..863c4b04b1d3f 100644 --- a/third_party/move/tools/move-cli/tests/build_tests/dev_address/args.exp +++ b/third_party/move/tools/move-cli/tests/build_tests/dev_address/args.exp @@ -1,6 +1,6 @@ Command `build -v -d`: BUILDING A -warning[W02016]: unknown attribute +warning: unknown attribute ┌─ ./sources/A.move:1:3 │ 1 │ #[evm_contract] // for passing evm test flavor diff --git a/third_party/move/tools/move-cli/tests/build_tests/disassemble_script/args.exp b/third_party/move/tools/move-cli/tests/build_tests/disassemble_script/args.exp index 76bcfb0f7b759..86cf2ad5118a2 100644 --- a/third_party/move/tools/move-cli/tests/build_tests/disassemble_script/args.exp +++ b/third_party/move/tools/move-cli/tests/build_tests/disassemble_script/args.exp @@ -6,5 +6,8 @@ script { main() /* def_idx: 0 */ { B0: 0: Ret +B1: + 1: LdU64(0) + 2: Abort } } diff --git a/third_party/move/tools/move-cli/tests/build_tests/empty_module_no_deps/args.exp b/third_party/move/tools/move-cli/tests/build_tests/empty_module_no_deps/args.exp index 47591834e98be..aa157124c3100 100644 --- a/third_party/move/tools/move-cli/tests/build_tests/empty_module_no_deps/args.exp +++ b/third_party/move/tools/move-cli/tests/build_tests/empty_module_no_deps/args.exp @@ -1,6 +1,6 @@ Command `build -v`: BUILDING A -warning[W02016]: unknown attribute +warning: unknown attribute ┌─ ./sources/A.move:1:3 │ 1 │ #[evm_contract] // for passing evm test flavor diff --git a/third_party/move/tools/move-cli/tests/build_tests/include_exclude_stdlib/args.exp b/third_party/move/tools/move-cli/tests/build_tests/include_exclude_stdlib/args.exp index b3ec13040ea17..a05920318f25e 100644 --- a/third_party/move/tools/move-cli/tests/build_tests/include_exclude_stdlib/args.exp +++ b/third_party/move/tools/move-cli/tests/build_tests/include_exclude_stdlib/args.exp @@ -1,18 +1,18 @@ Command `build -v`: BUILDING build_include_exclude_stdlib -warning[W02016]: unknown attribute +warning: unknown attribute ┌─ ./sources/UseSigner.move:1:3 │ 1 │ #[evm_contract] // for passing evm test flavor │ ^^^^^^^^^^^^ Attribute name 'evm_contract' is unknown (use --skip-attribute-checks CLI option to ignore); known attributes are '{"bytecode_instruction", "deprecated", "expected_failure", "lint::skip", "native_interface", "test", "test_only", "verify_only"}'. -error[E03002]: unbound module +error: unbound module ┌─ ./sources/UseSigner.move:3:7 │ 3 │ use std::signer; │ ^^^^^^^^^^^ Invalid 'use'. Unbound module: '(std=0x1)::signer' -error[E03002]: unbound module +error: unbound module ┌─ ./sources/UseSigner.move:6:5 │ 6 │ signer::address_of(account) @@ -21,7 +21,7 @@ error[E03002]: unbound module Command `-d -v build`: INCLUDING DEPENDENCY MoveStdlib BUILDING build_include_exclude_stdlib -warning[W02016]: unknown attribute +warning: unknown attribute ┌─ ./sources/UseSigner.move:1:3 │ 1 │ #[evm_contract] // for passing evm test flavor