diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 248581f5ac..aa8f9d7fc0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -98,13 +98,11 @@ jobs: run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Cache Dependencies uses: Swatinem/rust-cache@v2 - - name: Build WASM tests - run: wasm-pack test --node crates/fe -- --workspace --no-run - name: Run WASM tests # wasm-pack needs a Cargo.toml with a 'package' field. # (see https://github.com/rustwasm/wasm-pack/issues/642) # This will still run all tests in the workspace. - run: wasm-pack test --node crates/fe -- --workspace + run: wasm-pack test --node crates/fe --workspace release: # Only run this when we push a tag diff --git a/Cargo.lock b/Cargo.lock index b1f7b2161e..eb1499cc22 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,17 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "ahash" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" +dependencies = [ + "cfg-if 1.0.0", + "once_cell", + "version_check", +] + [[package]] name = "aho-corasick" version = "0.7.20" @@ -46,6 +57,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +[[package]] +name = "base16ct" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" + [[package]] name = "base64" version = "0.10.1" @@ -88,18 +105,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "bstr" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" -dependencies = [ - "lazy_static", - "memchr", - "regex-automata", - "serde", -] - [[package]] name = "bumpalo" version = "3.12.0" @@ -126,9 +131,9 @@ checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" [[package]] name = "camino" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c77df041dc383319cc661b428b6961a005db4d6808d5e12536931b1ca9556055" +checksum = "6031a462f977dd38968b6f23378356512feeace69cef817e1a4475108093cec3" [[package]] name = "cast" @@ -232,6 +237,17 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "colored" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3616f750b84d8f0de8a58bda93e08e2a81ad3f523089b05f1dffecab48c6cbd" +dependencies = [ + "atty", + "lazy_static", + "winapi", +] + [[package]] name = "console_error_panic_hook" version = "0.1.7" @@ -242,6 +258,18 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "const-oid" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "520fbf3c07483f94e3e3ca9d0cfd913d7718ef2483d2cfd91c0d9e91474ab913" + +[[package]] +name = "convert_case" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" + [[package]] name = "cpufeatures" version = "0.2.5" @@ -289,9 +317,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.6" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" +checksum = "cf2b3e8478797446514c91ef04bafcb59faba183e621ad488df88983cc14128c" dependencies = [ "cfg-if 1.0.0", "crossbeam-utils", @@ -299,9 +327,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" +checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" dependencies = [ "cfg-if 1.0.0", "crossbeam-epoch", @@ -310,9 +338,9 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.13" +version = "0.9.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01a9af1f4c2ef74bb8aa1f7e19706bc72d03598c8a570bb5de72243c7a9d9d5a" +checksum = "46bd5f3f85273295a9d14aedfb86f6aadbff6d8f5295c4a9edb08e819dcf5695" dependencies = [ "autocfg", "cfg-if 1.0.0", @@ -323,9 +351,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.14" +version = "0.8.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" +checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b" dependencies = [ "cfg-if 1.0.0", ] @@ -336,6 +364,18 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" +[[package]] +name = "crypto-bigint" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef" +dependencies = [ + "generic-array", + "rand_core", + "subtle", + "zeroize", +] + [[package]] name = "crypto-common" version = "0.1.6" @@ -348,13 +388,12 @@ dependencies = [ [[package]] name = "csv" -version = "1.1.6" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22813a6dc45b335f9bade10bf7271dc477e81113e89eb251a0bc2a8a81c536e1" +checksum = "af91f40b7355f82b0a891f50e70399475945bb0b0da4f1700ce60761c9d3e359" dependencies = [ - "bstr", "csv-core", - "itoa 0.4.8", + "itoa", "ryu", "serde", ] @@ -378,14 +417,25 @@ dependencies = [ "syn", ] +[[package]] +name = "der" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1a467a65c5e759bce6e65eaf91cc29f466cdc57cb65777bd646872a8a1fd4de" +dependencies = [ + "const-oid", +] + [[package]] name = "derive_more" version = "0.99.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" dependencies = [ + "convert_case", "proc-macro2", "quote", + "rustc_version 0.4.0", "syn", ] @@ -409,6 +459,28 @@ checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" dependencies = [ "block-buffer", "crypto-common", + "subtle", +] + +[[package]] +name = "dir-test" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "035f15b4ae5cc91ca448fe9668799e3d9b09fd7381a7004e232769ff0efabb79" +dependencies = [ + "dir-test-macros", +] + +[[package]] +name = "dir-test-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15699f408d3f58a1259b624d3c127721a442555136933d33cf387b81f5c9c89c" +dependencies = [ + "glob", + "proc-macro2", + "quote", + "syn", ] [[package]] @@ -417,12 +489,54 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4f046ad836ddb46a42ae6219f11208b61ef9f1b96f105a88da4ae0dd5f1b89e6" +[[package]] +name = "ecdsa" +version = "0.14.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413301934810f597c1d19ca71c8710e99a3f1ba28a0d2ebc01551a2daeea3c5c" +dependencies = [ + "der", + "elliptic-curve", + "rfc6979", + "signature", +] + [[package]] name = "either" version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +[[package]] +name = "elliptic-curve" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7bb888ab5300a19b8e5bceef25ac745ad065f3c9f7efc6de1b91958110891d3" +dependencies = [ + "base16ct", + "crypto-bigint", + "der", + "digest", + "ff", + "generic-array", + "group", + "rand_core", + "sec1", + "subtle", + "zeroize", +] + +[[package]] +name = "enumn" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e88bcb3a067a6555d577aba299e75eff9942da276e6506fc6274327daa026132" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "ethabi" version = "18.0.0" @@ -540,9 +654,11 @@ name = "fe" version = "0.21.0-alpha" dependencies = [ "clap 3.2.23", + "colored", "fe-common", "fe-driver", "fe-parser", + "fe-test-runner", "fs_extra", "include_dir", "indexmap", @@ -633,7 +749,7 @@ dependencies = [ "fe-driver", "fe-test-files", "fe-yulc", - "getrandom 0.2.8", + "getrandom", "hex", "indexmap", "insta", @@ -647,6 +763,16 @@ dependencies = [ name = "fe-compiler-tests" version = "0.21.0-alpha" dependencies = [ + "dir-test", + "fe-driver", + "fe-test-runner", +] + +[[package]] +name = "fe-compiler-tests-legacy" +version = "0.21.0-alpha" +dependencies = [ + "dir-test", "ethabi", "evm", "evm-runtime", @@ -662,7 +788,7 @@ dependencies = [ "pretty_assertions", "primitive-types", "proptest", - "rand 0.7.3", + "rand", "rstest", "wasm-bindgen-test", "yultsur", @@ -678,6 +804,7 @@ dependencies = [ "fe-common", "fe-mir", "fe-parser", + "fe-test-runner", "fe-yulc", "indexmap", "serde_json", @@ -742,6 +869,17 @@ dependencies = [ "include_dir", ] +[[package]] +name = "fe-test-runner" +version = "0.21.0-alpha" +dependencies = [ + "bytes", + "colored", + "getrandom", + "hex", + "revm", +] + [[package]] name = "fe-yulc" version = "0.21.0-alpha" @@ -751,6 +889,16 @@ dependencies = [ "solc", ] +[[package]] +name = "ff" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d013fc25338cc558c5c2cfbad646908fb23591e2404481826742b651c9af7160" +dependencies = [ + "rand_core", + "subtle", +] + [[package]] name = "fixed-hash" version = "0.8.0" @@ -758,7 +906,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", - "rand 0.8.5", + "rand", "rustc-hex", "static_assertions", ] @@ -808,26 +956,32 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.1.16" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" dependencies = [ "cfg-if 1.0.0", + "js-sys", "libc", - "wasi 0.9.0+wasi-snapshot-preview1", + "wasi", + "wasm-bindgen", ] [[package]] -name = "getrandom" -version = "0.2.8" +name = "glob" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" + +[[package]] +name = "group" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dfbfb3a6cfbd390d5c9564ab283a0349b9b9fcd46a706c1eb10e0db70bfbac7" dependencies = [ - "cfg-if 1.0.0", - "js-sys", - "libc", - "wasi 0.11.0+wasi-snapshot-preview1", - "wasm-bindgen", + "ff", + "rand_core", + "subtle", ] [[package]] @@ -857,6 +1011,15 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +[[package]] +name = "hashbrown" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +dependencies = [ + "ahash", +] + [[package]] name = "heck" version = "0.3.3" @@ -896,6 +1059,21 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hex-literal" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebdb29d2ea9ed0083cd8cece49bbd968021bd99b0849edb4a9a7ee0fdf6a4e0" + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest", +] + [[package]] name = "id-arena" version = "2.2.1" @@ -978,14 +1156,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" dependencies = [ "autocfg", - "hashbrown", + "hashbrown 0.12.3", ] [[package]] name = "insta" -version = "1.26.0" +version = "1.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6f0f08b46e4379744de2ab67aa8f7de3ffd1da3e275adc41fcc82053ede46ff" +checksum = "fea5b3894afe466b4bcf0388630fc15e11938a6074af0cd637c825ba2ec8a099" dependencies = [ "lazy_static", "linked-hash-map", @@ -1013,15 +1191,9 @@ dependencies = [ [[package]] name = "itoa" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" - -[[package]] -name = "itoa" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" +checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" [[package]] name = "js-sys" @@ -1032,6 +1204,19 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "k256" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72c1e0b51e7ec0a97369623508396067a486bd0cbed95a2659a4b863d28cfc8b" +dependencies = [ + "cfg-if 1.0.0", + "ecdsa", + "elliptic-curve", + "sha2", + "sha3", +] + [[package]] name = "keccak" version = "0.1.3" @@ -1046,6 +1231,9 @@ name = "lazy_static" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +dependencies = [ + "spin", +] [[package]] name = "libc" @@ -1053,6 +1241,12 @@ version = "0.2.139" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" +[[package]] +name = "libm" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "348108ab3fba42ec82ff6e9564fc4ca0247bdccdc68dd8af9764bbc79c3c8ffb" + [[package]] name = "linked-hash-map" version = "0.5.6" @@ -1109,20 +1303,25 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memoffset" -version = "0.7.1" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" +checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" dependencies = [ "autocfg", ] [[package]] -name = "nom8" -version = "0.2.0" +name = "num" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae01545c9c7fc4486ab7debaf2aad7003ac19431791868fb2e8066df97fad2f8" +checksum = "43db66d1170d347f9a065114077f7dccb00c1b9478c89384490a3425279a4606" dependencies = [ - "memchr", + "num-bigint", + "num-complex", + "num-integer", + "num-iter", + "num-rational", + "num-traits", ] [[package]] @@ -1136,6 +1335,15 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-complex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d" +dependencies = [ + "num-traits", +] + [[package]] name = "num-integer" version = "0.1.45" @@ -1146,6 +1354,29 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-iter" +version = "0.1.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" +dependencies = [ + "autocfg", + "num-bigint", + "num-integer", + "num-traits", +] + [[package]] name = "num-traits" version = "0.2.15" @@ -1153,6 +1384,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" dependencies = [ "autocfg", + "libm", ] [[package]] @@ -1167,9 +1399,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.17.0" +version = "1.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66" +checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" [[package]] name = "oorandom" @@ -1194,9 +1426,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.3.0" +version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3840933452adf7b3b9145e27086a5a3376c619dca1a21b1e5a5af0d54979bed" +checksum = "637935964ff85a605d114591d4d2c13c5d1ba2806dae97cea6bf180238a749ac" dependencies = [ "arrayvec", "bitvec", @@ -1246,9 +1478,9 @@ dependencies = [ [[package]] name = "petgraph" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5014253a1331579ce62aa67443b4a658c5e7dd03d4bc6d302b94474888143" +checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4" dependencies = [ "fixedbitset", "indexmap", @@ -1316,9 +1548,9 @@ dependencies = [ [[package]] name = "proc-macro-crate" -version = "1.3.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66618389e4ec1c7afe67d51a9bf34ff9236480f8d51e7489b7d5ab0303c13f34" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" dependencies = [ "once_cell", "toml_edit", @@ -1359,19 +1591,20 @@ dependencies = [ [[package]] name = "proptest" -version = "1.0.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0d9cc07f18492d879586c92b485def06bc850da3118075cd45d50e9c95b0e5" +checksum = "29f1b898011ce9595050a68e60f90bad083ff2987a695a42357134c8381fba70" dependencies = [ "bitflags", "byteorder", "lazy_static", "num-traits", "quick-error", - "rand 0.8.5", - "rand_chacha 0.3.1", + "rand", + "rand_chacha", "rand_xorshift", "regex-syntax", + "unarray", ] [[package]] @@ -1395,19 +1628,6 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" -[[package]] -name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", -] - [[package]] name = "rand" version = "0.8.5" @@ -1415,18 +1635,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", + "rand_chacha", + "rand_core", ] [[package]] @@ -1436,16 +1646,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", + "rand_core", ] [[package]] @@ -1454,16 +1655,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.8", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core 0.5.1", + "getrandom", ] [[package]] @@ -1472,14 +1664,14 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f" dependencies = [ - "rand_core 0.6.4", + "rand_core", ] [[package]] name = "rayon" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db3a213adf02b3bcfd2d3846bb41cb22857d131789e01df434fb7e7bc0759b7" +checksum = "1d2df5196e37bcc87abebc0053e20787d73847bb33134a69841207dd0a47f03b" dependencies = [ "either", "rayon-core", @@ -1487,9 +1679,9 @@ dependencies = [ [[package]] name = "rayon-core" -version = "1.10.2" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "356a0625f1954f730c0201cdab48611198dc6ce21f4acff55089b5a78e6e835b" +checksum = "4b8f95bd6966f5c87776639160a66bd8ab9895d9d4ab01ddba9fc60661aebe8d" dependencies = [ "crossbeam-channel", "crossbeam-deque", @@ -1514,18 +1706,91 @@ dependencies = [ "regex-syntax", ] -[[package]] -name = "regex-automata" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" - [[package]] name = "regex-syntax" version = "0.6.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" +[[package]] +name = "revm" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "284747ad0324ed0e805dcf8f412e2beccb7a547fbd84f0607865001b8719c515" +dependencies = [ + "auto_impl", + "revm-interpreter", + "revm-precompile", +] + +[[package]] +name = "revm-interpreter" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db1b86f1d21d1852b40ec8ac9b6d31ac8a7c000875155809d41ce68f6369dc56" +dependencies = [ + "derive_more", + "enumn", + "revm-primitives", + "sha3", +] + +[[package]] +name = "revm-precompile" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66837781605c6dcb7f07ad87604eeab3119dae9149d69d8839073dd6f188673d" +dependencies = [ + "k256", + "num", + "once_cell", + "revm-primitives", + "ripemd", + "secp256k1", + "sha2", + "sha3", + "substrate-bn", +] + +[[package]] +name = "revm-primitives" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad165d3f69e4d14405d82c6625864ee48c162dcebdf170322e6dd80398226a9e" +dependencies = [ + "auto_impl", + "bytes", + "derive_more", + "enumn", + "fixed-hash", + "hashbrown 0.13.2", + "hex", + "hex-literal", + "rlp", + "ruint", + "sha3", +] + +[[package]] +name = "rfc6979" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7743f17af12fa0b03b803ba12cd6a8d9483a587e89c69445e3909655c0b9fabb" +dependencies = [ + "crypto-bigint", + "hmac", + "zeroize", +] + +[[package]] +name = "ripemd" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd124222d17ad93a644ed9d011a40f4fb64aa54275c08cc216524a9ea82fb09f" +dependencies = [ + "digest", +] + [[package]] name = "rlp" version = "0.5.2" @@ -1568,10 +1833,30 @@ dependencies = [ "cfg-if 0.1.10", "proc-macro2", "quote", - "rustc_version", + "rustc_version 0.2.3", "syn", ] +[[package]] +name = "ruint" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ad3a104dc8c3867f653b0fec89c65e00b0ceb752718ad282177a7e0f33257ac" +dependencies = [ + "derive_more", + "primitive-types", + "rlp", + "ruint-macro", + "rustc_version 0.4.0", + "thiserror", +] + +[[package]] +name = "ruint-macro" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62cc5760263ea229d367e7dff3c0cbf09e4797a125bd87059a6c095804f3b2d1" + [[package]] name = "rustc-hash" version = "1.1.0" @@ -1593,6 +1878,15 @@ dependencies = [ "semver 0.9.0", ] +[[package]] +name = "rustc_version" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +dependencies = [ + "semver 1.0.16", +] + [[package]] name = "rustversion" version = "1.0.11" @@ -1601,9 +1895,9 @@ checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70" [[package]] name = "ryu" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" +checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" [[package]] name = "salsa" @@ -1679,6 +1973,37 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +[[package]] +name = "sec1" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" +dependencies = [ + "base16ct", + "der", + "generic-array", + "subtle", + "zeroize", +] + +[[package]] +name = "secp256k1" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4124a35fe33ae14259c490fd70fa199a32b9ce9502f2ee6bc4f81ec06fa65894" +dependencies = [ + "secp256k1-sys", +] + +[[package]] +name = "secp256k1-sys" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "642a62736682fdd8c71da0eb273e453c8ac74e33b9fb310e22ba5b03ec7651ff" +dependencies = [ + "cc", +] + [[package]] name = "semver" version = "0.9.0" @@ -1732,11 +2057,11 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.92" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7434af0dc1cbd59268aa98b4c22c131c0584d2232f6fb166efb993e2832e896a" +checksum = "cad406b69c91885b5107daf2c29572f6c8cdb3c66826821e286c533490c0bc76" dependencies = [ - "itoa 1.0.5", + "itoa", "ryu", "serde", ] @@ -1750,6 +2075,17 @@ dependencies = [ "serde", ] +[[package]] +name = "sha2" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" +dependencies = [ + "cfg-if 1.0.0", + "cpufeatures", + "digest", +] + [[package]] name = "sha3" version = "0.10.6" @@ -1760,6 +2096,16 @@ dependencies = [ "keccak", ] +[[package]] +name = "signature" +version = "1.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" +dependencies = [ + "digest", + "rand_core", +] + [[package]] name = "similar" version = "2.2.1" @@ -1790,6 +2136,12 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "spin" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" + [[package]] name = "static_assertions" version = "1.1.0" @@ -1824,11 +2176,30 @@ dependencies = [ "syn", ] +[[package]] +name = "substrate-bn" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b5bbfa79abbae15dd642ea8176a21a635ff3c00059961d1ea27ad04e5b441c" +dependencies = [ + "byteorder", + "crunchy", + "lazy_static", + "rand", + "rustc-hex", +] + +[[package]] +name = "subtle" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" + [[package]] name = "syn" -version = "1.0.107" +version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ "proc-macro2", "quote", @@ -1915,19 +2286,19 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "0.5.1" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4553f467ac8e3d374bc9a177a26801e5d0f9b211aa1673fb137a403afd1c9cf5" +checksum = "3ab8ed2edee10b50132aed5f331333428b011c99402b5a534154ed15746f9622" [[package]] name = "toml_edit" -version = "0.18.1" +version = "0.19.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56c59d8dd7d0dcbc6428bf7aa2f0e823e26e43b3c9aca15bbc9475d23e5fa12b" +checksum = "9a1eb0622d28f4b9c90adc4ea4b2b46b47663fde9ac5fafcb14a1369d5508825" dependencies = [ "indexmap", - "nom8", "toml_datetime", + "winnow", ] [[package]] @@ -1958,6 +2329,12 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "unarray" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" + [[package]] name = "unescape" version = "0.1.0" @@ -1966,9 +2343,9 @@ checksum = "ccb97dac3243214f8d8507998906ca3e2e0b900bf9bf4870477f125b82e68f6e" [[package]] name = "unicode-ident" -version = "1.0.6" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" +checksum = "775c11906edafc97bc378816b94585fbd9a054eabaf86fdd0ced94af449efab7" [[package]] name = "unicode-segmentation" @@ -2017,12 +2394,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -2160,6 +2531,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "winnow" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c95fb4ff192527911dd18eb138ac30908e7165b8944e528b6af93aa4c842d345" +dependencies = [ + "memchr", +] + [[package]] name = "wyz" version = "0.5.1" @@ -2191,3 +2571,9 @@ source = "git+https://github.com/g-r-a-n-t/yultsur?rev=ae85470#ae854702e90b2c70e dependencies = [ "indenter", ] + +[[package]] +name = "zeroize" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c394b5bd0c6f669e7275d9c20aa90ae064cb22e75a1cad54e1b34088034b149f" diff --git a/crates/analyzer/src/db.rs b/crates/analyzer/src/db.rs index 949b50333d..f094a51ecc 100644 --- a/crates/analyzer/src/db.rs +++ b/crates/analyzer/src/db.rs @@ -1,7 +1,7 @@ use crate::namespace::items::{ - self, ContractFieldId, ContractId, DepGraphWrapper, EnumVariantKind, FunctionId, FunctionSigId, - ImplId, IngotId, Item, ModuleConstantId, ModuleId, StructFieldId, StructId, TraitId, - TypeAliasId, + self, AttributeId, ContractFieldId, ContractId, DepGraphWrapper, EnumVariantKind, FunctionId, + FunctionSigId, ImplId, IngotId, Item, ModuleConstantId, ModuleId, StructFieldId, StructId, + TraitId, TypeAliasId, }; use crate::namespace::types::{self, Type, TypeId}; use crate::{ @@ -35,6 +35,8 @@ pub trait AnalyzerDb: SourceDb + Upcast + UpcastMut #[salsa::interned] fn intern_enum(&self, data: Rc) -> EnumId; #[salsa::interned] + fn intern_attribute(&self, data: Rc) -> AttributeId; + #[salsa::interned] fn intern_enum_variant(&self, data: Rc) -> EnumVariantId; #[salsa::interned] fn intern_trait(&self, data: Rc) -> TraitId; @@ -106,6 +108,8 @@ pub trait AnalyzerDb: SourceDb + Upcast + UpcastMut fn module_parent_module(&self, module: ModuleId) -> Option; #[salsa::invoke(queries::module::module_submodules)] fn module_submodules(&self, module: ModuleId) -> Rc<[ModuleId]>; + #[salsa::invoke(queries::module::module_tests)] + fn module_tests(&self, module: ModuleId) -> Vec; // Module Constant #[salsa::cycle(queries::module::module_constant_type_cycle)] diff --git a/crates/analyzer/src/db/queries/functions.rs b/crates/analyzer/src/db/queries/functions.rs index 1de975869f..13d5575d31 100644 --- a/crates/analyzer/src/db/queries/functions.rs +++ b/crates/analyzer/src/db/queries/functions.rs @@ -33,7 +33,8 @@ pub fn function_signature( let mut names = HashMap::new(); let mut labels = HashMap::new(); - function.data(db).ast.kind.generic_params.kind.iter().fold( + let sig_ast = &function.data(db).ast.kind; + sig_ast.generic_params.kind.iter().fold( HashMap::>::new(), |mut accum, param| { if let Some(previous) = accum.get(¶m.name()) { @@ -56,7 +57,7 @@ pub fn function_signature( "generic function parameters aren't yet supported outside of struct functions", vec![Label::primary( function.data(db).ast.kind.generic_params.span, - "This can not appear here", + "this cannot appear here", )], vec!["Hint: Struct functions can have generic parameters".into()], ); diff --git a/crates/analyzer/src/db/queries/module.rs b/crates/analyzer/src/db/queries/module.rs index a4a10e15ad..6584c23277 100644 --- a/crates/analyzer/src/db/queries/module.rs +++ b/crates/analyzer/src/db/queries/module.rs @@ -2,8 +2,9 @@ use crate::context::{Analysis, AnalyzerContext, Constant, NamedThing}; use crate::display::Displayable; use crate::errors::{self, ConstEvalError, TypeError}; use crate::namespace::items::{ - Contract, ContractId, Enum, Function, Impl, ImplId, Item, ModuleConstant, ModuleConstantId, - ModuleId, ModuleSource, Struct, StructId, Trait, TraitId, TypeAlias, TypeDef, + Attribute, Contract, ContractId, Enum, Function, FunctionId, Impl, ImplId, Item, + ModuleConstant, ModuleConstantId, ModuleId, ModuleSource, Struct, StructId, Trait, TraitId, + TypeAlias, TypeDef, }; use crate::namespace::scopes::ItemScope; use crate::namespace::types::{self, TypeId}; @@ -100,6 +101,12 @@ pub fn module_all_items(db: &dyn AnalyzerDb, module: ModuleId) -> Rc<[Item]> { ast: node.clone(), module, })))), + ast::ModuleStmt::Attribute(node) => { + Some(Item::Attribute(db.intern_attribute(Rc::new(Attribute { + ast: node.clone(), + module, + })))) + } ast::ModuleStmt::Pragma(_) | ast::ModuleStmt::Use(_) | ast::ModuleStmt::Impl(_) => None, ast::ModuleStmt::ParseError(_) => None, }) @@ -161,6 +168,36 @@ pub fn module_item_map( let mut map = IndexMap::::new(); for item in module.all_items(db).iter() { + if matches!(item, Item::Attribute(_)) { + continue; + } + + if let Item::Function(function) = item { + let sig_ast = &function.data(db).ast.kind.sig.kind; + if function.is_test(db) { + if !sig_ast.generic_params.kind.is_empty() { + diagnostics.push(errors::fancy_error( + "generic function parameters are not supported on test functions", + vec![Label::primary( + sig_ast.generic_params.span, + "this cannot appear here", + )], + vec!["Hint: remove the generic parameters".into()], + )); + } + + if !sig_ast.args.is_empty() { + let span = + sig_ast.args.first().unwrap().span + sig_ast.args.last().unwrap().span; + diagnostics.push(errors::fancy_error( + "function parameters are not supported on test functions", + vec![Label::primary(span, "this cannot appear here")], + vec!["Hint: remove the parameters".into()], + )); + } + } + } + let item_name = item.name(db); if let Some(global_item) = global_items.get(&item_name) { let kind = item.item_kind_display_name(); @@ -710,3 +747,12 @@ fn resolve_use_tree( } } } + +pub fn module_tests(db: &dyn AnalyzerDb, ingot: ModuleId) -> Vec { + ingot + .all_functions(db) + .iter() + .copied() + .filter(|function| function.is_test(db)) + .collect() +} diff --git a/crates/analyzer/src/namespace/items.rs b/crates/analyzer/src/namespace/items.rs index 05a446ae3d..8126314902 100644 --- a/crates/analyzer/src/namespace/items.rs +++ b/crates/analyzer/src/namespace/items.rs @@ -41,6 +41,7 @@ pub enum Item { // We can't represent keccak256's arg type yet. BuiltinFunction(builtins::GlobalFunction), Intrinsic(builtins::Intrinsic), + Attribute(AttributeId), } impl Item { @@ -56,6 +57,7 @@ impl Item { Item::Constant(id) => id.name(db), Item::Ingot(id) => id.name(db), Item::Module(id) => id.name(db), + Item::Attribute(id) => id.name(db), } } @@ -70,7 +72,8 @@ impl Item { | Item::Intrinsic(_) | Item::Ingot(_) | Item::Module(_) - | Item::Impl(_) => None, + | Item::Impl(_) + | Item::Attribute(_) => None, } } @@ -83,6 +86,7 @@ impl Item { | Self::Intrinsic(_) | Self::Impl(_) | Self::GenericType(_) => true, + Self::Attribute(_) => false, Self::Type(id) => id.is_public(db), Self::Trait(id) => id.is_public(db), Self::Function(id) => id.is_public(db), @@ -102,6 +106,7 @@ impl Item { | Item::Function(_) | Item::Constant(_) | Item::Ingot(_) + | Item::Attribute(_) | Item::Module(_) => false, } } @@ -125,6 +130,7 @@ impl Item { Item::Constant(_) => "constant", Item::Ingot(_) => "ingot", Item::Module(_) => "module", + Item::Attribute(_) => "attribute", } } @@ -139,6 +145,7 @@ impl Item { | Item::Function(_) | Item::Constant(_) | Item::BuiltinFunction(_) + | Item::Attribute(_) | Item::Intrinsic(_) => Rc::new(indexmap! {}), } } @@ -152,6 +159,7 @@ impl Item { Item::Function(id) => Some(id.parent(db)), Item::Constant(id) => Some(id.parent(db)), Item::Module(id) => Some(id.parent(db)), + Item::Attribute(id) => Some(id.parent(db)), Item::BuiltinFunction(_) | Item::Intrinsic(_) | Item::Ingot(_) => None, } } @@ -244,12 +252,32 @@ impl Item { Item::Trait(id) => id.sink_diagnostics(db, sink), Item::Impl(id) => id.sink_diagnostics(db, sink), Item::Function(id) => id.sink_diagnostics(db, sink), - Item::GenericType(_) | Item::BuiltinFunction(_) | Item::Intrinsic(_) => {} + Item::GenericType(_) + | Item::BuiltinFunction(_) + | Item::Intrinsic(_) + | Item::Attribute(_) => {} Item::Constant(id) => id.sink_diagnostics(db, sink), Item::Ingot(id) => id.sink_diagnostics(db, sink), Item::Module(id) => id.sink_diagnostics(db, sink), } } + + pub fn attributes(&self, db: &dyn AnalyzerDb) -> Vec { + if let Some(Item::Module(module)) = self.parent(db) { + let mut attributes = vec![]; + for item in module.all_items(db).iter() { + if let Item::Attribute(attribute) = item { + attributes.push(*attribute); + } else if item == self { + return attributes; + } else { + attributes = vec![]; + } + } + } + + vec![] + } } pub fn builtin_items() -> IndexMap { @@ -523,6 +551,10 @@ impl ModuleId { db.module_used_item_map(*self).value } + pub fn tests(&self, db: &dyn AnalyzerDb) -> Vec { + db.module_tests(*self) + } + /// Returns `true` if the `item` is in scope of the module. pub fn is_in_scope(&self, db: &dyn AnalyzerDb, item: Item) -> bool { if let Some(val) = item.module(db) { @@ -678,6 +710,20 @@ impl ModuleId { .collect::>() } + /// All functions, including from submodules and including duplicates + pub fn all_functions(&self, db: &dyn AnalyzerDb) -> Vec { + self.items(db) + .iter() + .filter_map(|(_, item)| { + if let Item::Function(function) = item { + Some(*function) + } else { + None + } + }) + .collect() + } + /// Returns the map of ingot deps, built-ins, and the ingot itself as /// "ingot". pub fn global_items(&self, db: &dyn AnalyzerDb) -> IndexMap { @@ -1298,6 +1344,13 @@ impl FunctionId { pub fn is_contract_func(self, db: &dyn AnalyzerDb) -> bool { self.sig(db).is_contract_func(db) } + + pub fn is_test(&self, db: &dyn AnalyzerDb) -> bool { + Item::Function(*self) + .attributes(db) + .iter() + .any(|attribute| attribute.name(db) == "test") + } } trait FunctionsAsItems { @@ -1460,6 +1513,35 @@ impl StructFieldId { } } +#[derive(Debug, PartialEq, Eq, Hash, Clone)] +pub struct Attribute { + pub ast: Node, + pub module: ModuleId, +} +#[derive(Default, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Copy, Clone)] +pub struct AttributeId(pub(crate) u32); +impl_intern_key!(AttributeId); + +impl AttributeId { + pub fn data(self, db: &dyn AnalyzerDb) -> Rc { + db.lookup_intern_attribute(self) + } + pub fn span(self, db: &dyn AnalyzerDb) -> Span { + self.data(db).ast.span + } + pub fn name(self, db: &dyn AnalyzerDb) -> SmolStr { + self.data(db).ast.kind.to_owned() + } + + pub fn module(self, db: &dyn AnalyzerDb) -> ModuleId { + self.data(db).module + } + + pub fn parent(self, db: &dyn AnalyzerDb) -> Item { + Item::Module(self.data(db).module) + } +} + #[derive(Debug, PartialEq, Eq, Hash, Clone)] pub struct Enum { pub ast: Node, diff --git a/crates/analyzer/src/traversal/expressions.rs b/crates/analyzer/src/traversal/expressions.rs index f6b85700ab..d1e9e49f03 100644 --- a/crates/analyzer/src/traversal/expressions.rs +++ b/crates/analyzer/src/traversal/expressions.rs @@ -1173,6 +1173,7 @@ fn expr_call_named_thing( ), ))), NamedThing::Item(Item::Impl(_)) => unreachable!(), + NamedThing::Item(Item::Attribute(_)) => unreachable!(), NamedThing::Item(Item::Ingot(_)) => Err(FatalError::new(context.error( &format!("`{}` is not callable", func.kind), func.span, @@ -1378,6 +1379,14 @@ fn expr_call_pure( ); } + if function.is_test(context.db()) { + context.fancy_error( + &format!("`{}` is a test function", fn_name), + vec![Label::primary(call_span, "test functions are not callable")], + vec![], + ); + } + let sig = function.signature(context.db()); let name_span = function.name_span(context.db()); validate_named_args(context, &fn_name, name_span, args, &sig.params)?; diff --git a/crates/analyzer/tests/analysis.rs b/crates/analyzer/tests/analysis.rs index c9fc402d83..9d4ee524d7 100644 --- a/crates/analyzer/tests/analysis.rs +++ b/crates/analyzer/tests/analysis.rs @@ -385,6 +385,7 @@ fn build_snapshot(db: &dyn AnalyzerDb, module: items::ModuleId) -> String { | Item::BuiltinFunction(_) | Item::Intrinsic(_) | Item::Ingot(_) + | Item::Attribute(_) | Item::Module(_) => vec![], }) .collect::>(); diff --git a/crates/analyzer/tests/errors.rs b/crates/analyzer/tests/errors.rs index 257e30b6e2..1e109116e3 100644 --- a/crates/analyzer/tests/errors.rs +++ b/crates/analyzer/tests/errors.rs @@ -354,3 +354,6 @@ test_file! { invalid_repeat_length } test_file! { invalid_struct_pub_qualifier } test_file! { mut_mistakes } test_file! { invalid_comparisons } + +test_file! { _test_fn_call } +test_file! { _test_fn_params } diff --git a/crates/analyzer/tests/snapshots/analysis__abi_decode_complex.snap b/crates/analyzer/tests/snapshots/analysis__abi_decode_complex.snap index 3b482d000a..9b799d97ee 100644 --- a/crates/analyzer/tests/snapshots/analysis__abi_decode_complex.snap +++ b/crates/analyzer/tests/snapshots/analysis__abi_decode_complex.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ abi_decode_complex.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__abi_encoding_stress.snap b/crates/analyzer/tests/snapshots/analysis__abi_encoding_stress.snap index 34e26f3bde..8eaa7574b4 100644 --- a/crates/analyzer/tests/snapshots/analysis__abi_encoding_stress.snap +++ b/crates/analyzer/tests/snapshots/analysis__abi_encoding_stress.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ abi_encoding_stress.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__address_bytes10_map.snap b/crates/analyzer/tests/snapshots/analysis__address_bytes10_map.snap index 4503ede18a..a52e9efa77 100644 --- a/crates/analyzer/tests/snapshots/analysis__address_bytes10_map.snap +++ b/crates/analyzer/tests/snapshots/analysis__address_bytes10_map.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ address_bytes10_map.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__assert.snap b/crates/analyzer/tests/snapshots/analysis__assert.snap index 6372d23d02..c6571e55bf 100644 --- a/crates/analyzer/tests/snapshots/analysis__assert.snap +++ b/crates/analyzer/tests/snapshots/analysis__assert.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ assert.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__associated_fns.snap b/crates/analyzer/tests/snapshots/analysis__associated_fns.snap index 79b6c497f6..075f4c3c98 100644 --- a/crates/analyzer/tests/snapshots/analysis__associated_fns.snap +++ b/crates/analyzer/tests/snapshots/analysis__associated_fns.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ associated_fns.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__aug_assign.snap b/crates/analyzer/tests/snapshots/analysis__aug_assign.snap index 62667e4722..bc8676d6ad 100644 --- a/crates/analyzer/tests/snapshots/analysis__aug_assign.snap +++ b/crates/analyzer/tests/snapshots/analysis__aug_assign.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ aug_assign.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__balances.snap b/crates/analyzer/tests/snapshots/analysis__balances.snap index f84c368ccc..6cc3c3092d 100644 --- a/crates/analyzer/tests/snapshots/analysis__balances.snap +++ b/crates/analyzer/tests/snapshots/analysis__balances.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ balances.fe:4:5 diff --git a/crates/analyzer/tests/snapshots/analysis__base_tuple.snap b/crates/analyzer/tests/snapshots/analysis__base_tuple.snap index db0c6fe2d5..225319ec3b 100644 --- a/crates/analyzer/tests/snapshots/analysis__base_tuple.snap +++ b/crates/analyzer/tests/snapshots/analysis__base_tuple.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ base_tuple.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__basic_ingot.snap b/crates/analyzer/tests/snapshots/analysis__basic_ingot.snap index cbd7e50d0d..faa276926b 100644 --- a/crates/analyzer/tests/snapshots/analysis__basic_ingot.snap +++ b/crates/analyzer/tests/snapshots/analysis__basic_ingot.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: snapshot - --- note: ┌─ ingots/basic_ingot/src/main.fe:9:5 @@ -221,53 +220,53 @@ note: note: - ┌─ ingots/basic_ingot/src/bing.fe:4:5 + ┌─ ingots/basic_ingot/src/bing.fe:5:5 │ -4 │ pub my_address: address +5 │ pub my_address: address │ ^^^^^^^^^^^^^^^^^^^^^^^ address note: - ┌─ ingots/basic_ingot/src/bing.fe:7:1 - │ -7 │ ╭ pub fn get_42_backend() -> u256 { -8 │ │ return std::evm::add(21, 21) -9 │ │ } - │ ╰─^ params: [] -> u256 + ┌─ ingots/basic_ingot/src/bing.fe:8:1 + │ + 8 │ ╭ pub fn get_42_backend() -> u256 { + 9 │ │ return std::evm::add(21, 21) +10 │ │ } + │ ╰─^ params: [] -> u256 note: - ┌─ ingots/basic_ingot/src/bing.fe:8:26 + ┌─ ingots/basic_ingot/src/bing.fe:9:26 │ -8 │ return std::evm::add(21, 21) +9 │ return std::evm::add(21, 21) │ ^^ ^^ u256 │ │ │ u256 note: - ┌─ ingots/basic_ingot/src/bing.fe:8:12 + ┌─ ingots/basic_ingot/src/bing.fe:9:12 │ -8 │ return std::evm::add(21, 21) +9 │ return std::evm::add(21, 21) │ ^^^^^^^^^^^^^^^^^^^^^ u256 note: - ┌─ ingots/basic_ingot/src/bing.fe:12:5 + ┌─ ingots/basic_ingot/src/bing.fe:13:5 │ -12 │ ╭ pub fn add(self, _ x: u256, _ y: u256) -> u256 { -13 │ │ return x + y -14 │ │ } +13 │ ╭ pub fn add(self, _ x: u256, _ y: u256) -> u256 { +14 │ │ return x + y +15 │ │ } │ ╰─────^ params: [self, { label: Some("_"), name: x, typ: u256 }, { label: Some("_"), name: y, typ: u256 }] -> u256 note: - ┌─ ingots/basic_ingot/src/bing.fe:13:16 + ┌─ ingots/basic_ingot/src/bing.fe:14:16 │ -13 │ return x + y +14 │ return x + y │ ^ ^ u256 │ │ │ u256 note: - ┌─ ingots/basic_ingot/src/bing.fe:13:16 + ┌─ ingots/basic_ingot/src/bing.fe:14:16 │ -13 │ return x + y +14 │ return x + y │ ^^^^^ u256 diff --git a/crates/analyzer/tests/snapshots/analysis__call_statement_with_args.snap b/crates/analyzer/tests/snapshots/analysis__call_statement_with_args.snap index bc5b61d9a6..69da7e5be8 100644 --- a/crates/analyzer/tests/snapshots/analysis__call_statement_with_args.snap +++ b/crates/analyzer/tests/snapshots/analysis__call_statement_with_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ call_statement_with_args.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__call_statement_with_args_2.snap b/crates/analyzer/tests/snapshots/analysis__call_statement_with_args_2.snap index 787e5f6a27..a6168c2578 100644 --- a/crates/analyzer/tests/snapshots/analysis__call_statement_with_args_2.snap +++ b/crates/analyzer/tests/snapshots/analysis__call_statement_with_args_2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ call_statement_with_args_2.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__call_statement_without_args.snap b/crates/analyzer/tests/snapshots/analysis__call_statement_without_args.snap index 6150e84213..e0a3e0f276 100644 --- a/crates/analyzer/tests/snapshots/analysis__call_statement_without_args.snap +++ b/crates/analyzer/tests/snapshots/analysis__call_statement_without_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ call_statement_without_args.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__checked_arithmetic.snap b/crates/analyzer/tests/snapshots/analysis__checked_arithmetic.snap index 3eac2dd6df..c75ff28097 100644 --- a/crates/analyzer/tests/snapshots/analysis__checked_arithmetic.snap +++ b/crates/analyzer/tests/snapshots/analysis__checked_arithmetic.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ checked_arithmetic.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__const_generics.snap b/crates/analyzer/tests/snapshots/analysis__const_generics.snap index ee828c54a1..8fcfca3bf9 100644 --- a/crates/analyzer/tests/snapshots/analysis__const_generics.snap +++ b/crates/analyzer/tests/snapshots/analysis__const_generics.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ const_generics.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__const_local.snap b/crates/analyzer/tests/snapshots/analysis__const_local.snap index 74dc7d665b..df4d111d03 100644 --- a/crates/analyzer/tests/snapshots/analysis__const_local.snap +++ b/crates/analyzer/tests/snapshots/analysis__const_local.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ const_local.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__constructor.snap b/crates/analyzer/tests/snapshots/analysis__constructor.snap index adaceb886f..5d3a83f003 100644 --- a/crates/analyzer/tests/snapshots/analysis__constructor.snap +++ b/crates/analyzer/tests/snapshots/analysis__constructor.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ constructor.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__create2_contract.snap b/crates/analyzer/tests/snapshots/analysis__create2_contract.snap index aa24c2a385..984dde36f9 100644 --- a/crates/analyzer/tests/snapshots/analysis__create2_contract.snap +++ b/crates/analyzer/tests/snapshots/analysis__create2_contract.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ create2_contract.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__create_contract.snap b/crates/analyzer/tests/snapshots/analysis__create_contract.snap index 757d455b4f..f27efbd565 100644 --- a/crates/analyzer/tests/snapshots/analysis__create_contract.snap +++ b/crates/analyzer/tests/snapshots/analysis__create_contract.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ create_contract.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__create_contract_from_init.snap b/crates/analyzer/tests/snapshots/analysis__create_contract_from_init.snap index 5ae5d2fa5f..716a9ac2f0 100644 --- a/crates/analyzer/tests/snapshots/analysis__create_contract_from_init.snap +++ b/crates/analyzer/tests/snapshots/analysis__create_contract_from_init.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ create_contract_from_init.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__data_copying_stress.snap b/crates/analyzer/tests/snapshots/analysis__data_copying_stress.snap index 287231ac54..9f252d3263 100644 --- a/crates/analyzer/tests/snapshots/analysis__data_copying_stress.snap +++ b/crates/analyzer/tests/snapshots/analysis__data_copying_stress.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ data_copying_stress.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__empty.snap b/crates/analyzer/tests/snapshots/analysis__empty.snap index 1c42536e4a..f8398ebae9 100644 --- a/crates/analyzer/tests/snapshots/analysis__empty.snap +++ b/crates/analyzer/tests/snapshots/analysis__empty.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ empty.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__enum_match.snap b/crates/analyzer/tests/snapshots/analysis__enum_match.snap index b3e0bb15b9..90da78bcab 100644 --- a/crates/analyzer/tests/snapshots/analysis__enum_match.snap +++ b/crates/analyzer/tests/snapshots/analysis__enum_match.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ enum_match.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__enums.snap b/crates/analyzer/tests/snapshots/analysis__enums.snap index c85e21fbc4..b0361fcd88 100644 --- a/crates/analyzer/tests/snapshots/analysis__enums.snap +++ b/crates/analyzer/tests/snapshots/analysis__enums.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ enums.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__erc20_token.snap b/crates/analyzer/tests/snapshots/analysis__erc20_token.snap index 764d9bf3a1..6cc8d89076 100644 --- a/crates/analyzer/tests/snapshots/analysis__erc20_token.snap +++ b/crates/analyzer/tests/snapshots/analysis__erc20_token.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ erc20_token.fe:3:5 diff --git a/crates/analyzer/tests/snapshots/analysis__external_contract.snap b/crates/analyzer/tests/snapshots/analysis__external_contract.snap index 7d477be3e6..975655609a 100644 --- a/crates/analyzer/tests/snapshots/analysis__external_contract.snap +++ b/crates/analyzer/tests/snapshots/analysis__external_contract.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ external_contract.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__for_loop_with_break.snap b/crates/analyzer/tests/snapshots/analysis__for_loop_with_break.snap index 791ee22313..67575f7746 100644 --- a/crates/analyzer/tests/snapshots/analysis__for_loop_with_break.snap +++ b/crates/analyzer/tests/snapshots/analysis__for_loop_with_break.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ for_loop_with_break.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__for_loop_with_continue.snap b/crates/analyzer/tests/snapshots/analysis__for_loop_with_continue.snap index 63f00f3655..f5fb07f2f3 100644 --- a/crates/analyzer/tests/snapshots/analysis__for_loop_with_continue.snap +++ b/crates/analyzer/tests/snapshots/analysis__for_loop_with_continue.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ for_loop_with_continue.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__for_loop_with_static_array.snap b/crates/analyzer/tests/snapshots/analysis__for_loop_with_static_array.snap index 507398565e..6eb15d7f0e 100644 --- a/crates/analyzer/tests/snapshots/analysis__for_loop_with_static_array.snap +++ b/crates/analyzer/tests/snapshots/analysis__for_loop_with_static_array.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ for_loop_with_static_array.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__guest_book.snap b/crates/analyzer/tests/snapshots/analysis__guest_book.snap index 870c8c7d93..241f94ba0b 100644 --- a/crates/analyzer/tests/snapshots/analysis__guest_book.snap +++ b/crates/analyzer/tests/snapshots/analysis__guest_book.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ guest_book.fe:3:5 diff --git a/crates/analyzer/tests/snapshots/analysis__if_statement.snap b/crates/analyzer/tests/snapshots/analysis__if_statement.snap index 65044826a1..7221c5beaa 100644 --- a/crates/analyzer/tests/snapshots/analysis__if_statement.snap +++ b/crates/analyzer/tests/snapshots/analysis__if_statement.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ if_statement.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__if_statement_2.snap b/crates/analyzer/tests/snapshots/analysis__if_statement_2.snap index 8cd438f8f7..ea7c6d10c3 100644 --- a/crates/analyzer/tests/snapshots/analysis__if_statement_2.snap +++ b/crates/analyzer/tests/snapshots/analysis__if_statement_2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ if_statement_2.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__if_statement_with_block_declaration.snap b/crates/analyzer/tests/snapshots/analysis__if_statement_with_block_declaration.snap index 0eab265537..f8a65eaf85 100644 --- a/crates/analyzer/tests/snapshots/analysis__if_statement_with_block_declaration.snap +++ b/crates/analyzer/tests/snapshots/analysis__if_statement_with_block_declaration.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ if_statement_with_block_declaration.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__keccak.snap b/crates/analyzer/tests/snapshots/analysis__keccak.snap index 93d830c0d3..01ce122366 100644 --- a/crates/analyzer/tests/snapshots/analysis__keccak.snap +++ b/crates/analyzer/tests/snapshots/analysis__keccak.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ keccak.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__math.snap b/crates/analyzer/tests/snapshots/analysis__math.snap index 665931779b..a5e09d16ca 100644 --- a/crates/analyzer/tests/snapshots/analysis__math.snap +++ b/crates/analyzer/tests/snapshots/analysis__math.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ math.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__module_const.snap b/crates/analyzer/tests/snapshots/analysis__module_const.snap index 7b4e91b2f6..16c647fd41 100644 --- a/crates/analyzer/tests/snapshots/analysis__module_const.snap +++ b/crates/analyzer/tests/snapshots/analysis__module_const.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ module_const.fe:1:1 diff --git a/crates/analyzer/tests/snapshots/analysis__module_level_events.snap b/crates/analyzer/tests/snapshots/analysis__module_level_events.snap index 0c8b1ffcd5..37768e92d8 100644 --- a/crates/analyzer/tests/snapshots/analysis__module_level_events.snap +++ b/crates/analyzer/tests/snapshots/analysis__module_level_events.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ module_level_events.fe:3:5 diff --git a/crates/analyzer/tests/snapshots/analysis__multi_param.snap b/crates/analyzer/tests/snapshots/analysis__multi_param.snap index d0a9048d5d..927f77753a 100644 --- a/crates/analyzer/tests/snapshots/analysis__multi_param.snap +++ b/crates/analyzer/tests/snapshots/analysis__multi_param.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ multi_param.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__nested_map.snap b/crates/analyzer/tests/snapshots/analysis__nested_map.snap index d81b7731cf..574d22a3a0 100644 --- a/crates/analyzer/tests/snapshots/analysis__nested_map.snap +++ b/crates/analyzer/tests/snapshots/analysis__nested_map.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ nested_map.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__numeric_sizes.snap b/crates/analyzer/tests/snapshots/analysis__numeric_sizes.snap index 09032339f4..16cdec43e7 100644 --- a/crates/analyzer/tests/snapshots/analysis__numeric_sizes.snap +++ b/crates/analyzer/tests/snapshots/analysis__numeric_sizes.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ numeric_sizes.fe:3:1 diff --git a/crates/analyzer/tests/snapshots/analysis__ownable.snap b/crates/analyzer/tests/snapshots/analysis__ownable.snap index 4b1650e1f9..5e0b8fd589 100644 --- a/crates/analyzer/tests/snapshots/analysis__ownable.snap +++ b/crates/analyzer/tests/snapshots/analysis__ownable.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ ownable.fe:3:5 diff --git a/crates/analyzer/tests/snapshots/analysis__pure_fn_standalone.snap b/crates/analyzer/tests/snapshots/analysis__pure_fn_standalone.snap index f80f9f95bc..2b09bb6100 100644 --- a/crates/analyzer/tests/snapshots/analysis__pure_fn_standalone.snap +++ b/crates/analyzer/tests/snapshots/analysis__pure_fn_standalone.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ pure_fn_standalone.fe:1:1 diff --git a/crates/analyzer/tests/snapshots/analysis__return_addition_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_addition_i256.snap index d0ed43a2f3..1198a3e69d 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_addition_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_addition_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_addition_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_addition_u128.snap b/crates/analyzer/tests/snapshots/analysis__return_addition_u128.snap index 4381c3f146..2268652bf2 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_addition_u128.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_addition_u128.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_addition_u128.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_addition_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_addition_u256.snap index 4f9b26a986..b83b053f3d 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_addition_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_addition_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_addition_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_array.snap b/crates/analyzer/tests/snapshots/analysis__return_array.snap index 2863554c7d..b5b7711a99 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_array.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_array.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_array.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bitwiseand_u128.snap b/crates/analyzer/tests/snapshots/analysis__return_bitwiseand_u128.snap index 427d39ae45..fad1859d99 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bitwiseand_u128.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bitwiseand_u128.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bitwiseand_u128.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bitwiseand_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_bitwiseand_u256.snap index 0082a764e2..779d371a7c 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bitwiseand_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bitwiseand_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bitwiseand_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bitwiseor_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_bitwiseor_u256.snap index d3659a5c10..f3c2a55549 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bitwiseor_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bitwiseor_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bitwiseor_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bitwiseshl_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_bitwiseshl_u256.snap index cce9b48058..4e8dfdf0be 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bitwiseshl_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bitwiseshl_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bitwiseshl_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bitwiseshr_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_bitwiseshr_i256.snap index 3d7e20a7bc..2d428a4eea 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bitwiseshr_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bitwiseshr_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bitwiseshr_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bitwiseshr_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_bitwiseshr_u256.snap index 95a8fafd09..447ec60406 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bitwiseshr_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bitwiseshr_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bitwiseshr_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bitwisexor_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_bitwisexor_u256.snap index 13ba9b7b99..5967cb9fee 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bitwisexor_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bitwisexor_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bitwisexor_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bool_false.snap b/crates/analyzer/tests/snapshots/analysis__return_bool_false.snap index 7aaf74d095..b10358d780 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bool_false.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bool_false.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bool_false.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bool_inverted.snap b/crates/analyzer/tests/snapshots/analysis__return_bool_inverted.snap index 55f3247edb..380e7f311e 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bool_inverted.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bool_inverted.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bool_inverted.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bool_op_and.snap b/crates/analyzer/tests/snapshots/analysis__return_bool_op_and.snap index c41a59b061..1102e3ffec 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bool_op_and.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bool_op_and.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bool_op_and.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bool_op_or.snap b/crates/analyzer/tests/snapshots/analysis__return_bool_op_or.snap index 9c5b368b4b..7a6c318296 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bool_op_or.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bool_op_or.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bool_op_or.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_bool_true.snap b/crates/analyzer/tests/snapshots/analysis__return_bool_true.snap index 7758942363..5b81e84b31 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_bool_true.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_bool_true.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_bool_true.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_complex_struct.snap b/crates/analyzer/tests/snapshots/analysis__return_complex_struct.snap index 19d522d563..ad6f847fa2 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_complex_struct.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_complex_struct.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_complex_struct.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_division_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_division_i256.snap index b077bcb805..a0e745556f 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_division_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_division_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_division_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_division_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_division_u256.snap index 7bd677ad86..78a0ae21e7 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_division_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_division_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_division_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_empty_tuple.snap b/crates/analyzer/tests/snapshots/analysis__return_empty_tuple.snap index 72193edde1..8e60f6ffb2 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_empty_tuple.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_empty_tuple.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_unit.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_eq_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_eq_u256.snap index 7a90de302d..a90f4980a6 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_eq_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_eq_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_eq_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_gt_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_gt_i256.snap index c419304192..4144b2147e 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_gt_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_gt_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_gt_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_gt_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_gt_u256.snap index 038ce3db0e..dca15b4722 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_gt_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_gt_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_gt_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_gte_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_gte_i256.snap index c243159af2..5272c92958 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_gte_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_gte_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_gte_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_gte_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_gte_u256.snap index 52922d4e04..3df5be6185 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_gte_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_gte_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_gte_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_i128_cast.snap b/crates/analyzer/tests/snapshots/analysis__return_i128_cast.snap index 240cb23c23..6013c4cef2 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_i128_cast.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_i128_cast.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_i128_cast.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_i256.snap index 8147869e7e..6a4304b718 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_identity_u128.snap b/crates/analyzer/tests/snapshots/analysis__return_identity_u128.snap index 0ca8531699..e73915ea6b 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_identity_u128.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_identity_u128.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_identity_u128.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_identity_u16.snap b/crates/analyzer/tests/snapshots/analysis__return_identity_u16.snap index 09b5a23c76..bd81e90a4d 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_identity_u16.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_identity_u16.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_identity_u16.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_identity_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_identity_u256.snap index e0bb569c04..932e87f970 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_identity_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_identity_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_identity_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_identity_u32.snap b/crates/analyzer/tests/snapshots/analysis__return_identity_u32.snap index 4775487917..3bede70b34 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_identity_u32.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_identity_u32.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_identity_u32.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_identity_u64.snap b/crates/analyzer/tests/snapshots/analysis__return_identity_u64.snap index 61806bc9fd..a2bb108539 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_identity_u64.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_identity_u64.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_identity_u64.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_identity_u8.snap b/crates/analyzer/tests/snapshots/analysis__return_identity_u8.snap index 1ee738b5c4..9bbdf0e309 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_identity_u8.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_identity_u8.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_identity_u8.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_lt_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_lt_i256.snap index 2f64a913dc..b8c82c7762 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_lt_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_lt_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_lt_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_lt_u128.snap b/crates/analyzer/tests/snapshots/analysis__return_lt_u128.snap index 0be4229dd8..a2f10db538 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_lt_u128.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_lt_u128.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_lt_u128.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_lt_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_lt_u256.snap index 7802f013b4..6eaf7cc3f5 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_lt_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_lt_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_lt_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_lte_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_lte_i256.snap index 9dc36d8ab4..35146165c9 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_lte_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_lte_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_lte_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_lte_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_lte_u256.snap index 71bdbeeddf..387eefc737 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_lte_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_lte_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_lte_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_mod_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_mod_i256.snap index e81660e700..90387738bf 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_mod_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_mod_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_mod_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_mod_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_mod_u256.snap index 335549e14a..103006f1a9 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_mod_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_mod_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_mod_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_msg_sig.snap b/crates/analyzer/tests/snapshots/analysis__return_msg_sig.snap index c1d68d0b19..dbc3bbebb8 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_msg_sig.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_msg_sig.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_msg_sig.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_multiplication_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_multiplication_i256.snap index 7ec855cfa2..5ca837f7da 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_multiplication_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_multiplication_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_multiplication_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_multiplication_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_multiplication_u256.snap index 9e1711cc99..da4c7b1759 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_multiplication_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_multiplication_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_multiplication_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_noteq_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_noteq_u256.snap index 8ba2555952..9cc8544545 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_noteq_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_noteq_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_noteq_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_pow_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_pow_i256.snap index 9f6a6ff5df..6daf140cdf 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_pow_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_pow_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_pow_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_pow_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_pow_u256.snap index e95641b3c6..4555432d73 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_pow_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_pow_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_pow_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_subtraction_i256.snap b/crates/analyzer/tests/snapshots/analysis__return_subtraction_i256.snap index 18b7e13c66..a63beba4f6 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_subtraction_i256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_subtraction_i256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_subtraction_i256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_subtraction_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_subtraction_u256.snap index 3da3767469..3350a58204 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_subtraction_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_subtraction_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_subtraction_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_u128_cast.snap b/crates/analyzer/tests/snapshots/analysis__return_u128_cast.snap index 2004eb6875..aa22f89e5f 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_u128_cast.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_u128_cast.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_u128_cast.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_u256.snap b/crates/analyzer/tests/snapshots/analysis__return_u256.snap index cb30664e81..735a738ddb 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_u256.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_u256.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_u256_from_called_fn.snap b/crates/analyzer/tests/snapshots/analysis__return_u256_from_called_fn.snap index 74e74e34da..77190ab253 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_u256_from_called_fn.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_u256_from_called_fn.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_u256_from_called_fn.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__return_u256_from_called_fn_with_args.snap b/crates/analyzer/tests/snapshots/analysis__return_u256_from_called_fn_with_args.snap index 1712f41610..3699fdc4cb 100644 --- a/crates/analyzer/tests/snapshots/analysis__return_u256_from_called_fn_with_args.snap +++ b/crates/analyzer/tests/snapshots/analysis__return_u256_from_called_fn_with_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ return_u256_from_called_fn_with_args.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__revert.snap b/crates/analyzer/tests/snapshots/analysis__revert.snap index 36d480e6e9..e21efb136c 100644 --- a/crates/analyzer/tests/snapshots/analysis__revert.snap +++ b/crates/analyzer/tests/snapshots/analysis__revert.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ revert.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__self_address.snap b/crates/analyzer/tests/snapshots/analysis__self_address.snap index 6964541896..0d99c81607 100644 --- a/crates/analyzer/tests/snapshots/analysis__self_address.snap +++ b/crates/analyzer/tests/snapshots/analysis__self_address.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ self_address.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__send_value.snap b/crates/analyzer/tests/snapshots/analysis__send_value.snap index 05456d8362..ef3f336468 100644 --- a/crates/analyzer/tests/snapshots/analysis__send_value.snap +++ b/crates/analyzer/tests/snapshots/analysis__send_value.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ send_value.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__simple_open_auction.snap b/crates/analyzer/tests/snapshots/analysis__simple_open_auction.snap index d926726bec..c080ac5f7a 100644 --- a/crates/analyzer/tests/snapshots/analysis__simple_open_auction.snap +++ b/crates/analyzer/tests/snapshots/analysis__simple_open_auction.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ simple_open_auction.fe:7:5 diff --git a/crates/analyzer/tests/snapshots/analysis__sized_vals_in_sto.snap b/crates/analyzer/tests/snapshots/analysis__sized_vals_in_sto.snap index 9db60dfeb3..af6ea39a4e 100644 --- a/crates/analyzer/tests/snapshots/analysis__sized_vals_in_sto.snap +++ b/crates/analyzer/tests/snapshots/analysis__sized_vals_in_sto.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ sized_vals_in_sto.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__strings.snap b/crates/analyzer/tests/snapshots/analysis__strings.snap index 4b18a53d7e..c9faf763d6 100644 --- a/crates/analyzer/tests/snapshots/analysis__strings.snap +++ b/crates/analyzer/tests/snapshots/analysis__strings.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ strings.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__struct_fns.snap b/crates/analyzer/tests/snapshots/analysis__struct_fns.snap index 35be34f8b0..251c1a9f81 100644 --- a/crates/analyzer/tests/snapshots/analysis__struct_fns.snap +++ b/crates/analyzer/tests/snapshots/analysis__struct_fns.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ struct_fns.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__structs.snap b/crates/analyzer/tests/snapshots/analysis__structs.snap index afdd91c92e..9f9b97eedc 100644 --- a/crates/analyzer/tests/snapshots/analysis__structs.snap +++ b/crates/analyzer/tests/snapshots/analysis__structs.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ structs.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__ternary_expression.snap b/crates/analyzer/tests/snapshots/analysis__ternary_expression.snap index 02fffb0ecd..18eb2427ab 100644 --- a/crates/analyzer/tests/snapshots/analysis__ternary_expression.snap +++ b/crates/analyzer/tests/snapshots/analysis__ternary_expression.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ ternary_expression.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__tuple_destructuring.snap b/crates/analyzer/tests/snapshots/analysis__tuple_destructuring.snap index 028622b6d3..c1cf6abd9d 100644 --- a/crates/analyzer/tests/snapshots/analysis__tuple_destructuring.snap +++ b/crates/analyzer/tests/snapshots/analysis__tuple_destructuring.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ tuple_destructuring.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__tuple_stress.snap b/crates/analyzer/tests/snapshots/analysis__tuple_stress.snap index b39f1ab40a..d349175ae0 100644 --- a/crates/analyzer/tests/snapshots/analysis__tuple_stress.snap +++ b/crates/analyzer/tests/snapshots/analysis__tuple_stress.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ tuple_stress.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__two_contracts.snap b/crates/analyzer/tests/snapshots/analysis__two_contracts.snap index c550f3cf16..522d5a57fd 100644 --- a/crates/analyzer/tests/snapshots/analysis__two_contracts.snap +++ b/crates/analyzer/tests/snapshots/analysis__two_contracts.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ two_contracts.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__type_aliases.snap b/crates/analyzer/tests/snapshots/analysis__type_aliases.snap index 400c67119c..da0965f563 100644 --- a/crates/analyzer/tests/snapshots/analysis__type_aliases.snap +++ b/crates/analyzer/tests/snapshots/analysis__type_aliases.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ type_aliases.fe:1:1 diff --git a/crates/analyzer/tests/snapshots/analysis__type_coercion.snap b/crates/analyzer/tests/snapshots/analysis__type_coercion.snap index 76cd235b52..9fe67c2605 100644 --- a/crates/analyzer/tests/snapshots/analysis__type_coercion.snap +++ b/crates/analyzer/tests/snapshots/analysis__type_coercion.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ type_coercion.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__u128_u128_map.snap b/crates/analyzer/tests/snapshots/analysis__u128_u128_map.snap index baeee25538..b9b138a943 100644 --- a/crates/analyzer/tests/snapshots/analysis__u128_u128_map.snap +++ b/crates/analyzer/tests/snapshots/analysis__u128_u128_map.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ u128_u128_map.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__u16_u16_map.snap b/crates/analyzer/tests/snapshots/analysis__u16_u16_map.snap index 5c00ba7491..9a554dd304 100644 --- a/crates/analyzer/tests/snapshots/analysis__u16_u16_map.snap +++ b/crates/analyzer/tests/snapshots/analysis__u16_u16_map.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ u16_u16_map.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__u256_u256_map.snap b/crates/analyzer/tests/snapshots/analysis__u256_u256_map.snap index 94c328c5f5..2d86ae7a81 100644 --- a/crates/analyzer/tests/snapshots/analysis__u256_u256_map.snap +++ b/crates/analyzer/tests/snapshots/analysis__u256_u256_map.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ u256_u256_map.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__u32_u32_map.snap b/crates/analyzer/tests/snapshots/analysis__u32_u32_map.snap index d3e31c4e2d..fe8fe6b4e9 100644 --- a/crates/analyzer/tests/snapshots/analysis__u32_u32_map.snap +++ b/crates/analyzer/tests/snapshots/analysis__u32_u32_map.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ u32_u32_map.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__u64_u64_map.snap b/crates/analyzer/tests/snapshots/analysis__u64_u64_map.snap index 9e0001cf21..7d007bdd4d 100644 --- a/crates/analyzer/tests/snapshots/analysis__u64_u64_map.snap +++ b/crates/analyzer/tests/snapshots/analysis__u64_u64_map.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ u64_u64_map.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__u8_u8_map.snap b/crates/analyzer/tests/snapshots/analysis__u8_u8_map.snap index 81f3876e3d..8a5d5b5b01 100644 --- a/crates/analyzer/tests/snapshots/analysis__u8_u8_map.snap +++ b/crates/analyzer/tests/snapshots/analysis__u8_u8_map.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ u8_u8_map.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__uniswap.snap b/crates/analyzer/tests/snapshots/analysis__uniswap.snap index 414199525e..27aaf6a0d4 100644 --- a/crates/analyzer/tests/snapshots/analysis__uniswap.snap +++ b/crates/analyzer/tests/snapshots/analysis__uniswap.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ uniswap.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__value_semantics.snap b/crates/analyzer/tests/snapshots/analysis__value_semantics.snap index fcbf3725dd..48f5e1e672 100644 --- a/crates/analyzer/tests/snapshots/analysis__value_semantics.snap +++ b/crates/analyzer/tests/snapshots/analysis__value_semantics.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ value_semantics.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__while_loop.snap b/crates/analyzer/tests/snapshots/analysis__while_loop.snap index dc3813c2f8..e026a95822 100644 --- a/crates/analyzer/tests/snapshots/analysis__while_loop.snap +++ b/crates/analyzer/tests/snapshots/analysis__while_loop.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ while_loop.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__while_loop_with_break.snap b/crates/analyzer/tests/snapshots/analysis__while_loop_with_break.snap index d5b1d258d8..43190f2e85 100644 --- a/crates/analyzer/tests/snapshots/analysis__while_loop_with_break.snap +++ b/crates/analyzer/tests/snapshots/analysis__while_loop_with_break.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ while_loop_with_break.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__while_loop_with_break_2.snap b/crates/analyzer/tests/snapshots/analysis__while_loop_with_break_2.snap index 467eba1c8f..e0d37b245e 100644 --- a/crates/analyzer/tests/snapshots/analysis__while_loop_with_break_2.snap +++ b/crates/analyzer/tests/snapshots/analysis__while_loop_with_break_2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ while_loop_with_break_2.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/analysis__while_loop_with_continue.snap b/crates/analyzer/tests/snapshots/analysis__while_loop_with_continue.snap index 6fd9e53a72..0078abc8fd 100644 --- a/crates/analyzer/tests/snapshots/analysis__while_loop_with_continue.snap +++ b/crates/analyzer/tests/snapshots/analysis__while_loop_with_continue.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/analysis.rs expression: "build_snapshot(&db, module)" - --- note: ┌─ while_loop_with_continue.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/errors___test_fn_call.snap b/crates/analyzer/tests/snapshots/errors___test_fn_call.snap new file mode 100644 index 0000000000..de1a39282e --- /dev/null +++ b/crates/analyzer/tests/snapshots/errors___test_fn_call.snap @@ -0,0 +1,11 @@ +--- +source: crates/analyzer/tests/errors.rs +expression: "error_string(&path, test_files::fixture(path))" +--- +error: `my_test` is a test function + ┌─ compile_errors/_test_fn_call.fe:2:5 + │ +2 │ my_test() + │ ^^^^^^^ test functions are not callable + + diff --git a/crates/analyzer/tests/snapshots/errors___test_fn_params.snap b/crates/analyzer/tests/snapshots/errors___test_fn_params.snap new file mode 100644 index 0000000000..fc6657e8d2 --- /dev/null +++ b/crates/analyzer/tests/snapshots/errors___test_fn_params.snap @@ -0,0 +1,29 @@ +--- +source: crates/analyzer/tests/errors.rs +expression: "error_string(&path, test_files::fixture(path))" +--- +error: generic function parameters are not supported on test functions + ┌─ compile_errors/_test_fn_params.fe:4:9 + │ +4 │ fn test1() { } + │ ^^^^^^^^^^^^ this cannot appear here + │ + = Hint: remove the generic parameters + +error: function parameters are not supported on test functions + ┌─ compile_errors/_test_fn_params.fe:7:10 + │ +7 │ fn test2(x: u256) { } + │ ^^^^^^^ this cannot appear here + │ + = Hint: remove the parameters + +error: generic function parameters aren't yet supported outside of struct functions + ┌─ compile_errors/_test_fn_params.fe:4:9 + │ +4 │ fn test1() { } + │ ^^^^^^^^^^^^ this cannot appear here + │ + = Hint: Struct functions can have generic parameters + + diff --git a/crates/analyzer/tests/snapshots/errors__abi_encode_from_storage.snap b/crates/analyzer/tests/snapshots/errors__abi_encode_from_storage.snap index e5dbadcbfb..d892fdd2ac 100644 --- a/crates/analyzer/tests/snapshots/errors__abi_encode_from_storage.snap +++ b/crates/analyzer/tests/snapshots/errors__abi_encode_from_storage.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: value must be copied to memory ┌─ compile_errors/abi_encode_from_storage.fe:5:9 diff --git a/crates/analyzer/tests/snapshots/errors__abi_encode_u256.snap b/crates/analyzer/tests/snapshots/errors__abi_encode_u256.snap index 1aa84d35bf..50ca95cd9f 100644 --- a/crates/analyzer/tests/snapshots/errors__abi_encode_u256.snap +++ b/crates/analyzer/tests/snapshots/errors__abi_encode_u256.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: value of type `u256` does not support `abi_encode()` ┌─ compile_errors/abi_encode_u256.fe:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__ambiguous_traits.snap b/crates/analyzer/tests/snapshots/errors__ambiguous_traits.snap index 7448c98a9d..504583068b 100644 --- a/crates/analyzer/tests/snapshots/errors__ambiguous_traits.snap +++ b/crates/analyzer/tests/snapshots/errors__ambiguous_traits.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: multiple applicable items in scope ┌─ compile_errors/ambiguous_traits.fe:11:6 diff --git a/crates/analyzer/tests/snapshots/errors__ambiguous_traits2.snap b/crates/analyzer/tests/snapshots/errors__ambiguous_traits2.snap index 8696aae11e..772d7ae8eb 100644 --- a/crates/analyzer/tests/snapshots/errors__ambiguous_traits2.snap +++ b/crates/analyzer/tests/snapshots/errors__ambiguous_traits2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: multiple applicable items in scope ┌─ compile_errors/ambiguous_traits2.fe:6:6 diff --git a/crates/analyzer/tests/snapshots/errors__ambiguous_traits3.snap b/crates/analyzer/tests/snapshots/errors__ambiguous_traits3.snap index 374e91ed1b..57a8982261 100644 --- a/crates/analyzer/tests/snapshots/errors__ambiguous_traits3.snap +++ b/crates/analyzer/tests/snapshots/errors__ambiguous_traits3.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: multiple applicable items in scope ┌─ compile_errors/ambiguous_traits3.fe:11:6 diff --git a/crates/analyzer/tests/snapshots/errors__ambiguous_traits4.snap b/crates/analyzer/tests/snapshots/errors__ambiguous_traits4.snap index f8770289c5..6cf3359676 100644 --- a/crates/analyzer/tests/snapshots/errors__ambiguous_traits4.snap +++ b/crates/analyzer/tests/snapshots/errors__ambiguous_traits4.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: multiple applicable items in scope ┌─ compile_errors/ambiguous_traits4.fe:6:10 diff --git a/crates/analyzer/tests/snapshots/errors__array_constructor_call.snap b/crates/analyzer/tests/snapshots/errors__array_constructor_call.snap index 59cf026e28..ae05130690 100644 --- a/crates/analyzer/tests/snapshots/errors__array_constructor_call.snap +++ b/crates/analyzer/tests/snapshots/errors__array_constructor_call.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `u8` is a built-in type name, and can't be used as an expression ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__array_mixed_types.snap b/crates/analyzer/tests/snapshots/errors__array_mixed_types.snap index 56b494a6be..8be8889b9e 100644 --- a/crates/analyzer/tests/snapshots/errors__array_mixed_types.snap +++ b/crates/analyzer/tests/snapshots/errors__array_mixed_types.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: type mismatch ┌─ [snippet]:3:30 diff --git a/crates/analyzer/tests/snapshots/errors__array_size_mismatch.snap b/crates/analyzer/tests/snapshots/errors__array_size_mismatch.snap index 4091d6af73..f6de989581 100644 --- a/crates/analyzer/tests/snapshots/errors__array_size_mismatch.snap +++ b/crates/analyzer/tests/snapshots/errors__array_size_mismatch.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: type mismatch ┌─ [snippet]:3:25 diff --git a/crates/analyzer/tests/snapshots/errors__assert_reason_not_string.snap b/crates/analyzer/tests/snapshots/errors__assert_reason_not_string.snap index 487c8f7637..772730dfdb 100644 --- a/crates/analyzer/tests/snapshots/errors__assert_reason_not_string.snap +++ b/crates/analyzer/tests/snapshots/errors__assert_reason_not_string.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `assert` reason must be a string ┌─ [snippet]:3:16 diff --git a/crates/analyzer/tests/snapshots/errors__assert_sto_msg_no_copy.snap b/crates/analyzer/tests/snapshots/errors__assert_sto_msg_no_copy.snap index 099a3664a9..21e4b7dec5 100644 --- a/crates/analyzer/tests/snapshots/errors__assert_sto_msg_no_copy.snap +++ b/crates/analyzer/tests/snapshots/errors__assert_sto_msg_no_copy.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: value must be copied to memory ┌─ compile_errors/assert_sto_msg_no_copy.fe:5:23 diff --git a/crates/analyzer/tests/snapshots/errors__assign_call.snap b/crates/analyzer/tests/snapshots/errors__assign_call.snap index 44d48fe2bb..f38bb92813 100644 --- a/crates/analyzer/tests/snapshots/errors__assign_call.snap +++ b/crates/analyzer/tests/snapshots/errors__assign_call.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: invalid assignment target ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__assign_int.snap b/crates/analyzer/tests/snapshots/errors__assign_int.snap index af11562b54..5fa4c8772d 100644 --- a/crates/analyzer/tests/snapshots/errors__assign_int.snap +++ b/crates/analyzer/tests/snapshots/errors__assign_int.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: invalid assignment target ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__assign_type_mismatch.snap b/crates/analyzer/tests/snapshots/errors__assign_type_mismatch.snap index 9804ee80e2..68024ba33a 100644 --- a/crates/analyzer/tests/snapshots/errors__assign_type_mismatch.snap +++ b/crates/analyzer/tests/snapshots/errors__assign_type_mismatch.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: type mismatch ┌─ [snippet]:4:7 diff --git a/crates/analyzer/tests/snapshots/errors__aug_assign_non_numeric.snap b/crates/analyzer/tests/snapshots/errors__aug_assign_non_numeric.snap index 31c58b4b13..1f9ceba16b 100644 --- a/crates/analyzer/tests/snapshots/errors__aug_assign_non_numeric.snap +++ b/crates/analyzer/tests/snapshots/errors__aug_assign_non_numeric.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `+` operands must be numeric ┌─ [snippet]:5:3 diff --git a/crates/analyzer/tests/snapshots/errors__bad_ingot.snap b/crates/analyzer/tests/snapshots/errors__bad_ingot.snap index df0b26d3a6..f4f6c22061 100644 --- a/crates/analyzer/tests/snapshots/errors__bad_ingot.snap +++ b/crates/analyzer/tests/snapshots/errors__bad_ingot.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: error_string_ingot(&path) - --- error: import name conflicts with the ingot named "std" ┌─ compile_errors/bad_ingot/src/bing.fe:1:5 diff --git a/crates/analyzer/tests/snapshots/errors__bad_string.snap b/crates/analyzer/tests/snapshots/errors__bad_string.snap index aa1507c5a9..fed7850763 100644 --- a/crates/analyzer/tests/snapshots/errors__bad_string.snap +++ b/crates/analyzer/tests/snapshots/errors__bad_string.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: type mismatch ┌─ compile_errors/bad_string.fe:3:28 diff --git a/crates/analyzer/tests/snapshots/errors__bad_tuple_attr1.snap b/crates/analyzer/tests/snapshots/errors__bad_tuple_attr1.snap index 2d6b5a6f66..6316b77e34 100644 --- a/crates/analyzer/tests/snapshots/errors__bad_tuple_attr1.snap +++ b/crates/analyzer/tests/snapshots/errors__bad_tuple_attr1.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: No field `iteo0` exists on this tuple ┌─ compile_errors/bad_tuple_attr1.fe:6:27 diff --git a/crates/analyzer/tests/snapshots/errors__bad_tuple_attr2.snap b/crates/analyzer/tests/snapshots/errors__bad_tuple_attr2.snap index 6af8db5afa..224ef47bc1 100644 --- a/crates/analyzer/tests/snapshots/errors__bad_tuple_attr2.snap +++ b/crates/analyzer/tests/snapshots/errors__bad_tuple_attr2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: No field `m` exists on this tuple ┌─ compile_errors/bad_tuple_attr2.fe:6:27 diff --git a/crates/analyzer/tests/snapshots/errors__bad_tuple_attr3.snap b/crates/analyzer/tests/snapshots/errors__bad_tuple_attr3.snap index 32f8339899..88156588d0 100644 --- a/crates/analyzer/tests/snapshots/errors__bad_tuple_attr3.snap +++ b/crates/analyzer/tests/snapshots/errors__bad_tuple_attr3.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: No field `item00` exists on this tuple ┌─ compile_errors/bad_tuple_attr3.fe:6:27 diff --git a/crates/analyzer/tests/snapshots/errors__bad_visibility.snap b/crates/analyzer/tests/snapshots/errors__bad_visibility.snap index 91343304c1..4bd0617c5e 100644 --- a/crates/analyzer/tests/snapshots/errors__bad_visibility.snap +++ b/crates/analyzer/tests/snapshots/errors__bad_visibility.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: error_string_ingot(&path) - --- error: type MyInt is private ┌─ compile_errors/bad_visibility/src/main.fe:1:11 diff --git a/crates/analyzer/tests/snapshots/errors__binary_op_add_sign_mismatch.snap b/crates/analyzer/tests/snapshots/errors__binary_op_add_sign_mismatch.snap index 878f360cc4..b1f5fe5a4e 100644 --- a/crates/analyzer/tests/snapshots/errors__binary_op_add_sign_mismatch.snap +++ b/crates/analyzer/tests/snapshots/errors__binary_op_add_sign_mismatch.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `+` operand types are not compatible ┌─ [snippet]:5:3 diff --git a/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch1.snap b/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch1.snap index c1ed40d69f..0c23fe3017 100644 --- a/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch1.snap +++ b/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch1.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: type mismatch ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch2.snap b/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch2.snap index e0b92a42f0..36286fe5a0 100644 --- a/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch2.snap +++ b/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: type mismatch ┌─ [snippet]:3:12 diff --git a/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch3.snap b/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch3.snap index 027535f653..b5034ba731 100644 --- a/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch3.snap +++ b/crates/analyzer/tests/snapshots/errors__binary_op_boolean_mismatch3.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: type mismatch ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__binary_op_lshift_bool.snap b/crates/analyzer/tests/snapshots/errors__binary_op_lshift_bool.snap index 292a134154..2d7468c651 100644 --- a/crates/analyzer/tests/snapshots/errors__binary_op_lshift_bool.snap +++ b/crates/analyzer/tests/snapshots/errors__binary_op_lshift_bool.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `<<` operands must be numeric ┌─ [snippet]:5:3 diff --git a/crates/analyzer/tests/snapshots/errors__binary_op_lshift_with_int.snap b/crates/analyzer/tests/snapshots/errors__binary_op_lshift_with_int.snap index 507594adb8..a70bb3a79a 100644 --- a/crates/analyzer/tests/snapshots/errors__binary_op_lshift_with_int.snap +++ b/crates/analyzer/tests/snapshots/errors__binary_op_lshift_with_int.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: The right hand side of the `<<` operation must be unsigned ┌─ [snippet]:5:8 diff --git a/crates/analyzer/tests/snapshots/errors__binary_op_pow_int.snap b/crates/analyzer/tests/snapshots/errors__binary_op_pow_int.snap index f674eb71f0..ec6351626f 100644 --- a/crates/analyzer/tests/snapshots/errors__binary_op_pow_int.snap +++ b/crates/analyzer/tests/snapshots/errors__binary_op_pow_int.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: The right hand side of the `**` operation must be unsigned ┌─ [snippet]:5:8 diff --git a/crates/analyzer/tests/snapshots/errors__bool_cast.snap b/crates/analyzer/tests/snapshots/errors__bool_cast.snap index 616bccf68e..530b190c55 100644 --- a/crates/analyzer/tests/snapshots/errors__bool_cast.snap +++ b/crates/analyzer/tests/snapshots/errors__bool_cast.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `bool` type is not callable ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__bool_constructor.snap b/crates/analyzer/tests/snapshots/errors__bool_constructor.snap index da2ee62734..729cc8221b 100644 --- a/crates/analyzer/tests/snapshots/errors__bool_constructor.snap +++ b/crates/analyzer/tests/snapshots/errors__bool_constructor.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `bool` type is not callable ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__break_without_loop.snap b/crates/analyzer/tests/snapshots/errors__break_without_loop.snap index 44d357bccd..1ab51ba232 100644 --- a/crates/analyzer/tests/snapshots/errors__break_without_loop.snap +++ b/crates/analyzer/tests/snapshots/errors__break_without_loop.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `break` outside of a loop ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__break_without_loop_2.snap b/crates/analyzer/tests/snapshots/errors__break_without_loop_2.snap index 5170bbdaf1..6e13b173a6 100644 --- a/crates/analyzer/tests/snapshots/errors__break_without_loop_2.snap +++ b/crates/analyzer/tests/snapshots/errors__break_without_loop_2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `break` outside of a loop ┌─ [snippet]:3:13 diff --git a/crates/analyzer/tests/snapshots/errors__call_address_with_label.snap b/crates/analyzer/tests/snapshots/errors__call_address_with_label.snap index 105913a34f..75fddf1f2d 100644 --- a/crates/analyzer/tests/snapshots/errors__call_address_with_label.snap +++ b/crates/analyzer/tests/snapshots/errors__call_address_with_label.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: argument should not be labeled ┌─ [snippet]:3:11 diff --git a/crates/analyzer/tests/snapshots/errors__call_address_with_wrong_type.snap b/crates/analyzer/tests/snapshots/errors__call_address_with_wrong_type.snap index deaa170eaf..7b584ba96e 100644 --- a/crates/analyzer/tests/snapshots/errors__call_address_with_wrong_type.snap +++ b/crates/analyzer/tests/snapshots/errors__call_address_with_wrong_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: incorrect type for argument to `address` ┌─ [snippet]:3:11 diff --git a/crates/analyzer/tests/snapshots/errors__call_balance_of_with_2_args.snap b/crates/analyzer/tests/snapshots/errors__call_balance_of_with_2_args.snap index ebd0ec09f2..ab107809db 100644 --- a/crates/analyzer/tests/snapshots/errors__call_balance_of_with_2_args.snap +++ b/crates/analyzer/tests/snapshots/errors__call_balance_of_with_2_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `balance_of` expects 1 argument, but 2 were provided ┌─ src/evm.fe:50:15 diff --git a/crates/analyzer/tests/snapshots/errors__call_balance_of_with_wrong_type.snap b/crates/analyzer/tests/snapshots/errors__call_balance_of_with_wrong_type.snap index b1b6d46710..46a641e3cf 100644 --- a/crates/analyzer/tests/snapshots/errors__call_balance_of_with_wrong_type.snap +++ b/crates/analyzer/tests/snapshots/errors__call_balance_of_with_wrong_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: incorrect type for `balance_of` argument at position 0 ┌─ [snippet]:3:33 diff --git a/crates/analyzer/tests/snapshots/errors__call_balance_of_without_parameter.snap b/crates/analyzer/tests/snapshots/errors__call_balance_of_without_parameter.snap index 9602329664..daa13d345e 100644 --- a/crates/analyzer/tests/snapshots/errors__call_balance_of_without_parameter.snap +++ b/crates/analyzer/tests/snapshots/errors__call_balance_of_without_parameter.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `balance_of` expects 1 argument, but 0 were provided ┌─ src/evm.fe:50:15 diff --git a/crates/analyzer/tests/snapshots/errors__call_balance_with_arg.snap b/crates/analyzer/tests/snapshots/errors__call_balance_with_arg.snap index 6b0564205f..94b76e1686 100644 --- a/crates/analyzer/tests/snapshots/errors__call_balance_with_arg.snap +++ b/crates/analyzer/tests/snapshots/errors__call_balance_with_arg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `balance` expects 0 arguments, but 1 was provided ┌─ src/evm.fe:54:15 diff --git a/crates/analyzer/tests/snapshots/errors__call_builtin_object.snap b/crates/analyzer/tests/snapshots/errors__call_builtin_object.snap index ae8b1d4a90..cd4c3b4f08 100644 --- a/crates/analyzer/tests/snapshots/errors__call_builtin_object.snap +++ b/crates/analyzer/tests/snapshots/errors__call_builtin_object.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: cannot find value `block` in this scope ┌─ compile_errors/call_builtin_object.fe:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__call_call_on_external_contract.snap b/crates/analyzer/tests/snapshots/errors__call_call_on_external_contract.snap index c1c86b8cb5..4e434d4cca 100644 --- a/crates/analyzer/tests/snapshots/errors__call_call_on_external_contract.snap +++ b/crates/analyzer/tests/snapshots/errors__call_call_on_external_contract.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `__call__()` is not directly callable ┌─ compile_errors/call_call_on_external_contract.fe:10:13 diff --git a/crates/analyzer/tests/snapshots/errors__call_call_on_self.snap b/crates/analyzer/tests/snapshots/errors__call_call_on_self.snap index d0e16c98e5..ce8e4bdbbd 100644 --- a/crates/analyzer/tests/snapshots/errors__call_call_on_self.snap +++ b/crates/analyzer/tests/snapshots/errors__call_call_on_self.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `__call__()` is not directly callable ┌─ compile_errors/call_call_on_self.fe:5:14 diff --git a/crates/analyzer/tests/snapshots/errors__call_create2_with_wrong_type.snap b/crates/analyzer/tests/snapshots/errors__call_create2_with_wrong_type.snap index d5550c6373..eb0fe051a4 100644 --- a/crates/analyzer/tests/snapshots/errors__call_create2_with_wrong_type.snap +++ b/crates/analyzer/tests/snapshots/errors__call_create2_with_wrong_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: incorrect type for argument to `Bar.create2` ┌─ compile_errors/call_create2_with_wrong_type.fe:5:26 diff --git a/crates/analyzer/tests/snapshots/errors__call_create_with_wrong_type.snap b/crates/analyzer/tests/snapshots/errors__call_create_with_wrong_type.snap index 16891d4fbf..c2037d2475 100644 --- a/crates/analyzer/tests/snapshots/errors__call_create_with_wrong_type.snap +++ b/crates/analyzer/tests/snapshots/errors__call_create_with_wrong_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: incorrect type for argument to `Bar.create` ┌─ compile_errors/call_create_with_wrong_type.fe:5:25 diff --git a/crates/analyzer/tests/snapshots/errors__call_duplicate_def.snap b/crates/analyzer/tests/snapshots/errors__call_duplicate_def.snap index 05cb820590..4081057bcd 100644 --- a/crates/analyzer/tests/snapshots/errors__call_duplicate_def.snap +++ b/crates/analyzer/tests/snapshots/errors__call_duplicate_def.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `fn __call__()` is defined multiple times in `contract Foo` ┌─ compile_errors/call_duplicate_def.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/errors__call_generic_function_with_unsatisfied_bound.snap b/crates/analyzer/tests/snapshots/errors__call_generic_function_with_unsatisfied_bound.snap index b96a8c9f7e..007fc22033 100644 --- a/crates/analyzer/tests/snapshots/errors__call_generic_function_with_unsatisfied_bound.snap +++ b/crates/analyzer/tests/snapshots/errors__call_generic_function_with_unsatisfied_bound.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: the trait bound `Bar: Dummy` is not satisfied ┌─ compile_errors/call_generic_function_with_unsatisfied_bound.fe:16:13 diff --git a/crates/analyzer/tests/snapshots/errors__call_keccak_with_2_args.snap b/crates/analyzer/tests/snapshots/errors__call_keccak_with_2_args.snap index 9233fe1396..a9d57fbf9e 100644 --- a/crates/analyzer/tests/snapshots/errors__call_keccak_with_2_args.snap +++ b/crates/analyzer/tests/snapshots/errors__call_keccak_with_2_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `keccak256` expects 1 argument, but 2 were provided ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__call_keccak_with_generic_args.snap b/crates/analyzer/tests/snapshots/errors__call_keccak_with_generic_args.snap index 10acd5dbe9..9ac734487b 100644 --- a/crates/analyzer/tests/snapshots/errors__call_keccak_with_generic_args.snap +++ b/crates/analyzer/tests/snapshots/errors__call_keccak_with_generic_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `keccak256` function does not expect generic arguments ┌─ [snippet]:3:12 diff --git a/crates/analyzer/tests/snapshots/errors__call_keccak_with_wrong_type.snap b/crates/analyzer/tests/snapshots/errors__call_keccak_with_wrong_type.snap index 23386c7691..6003e0cf2d 100644 --- a/crates/analyzer/tests/snapshots/errors__call_keccak_with_wrong_type.snap +++ b/crates/analyzer/tests/snapshots/errors__call_keccak_with_wrong_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `bool` can not be used as an argument to `keccak256` ┌─ [snippet]:3:12 diff --git a/crates/analyzer/tests/snapshots/errors__call_keccak_without_parameter.snap b/crates/analyzer/tests/snapshots/errors__call_keccak_without_parameter.snap index df8515ca40..bbf9c36696 100644 --- a/crates/analyzer/tests/snapshots/errors__call_keccak_without_parameter.snap +++ b/crates/analyzer/tests/snapshots/errors__call_keccak_without_parameter.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `keccak256` expects 1 argument, but 0 were provided ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_external_contract.snap b/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_external_contract.snap index 9a55510283..a59d3598a1 100644 --- a/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_external_contract.snap +++ b/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_external_contract.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: the function `do_private_thingz` on `type Foo` is private ┌─ compile_errors/call_non_pub_fn_on_external_contract.fe:12:13 diff --git a/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_struct.snap b/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_struct.snap index e5efc2a515..41a22210cc 100644 --- a/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_struct.snap +++ b/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_struct.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: the function `do_private_thingz` on `struct Foo` is private ┌─ compile_errors/call_non_pub_fn_on_struct.fe:8:9 diff --git a/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_struct2.snap b/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_struct2.snap index c3a10267b7..aa8f489824 100644 --- a/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_struct2.snap +++ b/crates/analyzer/tests/snapshots/errors__call_non_pub_fn_on_struct2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: the function `do_private_thingz` on `struct Foo` is private ┌─ compile_errors/call_non_pub_fn_on_struct2.fe:8:15 diff --git a/crates/analyzer/tests/snapshots/errors__call_static_function_without_double_colon.snap b/crates/analyzer/tests/snapshots/errors__call_static_function_without_double_colon.snap index 78e443efdf..7fdd242317 100644 --- a/crates/analyzer/tests/snapshots/errors__call_static_function_without_double_colon.snap +++ b/crates/analyzer/tests/snapshots/errors__call_static_function_without_double_colon.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: Static functions need to be called with `::` not `.` ┌─ compile_errors/call_static_function_without_double_colon.fe:7:13 diff --git a/crates/analyzer/tests/snapshots/errors__call_to_mem_on_primitive.snap b/crates/analyzer/tests/snapshots/errors__call_to_mem_on_primitive.snap index 0cb8952cf7..b7e83a8ab6 100644 --- a/crates/analyzer/tests/snapshots/errors__call_to_mem_on_primitive.snap +++ b/crates/analyzer/tests/snapshots/errors__call_to_mem_on_primitive.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `to_mem()` called on primitive type ┌─ compile_errors/call_to_mem_on_primitive.fe:5:16 diff --git a/crates/analyzer/tests/snapshots/errors__call_to_mut_fn_without_self.snap b/crates/analyzer/tests/snapshots/errors__call_to_mut_fn_without_self.snap index 66dbbdf1d6..a8ddbba4ec 100644 --- a/crates/analyzer/tests/snapshots/errors__call_to_mut_fn_without_self.snap +++ b/crates/analyzer/tests/snapshots/errors__call_to_mut_fn_without_self.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `baz` must be called via `self` ┌─ compile_errors/call_to_mut_fn_without_self.fe:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__call_to_pure_fn_on_self.snap b/crates/analyzer/tests/snapshots/errors__call_to_pure_fn_on_self.snap index 1134dd1899..9cb5d8677f 100644 --- a/crates/analyzer/tests/snapshots/errors__call_to_pure_fn_on_self.snap +++ b/crates/analyzer/tests/snapshots/errors__call_to_pure_fn_on_self.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `pure` must be called without `self` ┌─ compile_errors/call_to_pure_fn_on_self.fe:5:14 diff --git a/crates/analyzer/tests/snapshots/errors__call_to_pure_struct_fn_on_instance.snap b/crates/analyzer/tests/snapshots/errors__call_to_pure_struct_fn_on_instance.snap index 6a496dfc31..59fc0ff128 100644 --- a/crates/analyzer/tests/snapshots/errors__call_to_pure_struct_fn_on_instance.snap +++ b/crates/analyzer/tests/snapshots/errors__call_to_pure_struct_fn_on_instance.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `foo` must be called without `self` ┌─ compile_errors/call_to_pure_struct_fn_on_instance.fe:9:15 diff --git a/crates/analyzer/tests/snapshots/errors__call_trait_assoc_fn_on_invisible_type.snap b/crates/analyzer/tests/snapshots/errors__call_trait_assoc_fn_on_invisible_type.snap index 40dced16b0..b99754c599 100644 --- a/crates/analyzer/tests/snapshots/errors__call_trait_assoc_fn_on_invisible_type.snap +++ b/crates/analyzer/tests/snapshots/errors__call_trait_assoc_fn_on_invisible_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: error_string_ingot(&path) - --- error: the struct `Bar` is private ┌─ compile_errors/call_trait_assoc_fn_on_invisible_type/src/main.fe:5:5 diff --git a/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_contract.snap b/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_contract.snap index 545d26b233..6fb8b60aae 100644 --- a/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_contract.snap +++ b/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_contract.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: No function `doesnt_exist` exists on type `C` ┌─ [snippet]:3:8 diff --git a/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_external_contract.snap b/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_external_contract.snap index 50a58a7eb7..672d32f793 100644 --- a/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_external_contract.snap +++ b/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_external_contract.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: No function `doesnt_exist` exists on type `Foo` ┌─ compile_errors/call_undefined_function_on_external_contract.fe:7:25 diff --git a/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_memory_struct.snap b/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_memory_struct.snap index afbd0f442f..19e10c700e 100644 --- a/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_memory_struct.snap +++ b/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_memory_struct.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: No function `doesnt_exist` exists on type `Something` ┌─ compile_errors/call_undefined_function_on_memory_struct.fe:8:16 diff --git a/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_storage_struct.snap b/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_storage_struct.snap index c315608b0e..01d38105a0 100644 --- a/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_storage_struct.snap +++ b/crates/analyzer/tests/snapshots/errors__call_undefined_function_on_storage_struct.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: No function `doesnt_exist` exists on type `Something` ┌─ compile_errors/call_undefined_function_on_storage_struct.fe:9:21 diff --git a/crates/analyzer/tests/snapshots/errors__call_with_pub_fns.snap b/crates/analyzer/tests/snapshots/errors__call_with_pub_fns.snap index 726a854650..13df4dd6cf 100644 --- a/crates/analyzer/tests/snapshots/errors__call_with_pub_fns.snap +++ b/crates/analyzer/tests/snapshots/errors__call_with_pub_fns.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `pub` not allowed if `__call__` is defined ┌─ compile_errors/call_with_pub_fns.fe:6:12 diff --git a/crates/analyzer/tests/snapshots/errors__call_wrong_return_type.snap b/crates/analyzer/tests/snapshots/errors__call_wrong_return_type.snap index e27799efb5..2707c6b3e8 100644 --- a/crates/analyzer/tests/snapshots/errors__call_wrong_return_type.snap +++ b/crates/analyzer/tests/snapshots/errors__call_wrong_return_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `__call__` function has incorrect return type ┌─ compile_errors/call_wrong_return_type.fe:2:26 diff --git a/crates/analyzer/tests/snapshots/errors__cannot_move.snap b/crates/analyzer/tests/snapshots/errors__cannot_move.snap index 31f69f99eb..ba43eefb90 100644 --- a/crates/analyzer/tests/snapshots/errors__cannot_move.snap +++ b/crates/analyzer/tests/snapshots/errors__cannot_move.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: value must be copied to memory ┌─ compile_errors/cannot_move.fe:5:16 diff --git a/crates/analyzer/tests/snapshots/errors__cannot_move2.snap b/crates/analyzer/tests/snapshots/errors__cannot_move2.snap index 2c6bf1cb3d..928932bfba 100644 --- a/crates/analyzer/tests/snapshots/errors__cannot_move2.snap +++ b/crates/analyzer/tests/snapshots/errors__cannot_move2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `+` operands must be numeric ┌─ compile_errors/cannot_move2.fe:5:34 diff --git a/crates/analyzer/tests/snapshots/errors__cast_address_to_u64.snap b/crates/analyzer/tests/snapshots/errors__cast_address_to_u64.snap index febb7e2c4a..a7f094a7b7 100644 --- a/crates/analyzer/tests/snapshots/errors__cast_address_to_u64.snap +++ b/crates/analyzer/tests/snapshots/errors__cast_address_to_u64.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: can't cast `address` to `u64` ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__change_sign_and_size_in_cast.snap b/crates/analyzer/tests/snapshots/errors__change_sign_and_size_in_cast.snap index 88c28253c2..973a9ec959 100644 --- a/crates/analyzer/tests/snapshots/errors__change_sign_and_size_in_cast.snap +++ b/crates/analyzer/tests/snapshots/errors__change_sign_and_size_in_cast.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: Casting between numeric values can change the sign or size but not both at once ┌─ [snippet]:4:20 diff --git a/crates/analyzer/tests/snapshots/errors__change_sign_and_type_in_cast.snap b/crates/analyzer/tests/snapshots/errors__change_sign_and_type_in_cast.snap index e5a8ec7f82..dec4fd11fb 100644 --- a/crates/analyzer/tests/snapshots/errors__change_sign_and_type_in_cast.snap +++ b/crates/analyzer/tests/snapshots/errors__change_sign_and_type_in_cast.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: incorrect type for argument to `u16` ┌─ [snippet]:4:20 diff --git a/crates/analyzer/tests/snapshots/errors__circular_dependency_create.snap b/crates/analyzer/tests/snapshots/errors__circular_dependency_create.snap index 8089f7d060..00c7b03618 100644 --- a/crates/analyzer/tests/snapshots/errors__circular_dependency_create.snap +++ b/crates/analyzer/tests/snapshots/errors__circular_dependency_create.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `Foo.create(...)` called within `Foo` creates an illegal circular dependency ┌─ compile_errors/circular_dependency_create.fe:3:28 diff --git a/crates/analyzer/tests/snapshots/errors__circular_dependency_create2.snap b/crates/analyzer/tests/snapshots/errors__circular_dependency_create2.snap index 95b343b22d..6ea2f9dd41 100644 --- a/crates/analyzer/tests/snapshots/errors__circular_dependency_create2.snap +++ b/crates/analyzer/tests/snapshots/errors__circular_dependency_create2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `Foo.create2(...)` called within `Foo` creates an illegal circular dependency ┌─ compile_errors/circular_dependency_create2.fe:3:28 diff --git a/crates/analyzer/tests/snapshots/errors__circular_type_alias.snap b/crates/analyzer/tests/snapshots/errors__circular_type_alias.snap index 8f7afb71ed..c70672b6b5 100644 --- a/crates/analyzer/tests/snapshots/errors__circular_type_alias.snap +++ b/crates/analyzer/tests/snapshots/errors__circular_type_alias.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: recursive type definition ┌─ compile_errors/circular_type_alias.fe:1:1 diff --git a/crates/analyzer/tests/snapshots/errors__const_assign.snap b/crates/analyzer/tests/snapshots/errors__const_assign.snap index ab073362df..647944b5d4 100644 --- a/crates/analyzer/tests/snapshots/errors__const_assign.snap +++ b/crates/analyzer/tests/snapshots/errors__const_assign.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: invalid assignment target ┌─ compile_errors/const_assign.fe:5:9 diff --git a/crates/analyzer/tests/snapshots/errors__const_generics_param.snap b/crates/analyzer/tests/snapshots/errors__const_generics_param.snap index d20909281e..a6ef94ab1f 100644 --- a/crates/analyzer/tests/snapshots/errors__const_generics_param.snap +++ b/crates/analyzer/tests/snapshots/errors__const_generics_param.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: expression is not a constant ┌─ compile_errors/const_generics_param.fe:3:33 diff --git a/crates/analyzer/tests/snapshots/errors__const_local.snap b/crates/analyzer/tests/snapshots/errors__const_local.snap index da94937890..7dbc1cd637 100644 --- a/crates/analyzer/tests/snapshots/errors__const_local.snap +++ b/crates/analyzer/tests/snapshots/errors__const_local.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: expression is not a constant ┌─ compile_errors/const_local.fe:3:33 diff --git a/crates/analyzer/tests/snapshots/errors__continue_without_loop.snap b/crates/analyzer/tests/snapshots/errors__continue_without_loop.snap index a4b22cc878..0a3f12b9f3 100644 --- a/crates/analyzer/tests/snapshots/errors__continue_without_loop.snap +++ b/crates/analyzer/tests/snapshots/errors__continue_without_loop.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `continue` outside of a loop ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__continue_without_loop_2.snap b/crates/analyzer/tests/snapshots/errors__continue_without_loop_2.snap index f9850a8dd8..6875004796 100644 --- a/crates/analyzer/tests/snapshots/errors__continue_without_loop_2.snap +++ b/crates/analyzer/tests/snapshots/errors__continue_without_loop_2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `continue` outside of a loop ┌─ [snippet]:3:13 diff --git a/crates/analyzer/tests/snapshots/errors__contract_function_with_generic_params.snap b/crates/analyzer/tests/snapshots/errors__contract_function_with_generic_params.snap index 6bdb2de15a..982acf000e 100644 --- a/crates/analyzer/tests/snapshots/errors__contract_function_with_generic_params.snap +++ b/crates/analyzer/tests/snapshots/errors__contract_function_with_generic_params.snap @@ -12,7 +12,7 @@ error: generic function parameters aren't yet supported outside of struct functi ┌─ compile_errors/contract_function_with_generic_params.fe:4:15 │ 4 │ pub fn bar(val: T) {} - │ ^^^^^^^^^^ This can not appear here + │ ^^^^^^^^^^ this cannot appear here │ = Hint: Struct functions can have generic parameters diff --git a/crates/analyzer/tests/snapshots/errors__ctx_builtins_param_incorrect_type.snap b/crates/analyzer/tests/snapshots/errors__ctx_builtins_param_incorrect_type.snap index 1b93af514e..ae70f93bde 100644 --- a/crates/analyzer/tests/snapshots/errors__ctx_builtins_param_incorrect_type.snap +++ b/crates/analyzer/tests/snapshots/errors__ctx_builtins_param_incorrect_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: incorrect type for argument to `Barn.create` ┌─ compile_errors/ctx_builtins_param_incorrect_type.fe:7:46 diff --git a/crates/analyzer/tests/snapshots/errors__ctx_init.snap b/crates/analyzer/tests/snapshots/errors__ctx_init.snap index 4fe2697ace..c16fa2a2ac 100644 --- a/crates/analyzer/tests/snapshots/errors__ctx_init.snap +++ b/crates/analyzer/tests/snapshots/errors__ctx_init.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: unsafe function `Context` can only be called in an unsafe function or block ┌─ compile_errors/ctx_init.fe:3:33 diff --git a/crates/analyzer/tests/snapshots/errors__ctx_missing_create.snap b/crates/analyzer/tests/snapshots/errors__ctx_missing_create.snap index 08e0e72eb4..6be6670a55 100644 --- a/crates/analyzer/tests/snapshots/errors__ctx_missing_create.snap +++ b/crates/analyzer/tests/snapshots/errors__ctx_missing_create.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `create` expects 2 arguments, but 1 was provided ┌─ compile_errors/ctx_missing_create.fe:7:13 diff --git a/crates/analyzer/tests/snapshots/errors__ctx_missing_internal_call.snap b/crates/analyzer/tests/snapshots/errors__ctx_missing_internal_call.snap index ae90038a0a..56a8bdd069 100644 --- a/crates/analyzer/tests/snapshots/errors__ctx_missing_internal_call.snap +++ b/crates/analyzer/tests/snapshots/errors__ctx_missing_internal_call.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `bar` expects 1 argument, but 0 were provided ┌─ compile_errors/ctx_missing_internal_call.fe:4:12 diff --git a/crates/analyzer/tests/snapshots/errors__ctx_not_after_self.snap b/crates/analyzer/tests/snapshots/errors__ctx_not_after_self.snap index 1d971ce414..b9e2273feb 100644 --- a/crates/analyzer/tests/snapshots/errors__ctx_not_after_self.snap +++ b/crates/analyzer/tests/snapshots/errors__ctx_not_after_self.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: invalid parameter order ┌─ compile_errors/ctx_not_after_self.fe:2:33 diff --git a/crates/analyzer/tests/snapshots/errors__ctx_not_first.snap b/crates/analyzer/tests/snapshots/errors__ctx_not_first.snap index 8d945d70c0..ba2f27a0b9 100644 --- a/crates/analyzer/tests/snapshots/errors__ctx_not_first.snap +++ b/crates/analyzer/tests/snapshots/errors__ctx_not_first.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: invalid parameter order ┌─ compile_errors/ctx_not_first.fe:2:27 diff --git a/crates/analyzer/tests/snapshots/errors__ctx_undeclared.snap b/crates/analyzer/tests/snapshots/errors__ctx_undeclared.snap index a42afc26da..ad8941cc07 100644 --- a/crates/analyzer/tests/snapshots/errors__ctx_undeclared.snap +++ b/crates/analyzer/tests/snapshots/errors__ctx_undeclared.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: cannot find value `ctx` in this scope ┌─ compile_errors/ctx_undeclared.fe:3:16 diff --git a/crates/analyzer/tests/snapshots/errors__ctx_undefined_create.snap b/crates/analyzer/tests/snapshots/errors__ctx_undefined_create.snap index 458b514494..68949ff3fb 100644 --- a/crates/analyzer/tests/snapshots/errors__ctx_undefined_create.snap +++ b/crates/analyzer/tests/snapshots/errors__ctx_undefined_create.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `create` expects 2 arguments, but 1 was provided ┌─ compile_errors/ctx_undefined_create.fe:5:13 diff --git a/crates/analyzer/tests/snapshots/errors__ctx_undefined_create2.snap b/crates/analyzer/tests/snapshots/errors__ctx_undefined_create2.snap index b5f8851581..cc22f6732e 100644 --- a/crates/analyzer/tests/snapshots/errors__ctx_undefined_create2.snap +++ b/crates/analyzer/tests/snapshots/errors__ctx_undefined_create2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `create2` expects 3 arguments, but 2 were provided ┌─ compile_errors/ctx_undefined_create2.fe:5:13 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_arg_in_contract_method.snap b/crates/analyzer/tests/snapshots/errors__duplicate_arg_in_contract_method.snap index 7edf0596ad..c20d22459f 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_arg_in_contract_method.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_arg_in_contract_method.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: duplicate parameter names in function `bar` ┌─ compile_errors/duplicate_arg_in_contract_method.fe:2:16 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_contract_in_module.snap b/crates/analyzer/tests/snapshots/errors__duplicate_contract_in_module.snap index 33eb5301ed..c90dfef242 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_contract_in_module.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_contract_in_module.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: a type named "Foo" has already been defined ┌─ compile_errors/duplicate_contract_in_module.fe:1:10 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_field_in_contract.snap b/crates/analyzer/tests/snapshots/errors__duplicate_field_in_contract.snap index 4613ccb7cf..d6bb46e93b 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_field_in_contract.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_field_in_contract.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: duplicate field names in `contract Foo` ┌─ compile_errors/duplicate_field_in_contract.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_field_in_struct.snap b/crates/analyzer/tests/snapshots/errors__duplicate_field_in_struct.snap index 8290260a43..654bb4ab8c 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_field_in_struct.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_field_in_struct.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: duplicate field names in `struct MyStruct` ┌─ compile_errors/duplicate_field_in_struct.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_generic_params.snap b/crates/analyzer/tests/snapshots/errors__duplicate_generic_params.snap index 4127fa4d18..762923b9d2 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_generic_params.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_generic_params.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: duplicate generic parameter ┌─ compile_errors/duplicate_generic_params.fe:10:10 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_method_in_contract.snap b/crates/analyzer/tests/snapshots/errors__duplicate_method_in_contract.snap index 27a058a630..e09c88bd41 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_method_in_contract.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_method_in_contract.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: duplicate function names in `contract Foo` ┌─ compile_errors/duplicate_method_in_contract.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_struct_in_module.snap b/crates/analyzer/tests/snapshots/errors__duplicate_struct_in_module.snap index 823b71a585..56af2d5fae 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_struct_in_module.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_struct_in_module.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: a struct named "MyStruct" has already been defined ┌─ compile_errors/duplicate_struct_in_module.fe:1:8 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_typedef_in_module.snap b/crates/analyzer/tests/snapshots/errors__duplicate_typedef_in_module.snap index 712590d674..172367addd 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_typedef_in_module.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_typedef_in_module.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: a type named "bar" has already been defined ┌─ compile_errors/duplicate_typedef_in_module.fe:1:6 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_var_in_child_scope.snap b/crates/analyzer/tests/snapshots/errors__duplicate_var_in_child_scope.snap index 9f9e77a65c..d38c069f10 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_var_in_child_scope.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_var_in_child_scope.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: duplicate definition of variable `sum` ┌─ compile_errors/duplicate_var_in_child_scope.fe:4:17 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_var_in_contract_method.snap b/crates/analyzer/tests/snapshots/errors__duplicate_var_in_contract_method.snap index 36aa3241ab..4dca2362d4 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_var_in_contract_method.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_var_in_contract_method.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: duplicate definition of variable `foo` ┌─ compile_errors/duplicate_var_in_contract_method.fe:3:13 diff --git a/crates/analyzer/tests/snapshots/errors__duplicate_var_in_for_loop.snap b/crates/analyzer/tests/snapshots/errors__duplicate_var_in_for_loop.snap index aa834cba2e..9b82e32eeb 100644 --- a/crates/analyzer/tests/snapshots/errors__duplicate_var_in_for_loop.snap +++ b/crates/analyzer/tests/snapshots/errors__duplicate_var_in_for_loop.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: duplicate definition of variable `x` ┌─ compile_errors/duplicate_var_in_for_loop.fe:3:13 diff --git a/crates/analyzer/tests/snapshots/errors__emittable_not_implementable.snap b/crates/analyzer/tests/snapshots/errors__emittable_not_implementable.snap index 2e1b9f098d..7b0a5a912d 100644 --- a/crates/analyzer/tests/snapshots/errors__emittable_not_implementable.snap +++ b/crates/analyzer/tests/snapshots/errors__emittable_not_implementable.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: struct OutOfReachMarker is private ┌─ compile_errors/emittable_not_implementable.fe:1:31 diff --git a/crates/analyzer/tests/snapshots/errors__external_call_type_error.snap b/crates/analyzer/tests/snapshots/errors__external_call_type_error.snap index 85d9a83c53..491c442e9a 100644 --- a/crates/analyzer/tests/snapshots/errors__external_call_type_error.snap +++ b/crates/analyzer/tests/snapshots/errors__external_call_type_error.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: incorrect type for `bar` argument at position 0 ┌─ compile_errors/external_call_type_error.fe:7:29 diff --git a/crates/analyzer/tests/snapshots/errors__external_call_wrong_number_of_params.snap b/crates/analyzer/tests/snapshots/errors__external_call_wrong_number_of_params.snap index e9f0a2fe6b..961db4d0ff 100644 --- a/crates/analyzer/tests/snapshots/errors__external_call_wrong_number_of_params.snap +++ b/crates/analyzer/tests/snapshots/errors__external_call_wrong_number_of_params.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `bar` expects 2 arguments, but 1 was provided ┌─ compile_errors/external_call_wrong_number_of_params.fe:7:25 diff --git a/crates/analyzer/tests/snapshots/errors__for_loop_sto_iter_no_copy.snap b/crates/analyzer/tests/snapshots/errors__for_loop_sto_iter_no_copy.snap index ae42c96f52..257fc37b14 100644 --- a/crates/analyzer/tests/snapshots/errors__for_loop_sto_iter_no_copy.snap +++ b/crates/analyzer/tests/snapshots/errors__for_loop_sto_iter_no_copy.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: value must be copied to memory ┌─ compile_errors/for_loop_sto_iter_no_copy.fe:5:18 diff --git a/crates/analyzer/tests/snapshots/errors__indexed_event.snap b/crates/analyzer/tests/snapshots/errors__indexed_event.snap index 27941abee0..939dafa5d6 100644 --- a/crates/analyzer/tests/snapshots/errors__indexed_event.snap +++ b/crates/analyzer/tests/snapshots/errors__indexed_event.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: more than three indexed fields in `event MyEvent` ┌─ compile_errors/indexed_event.fe:3:5 diff --git a/crates/analyzer/tests/snapshots/errors__init_call_on_external_contract.snap b/crates/analyzer/tests/snapshots/errors__init_call_on_external_contract.snap index 1e549645ec..0335a6463d 100644 --- a/crates/analyzer/tests/snapshots/errors__init_call_on_external_contract.snap +++ b/crates/analyzer/tests/snapshots/errors__init_call_on_external_contract.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `__init__()` is not directly callable ┌─ compile_errors/init_call_on_external_contract.fe:11:13 diff --git a/crates/analyzer/tests/snapshots/errors__init_call_on_self.snap b/crates/analyzer/tests/snapshots/errors__init_call_on_self.snap index ec3b41debc..de45be904b 100644 --- a/crates/analyzer/tests/snapshots/errors__init_call_on_self.snap +++ b/crates/analyzer/tests/snapshots/errors__init_call_on_self.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `__init__()` is not directly callable ┌─ compile_errors/init_call_on_self.fe:5:14 diff --git a/crates/analyzer/tests/snapshots/errors__init_duplicate_def.snap b/crates/analyzer/tests/snapshots/errors__init_duplicate_def.snap index 7cf87c27e1..bb00d9f287 100644 --- a/crates/analyzer/tests/snapshots/errors__init_duplicate_def.snap +++ b/crates/analyzer/tests/snapshots/errors__init_duplicate_def.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `fn __init__()` is defined multiple times in `contract Foo` ┌─ compile_errors/init_duplicate_def.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/errors__init_wrong_return_type.snap b/crates/analyzer/tests/snapshots/errors__init_wrong_return_type.snap index c08bc7e059..742f99a133 100644 --- a/crates/analyzer/tests/snapshots/errors__init_wrong_return_type.snap +++ b/crates/analyzer/tests/snapshots/errors__init_wrong_return_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `__init__` function has incorrect return type ┌─ compile_errors/init_wrong_return_type.fe:2:26 diff --git a/crates/analyzer/tests/snapshots/errors__int_type_constructor_generic_arg.snap b/crates/analyzer/tests/snapshots/errors__int_type_constructor_generic_arg.snap index f306f3ec61..024f9ea407 100644 --- a/crates/analyzer/tests/snapshots/errors__int_type_constructor_generic_arg.snap +++ b/crates/analyzer/tests/snapshots/errors__int_type_constructor_generic_arg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `u256` type is not generic ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__int_type_constructor_generic_arg_list.snap b/crates/analyzer/tests/snapshots/errors__int_type_constructor_generic_arg_list.snap index f672c3b1b5..27c63bebab 100644 --- a/crates/analyzer/tests/snapshots/errors__int_type_constructor_generic_arg_list.snap +++ b/crates/analyzer/tests/snapshots/errors__int_type_constructor_generic_arg_list.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `u256` type is not generic ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__int_type_generic_arg.snap b/crates/analyzer/tests/snapshots/errors__int_type_generic_arg.snap index 0dd7b4c6b2..10aee43d0c 100644 --- a/crates/analyzer/tests/snapshots/errors__int_type_generic_arg.snap +++ b/crates/analyzer/tests/snapshots/errors__int_type_generic_arg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `u256` type is not generic ┌─ [snippet]:3:14 diff --git a/crates/analyzer/tests/snapshots/errors__int_type_generic_arg_list.snap b/crates/analyzer/tests/snapshots/errors__int_type_generic_arg_list.snap index 7ca3281f75..48c4789217 100644 --- a/crates/analyzer/tests/snapshots/errors__int_type_generic_arg_list.snap +++ b/crates/analyzer/tests/snapshots/errors__int_type_generic_arg_list.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `u256` type is not generic ┌─ [snippet]:3:14 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_ascii.snap b/crates/analyzer/tests/snapshots/errors__invalid_ascii.snap index bb7ab7ed39..7c1e58c42b 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_ascii.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_ascii.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: String contains invalid byte sequence ┌─ [snippet]:3:13 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_block_field.snap b/crates/analyzer/tests/snapshots/errors__invalid_block_field.snap index be764cc3b3..3ad1a26446 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_block_field.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_block_field.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: cannot find value `block` in this scope ┌─ compile_errors/invalid_block_field.fe:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_chain_field.snap b/crates/analyzer/tests/snapshots/errors__invalid_chain_field.snap index 5b5b4bac5c..e56cbdf919 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_chain_field.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_chain_field.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: cannot find value `chain` in this scope ┌─ compile_errors/invalid_chain_field.fe:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_comparisons.snap b/crates/analyzer/tests/snapshots/errors__invalid_comparisons.snap index b77c086b89..dc1bd3e43a 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_comparisons.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_comparisons.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `Point` type can't be compared with the `==` operator ┌─ compile_errors/invalid_comparisons.fe:13:10 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_contract_field.snap b/crates/analyzer/tests/snapshots/errors__invalid_contract_field.snap index efc9a03615..e02c5b75ff 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_contract_field.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_contract_field.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: No field `bar` exists on this contract ┌─ compile_errors/invalid_contract_field.fe:5:14 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_generic_bound.snap b/crates/analyzer/tests/snapshots/errors__invalid_generic_bound.snap index 61fb23cfc0..b53129ea83 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_generic_bound.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_generic_bound.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: expected trait, found type `bool` ┌─ compile_errors/invalid_generic_bound.fe:2:19 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_impl_location.snap b/crates/analyzer/tests/snapshots/errors__invalid_impl_location.snap index 7ef949f9b5..a253e08f4d 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_impl_location.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_impl_location.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: illegal `impl`. Either type or trait must be in the same ingot as the `impl` ┌─ compile_errors/invalid_impl_location.fe:3:1 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_impl_type.snap b/crates/analyzer/tests/snapshots/errors__invalid_impl_type.snap index 14c71a7d97..e8754a34e8 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_impl_type.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_impl_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `impl` blocks aren't allowed for Map ┌─ compile_errors/invalid_impl_type.fe:3:1 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_msg_field.snap b/crates/analyzer/tests/snapshots/errors__invalid_msg_field.snap index 625fc10866..a70a2939c1 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_msg_field.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_msg_field.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: cannot find value `msg` in this scope ┌─ compile_errors/invalid_msg_field.fe:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_repeat_length.snap b/crates/analyzer/tests/snapshots/errors__invalid_repeat_length.snap index 737958b5a7..6e83ca0c5c 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_repeat_length.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_repeat_length.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: expected a constant u256 value ┌─ compile_errors/invalid_repeat_length.fe:3:45 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_string_field.snap b/crates/analyzer/tests/snapshots/errors__invalid_string_field.snap index 908d2f5fd9..612834641b 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_string_field.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_string_field.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: No field `does_not_exist` exists on type String<0> ┌─ compile_errors/invalid_string_field.fe:3:12 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_struct_attribute.snap b/crates/analyzer/tests/snapshots/errors__invalid_struct_attribute.snap index 0d85c0b4d4..7f6108efcb 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_struct_attribute.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_struct_attribute.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: Invalid attribute ┌─ compile_errors/invalid_struct_attribute.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_struct_field.snap b/crates/analyzer/tests/snapshots/errors__invalid_struct_field.snap index 60577d03d3..575dbdc4c3 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_struct_field.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_struct_field.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: No field `foo` exists on struct `Bar` ┌─ compile_errors/invalid_struct_field.fe:9:18 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_tuple_field.snap b/crates/analyzer/tests/snapshots/errors__invalid_tuple_field.snap index 1ec5cd376b..2a63f58d9a 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_tuple_field.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_tuple_field.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: No field `item5` exists on this tuple ┌─ compile_errors/invalid_tuple_field.fe:5:18 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_tx_field.snap b/crates/analyzer/tests/snapshots/errors__invalid_tx_field.snap index 1ca1268c22..5466991d94 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_tx_field.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_tx_field.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: cannot find value `tx` in this scope ┌─ compile_errors/invalid_tx_field.fe:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_var_declaration_1.snap b/crates/analyzer/tests/snapshots/errors__invalid_var_declaration_1.snap index 799ff91fa2..601fdcb74c 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_var_declaration_1.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_var_declaration_1.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: invalid declaration ┌─ compile_errors/invalid_var_declaration_1.fe:3:13 diff --git a/crates/analyzer/tests/snapshots/errors__invalid_var_declaration_2.snap b/crates/analyzer/tests/snapshots/errors__invalid_var_declaration_2.snap index 1591e69763..279cc7570a 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_var_declaration_2.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_var_declaration_2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: invalid declaration ┌─ compile_errors/invalid_var_declaration_2.fe:3:13 diff --git a/crates/analyzer/tests/snapshots/errors__invert_non_numeric.snap b/crates/analyzer/tests/snapshots/errors__invert_non_numeric.snap index 0760546181..13c65c21a8 100644 --- a/crates/analyzer/tests/snapshots/errors__invert_non_numeric.snap +++ b/crates/analyzer/tests/snapshots/errors__invert_non_numeric.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: cannot apply unary operator `~` to type `bool` ┌─ [snippet]:3:4 diff --git a/crates/analyzer/tests/snapshots/errors__issue_451.snap b/crates/analyzer/tests/snapshots/errors__issue_451.snap index 1ff6800d2c..362ab8cdb9 100644 --- a/crates/analyzer/tests/snapshots/errors__issue_451.snap +++ b/crates/analyzer/tests/snapshots/errors__issue_451.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: duplicate function names in `contract o` ┌─ compile_errors/issue_451.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/errors__mainless_ingot.snap b/crates/analyzer/tests/snapshots/errors__mainless_ingot.snap index addec8cad8..7f9cd9c762 100644 --- a/crates/analyzer/tests/snapshots/errors__mainless_ingot.snap +++ b/crates/analyzer/tests/snapshots/errors__mainless_ingot.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: error_string_ingot(&path) - --- error: The ingot named "test_ingot" is missing a `main` module. Please add a `src/main.fe` file to the base directory. diff --git a/crates/analyzer/tests/snapshots/errors__map_constructor.snap b/crates/analyzer/tests/snapshots/errors__map_constructor.snap index e572c4063e..bb35b1b91c 100644 --- a/crates/analyzer/tests/snapshots/errors__map_constructor.snap +++ b/crates/analyzer/tests/snapshots/errors__map_constructor.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `Map` type is not callable ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__map_int_type_arg.snap b/crates/analyzer/tests/snapshots/errors__map_int_type_arg.snap index 631b9596ab..1548d296eb 100644 --- a/crates/analyzer/tests/snapshots/errors__map_int_type_arg.snap +++ b/crates/analyzer/tests/snapshots/errors__map_int_type_arg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `Map` value must be a type ┌─ [snippet]:3:23 diff --git a/crates/analyzer/tests/snapshots/errors__map_int_type_args.snap b/crates/analyzer/tests/snapshots/errors__map_int_type_args.snap index 544cb4f445..9e0fa16f16 100644 --- a/crates/analyzer/tests/snapshots/errors__map_int_type_args.snap +++ b/crates/analyzer/tests/snapshots/errors__map_int_type_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `Map` key must be a type ┌─ [snippet]:3:14 diff --git a/crates/analyzer/tests/snapshots/errors__map_map_key_type.snap b/crates/analyzer/tests/snapshots/errors__map_map_key_type.snap index 6a35981c9c..12dab7a558 100644 --- a/crates/analyzer/tests/snapshots/errors__map_map_key_type.snap +++ b/crates/analyzer/tests/snapshots/errors__map_map_key_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `Map` key must be a primitive type ┌─ [snippet]:3:14 diff --git a/crates/analyzer/tests/snapshots/errors__map_no_type_arg_list.snap b/crates/analyzer/tests/snapshots/errors__map_no_type_arg_list.snap index aa3cabc0c4..73cf52e48e 100644 --- a/crates/analyzer/tests/snapshots/errors__map_no_type_arg_list.snap +++ b/crates/analyzer/tests/snapshots/errors__map_no_type_arg_list.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: missing generic arguments for type `Map` ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__map_no_type_args.snap b/crates/analyzer/tests/snapshots/errors__map_no_type_args.snap index 955bbe35fc..81f82ce410 100644 --- a/crates/analyzer/tests/snapshots/errors__map_no_type_args.snap +++ b/crates/analyzer/tests/snapshots/errors__map_no_type_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `Map` expects 2 generic arguments, but 0 were provided ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__map_one_type_arg.snap b/crates/analyzer/tests/snapshots/errors__map_one_type_arg.snap index 0fd915d2c5..5c94921bf9 100644 --- a/crates/analyzer/tests/snapshots/errors__map_one_type_arg.snap +++ b/crates/analyzer/tests/snapshots/errors__map_one_type_arg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `Map` expects 2 generic arguments, but 1 was provided ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__map_three_type_args.snap b/crates/analyzer/tests/snapshots/errors__map_three_type_args.snap index 30879c6618..fb410eee29 100644 --- a/crates/analyzer/tests/snapshots/errors__map_three_type_args.snap +++ b/crates/analyzer/tests/snapshots/errors__map_three_type_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `Map` expects 2 generic arguments, but 3 were provided ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__mislabeled_call_args.snap b/crates/analyzer/tests/snapshots/errors__mislabeled_call_args.snap index 16b7d24e6f..6b42d84a6e 100644 --- a/crates/analyzer/tests/snapshots/errors__mislabeled_call_args.snap +++ b/crates/analyzer/tests/snapshots/errors__mislabeled_call_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: argument label mismatch ┌─ compile_errors/mislabeled_call_args.fe:3:13 diff --git a/crates/analyzer/tests/snapshots/errors__mislabeled_call_args_external_contract_call.snap b/crates/analyzer/tests/snapshots/errors__mislabeled_call_args_external_contract_call.snap index c893ecf8b0..036aa6f359 100644 --- a/crates/analyzer/tests/snapshots/errors__mislabeled_call_args_external_contract_call.snap +++ b/crates/analyzer/tests/snapshots/errors__mislabeled_call_args_external_contract_call.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: argument label mismatch ┌─ compile_errors/mislabeled_call_args_external_contract_call.fe:9:29 diff --git a/crates/analyzer/tests/snapshots/errors__mislabeled_call_args_self.snap b/crates/analyzer/tests/snapshots/errors__mislabeled_call_args_self.snap index 8b664f05d7..584cf5c81b 100644 --- a/crates/analyzer/tests/snapshots/errors__mislabeled_call_args_self.snap +++ b/crates/analyzer/tests/snapshots/errors__mislabeled_call_args_self.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: argument label mismatch ┌─ compile_errors/mislabeled_call_args_self.fe:3:18 diff --git a/crates/analyzer/tests/snapshots/errors__mismatch_return_type.snap b/crates/analyzer/tests/snapshots/errors__mismatch_return_type.snap index 18e4973cec..8d8839101c 100644 --- a/crates/analyzer/tests/snapshots/errors__mismatch_return_type.snap +++ b/crates/analyzer/tests/snapshots/errors__mismatch_return_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: expected function to return `address` but was `u256` ┌─ compile_errors/mismatch_return_type.fe:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__missing_return.snap b/crates/analyzer/tests/snapshots/errors__missing_return.snap index fc685d65ea..ddc7433ce4 100644 --- a/crates/analyzer/tests/snapshots/errors__missing_return.snap +++ b/crates/analyzer/tests/snapshots/errors__missing_return.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: function body is missing a return or revert statement ┌─ compile_errors/missing_return.fe:4:12 diff --git a/crates/analyzer/tests/snapshots/errors__missing_return_after_if.snap b/crates/analyzer/tests/snapshots/errors__missing_return_after_if.snap index 5259f972fb..cd5564c5fd 100644 --- a/crates/analyzer/tests/snapshots/errors__missing_return_after_if.snap +++ b/crates/analyzer/tests/snapshots/errors__missing_return_after_if.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: function body is missing a return or revert statement ┌─ compile_errors/missing_return_after_if.fe:2:12 diff --git a/crates/analyzer/tests/snapshots/errors__missing_return_in_else.snap b/crates/analyzer/tests/snapshots/errors__missing_return_in_else.snap index 6232cd4943..0c6d2a2a78 100644 --- a/crates/analyzer/tests/snapshots/errors__missing_return_in_else.snap +++ b/crates/analyzer/tests/snapshots/errors__missing_return_in_else.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: function body is missing a return or revert statement ┌─ compile_errors/missing_return_in_else.fe:2:12 diff --git a/crates/analyzer/tests/snapshots/errors__missing_self.snap b/crates/analyzer/tests/snapshots/errors__missing_self.snap index 1814b1c549..e0fac09c13 100644 --- a/crates/analyzer/tests/snapshots/errors__missing_self.snap +++ b/crates/analyzer/tests/snapshots/errors__missing_self.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `self` is not defined ┌─ compile_errors/missing_self.fe:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__module_const_call.snap b/crates/analyzer/tests/snapshots/errors__module_const_call.snap index 2f727a20f3..74730b56ec 100644 --- a/crates/analyzer/tests/snapshots/errors__module_const_call.snap +++ b/crates/analyzer/tests/snapshots/errors__module_const_call.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `FOO` is not callable ┌─ compile_errors/module_const_call.fe:5:9 diff --git a/crates/analyzer/tests/snapshots/errors__module_const_non_base_type.snap b/crates/analyzer/tests/snapshots/errors__module_const_non_base_type.snap index a42c9a5da4..32fa9ef730 100644 --- a/crates/analyzer/tests/snapshots/errors__module_const_non_base_type.snap +++ b/crates/analyzer/tests/snapshots/errors__module_const_non_base_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: Non-primitive types not yet supported for constants ┌─ compile_errors/module_const_non_base_type.fe:1:12 diff --git a/crates/analyzer/tests/snapshots/errors__module_const_unknown_type.snap b/crates/analyzer/tests/snapshots/errors__module_const_unknown_type.snap index 2cca3768e4..579936fad1 100644 --- a/crates/analyzer/tests/snapshots/errors__module_const_unknown_type.snap +++ b/crates/analyzer/tests/snapshots/errors__module_const_unknown_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: undefined type ┌─ compile_errors/module_const_unknown_type.fe:1:12 diff --git a/crates/analyzer/tests/snapshots/errors__mut_mistakes.snap b/crates/analyzer/tests/snapshots/errors__mut_mistakes.snap index c69d08b56d..d96641d3f1 100644 --- a/crates/analyzer/tests/snapshots/errors__mut_mistakes.snap +++ b/crates/analyzer/tests/snapshots/errors__mut_mistakes.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: cannot modify `self.x`, as it is not mutable ┌─ compile_errors/mut_mistakes.fe:6:9 diff --git a/crates/analyzer/tests/snapshots/errors__needs_mem_copy.snap b/crates/analyzer/tests/snapshots/errors__needs_mem_copy.snap index 58d6e6feee..4f93b193e5 100644 --- a/crates/analyzer/tests/snapshots/errors__needs_mem_copy.snap +++ b/crates/analyzer/tests/snapshots/errors__needs_mem_copy.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: value must be copied to memory ┌─ compile_errors/needs_mem_copy.fe:5:20 diff --git a/crates/analyzer/tests/snapshots/errors__non_bool_and.snap b/crates/analyzer/tests/snapshots/errors__non_bool_and.snap index 9142b19fb7..3a81468550 100644 --- a/crates/analyzer/tests/snapshots/errors__non_bool_and.snap +++ b/crates/analyzer/tests/snapshots/errors__non_bool_and.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: type mismatch ┌─ [snippet]:5:13 diff --git a/crates/analyzer/tests/snapshots/errors__non_bool_or.snap b/crates/analyzer/tests/snapshots/errors__non_bool_or.snap index 863e5ed351..109cdc2609 100644 --- a/crates/analyzer/tests/snapshots/errors__non_bool_or.snap +++ b/crates/analyzer/tests/snapshots/errors__non_bool_or.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: type mismatch ┌─ [snippet]:5:12 diff --git a/crates/analyzer/tests/snapshots/errors__non_pub_init.snap b/crates/analyzer/tests/snapshots/errors__non_pub_init.snap index 0744a3d70e..659a9d6d25 100644 --- a/crates/analyzer/tests/snapshots/errors__non_pub_init.snap +++ b/crates/analyzer/tests/snapshots/errors__non_pub_init.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `__init__` function is not public ┌─ compile_errors/non_pub_init.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/errors__not_callable.snap b/crates/analyzer/tests/snapshots/errors__not_callable.snap index 1ad8c6bc31..3f00c5c780 100644 --- a/crates/analyzer/tests/snapshots/errors__not_callable.snap +++ b/crates/analyzer/tests/snapshots/errors__not_callable.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `u256` type is not callable ┌─ compile_errors/not_callable.fe:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__not_emittable.snap b/crates/analyzer/tests/snapshots/errors__not_emittable.snap index fa86be900e..947ef2f51e 100644 --- a/crates/analyzer/tests/snapshots/errors__not_emittable.snap +++ b/crates/analyzer/tests/snapshots/errors__not_emittable.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `emit` takes `mut self` ┌─ compile_errors/not_emittable.fe:15:9 diff --git a/crates/analyzer/tests/snapshots/errors__not_in_scope.snap b/crates/analyzer/tests/snapshots/errors__not_in_scope.snap index a02b2bf7fe..4132ec499a 100644 --- a/crates/analyzer/tests/snapshots/errors__not_in_scope.snap +++ b/crates/analyzer/tests/snapshots/errors__not_in_scope.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: cannot find value `y` in this scope ┌─ compile_errors/not_in_scope.fe:8:16 diff --git a/crates/analyzer/tests/snapshots/errors__not_in_scope_2.snap b/crates/analyzer/tests/snapshots/errors__not_in_scope_2.snap index da727d50fa..5b085706cb 100644 --- a/crates/analyzer/tests/snapshots/errors__not_in_scope_2.snap +++ b/crates/analyzer/tests/snapshots/errors__not_in_scope_2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: cannot find value `y` in this scope ┌─ compile_errors/not_in_scope_2.fe:8:16 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i128_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_i128_neg.snap index b058c2bb9c..2697144e42 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i128_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i128_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i128` ┌─ [snippet]:3:8 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i128_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_i128_pos.snap index c55d43c270..d34cb7276f 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i128_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i128_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i128` ┌─ [snippet]:3:8 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i16_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_i16_neg.snap index 0c4a5b1d90..62565bbe0d 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i16_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i16_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i16` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i16_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_i16_pos.snap index 7a0a5e10ec..9be13cc203 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i16_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i16_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i16` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i256_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_i256_neg.snap index 81c21ab0ab..7dc889a6c3 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i256_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i256_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i256` ┌─ [snippet]:3:8 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i256_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_i256_pos.snap index f3613a2130..1166e203ef 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i256_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i256_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i256` ┌─ [snippet]:3:8 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i32_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_i32_neg.snap index c56fee12f2..710fcb2e1c 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i32_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i32_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i32` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i32_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_i32_pos.snap index 088166b13b..a27120fd88 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i32_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i32_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i32` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i64_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_i64_neg.snap index 93f4053551..2f4eb69812 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i64_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i64_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i64` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i64_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_i64_pos.snap index 1c41aef838..421d3eeb90 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i64_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i64_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i64` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i8_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_i8_neg.snap index 98c1efbf3d..90f06fa876 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i8_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i8_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i8` ┌─ [snippet]:3:15 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_i8_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_i8_pos.snap index f9d6eb88bd..0aab073959 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_i8_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_i8_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `i8` ┌─ [snippet]:3:15 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_literal_too_big.snap b/crates/analyzer/tests/snapshots/errors__overflow_literal_too_big.snap index b55a46dc0b..fa580d9ad0 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_literal_too_big.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_literal_too_big.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u256` ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_literal_too_small.snap b/crates/analyzer/tests/snapshots/errors__overflow_literal_too_small.snap index bc2e03b18b..5d84932171 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_literal_too_small.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_literal_too_small.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u256` ┌─ [snippet]:3:4 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u128_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_u128_neg.snap index f2b7ae7d86..e1b328c9b1 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u128_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u128_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u128` ┌─ [snippet]:3:17 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u128_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_u128_pos.snap index c74024ead9..361b3e932d 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u128_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u128_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u128` ┌─ [snippet]:3:8 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u16_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_u16_neg.snap index 3b5e064ec7..4ae73ba004 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u16_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u16_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u16` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u16_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_u16_pos.snap index 617a27ea3f..0aff0fda48 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u16_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u16_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u16` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u256_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_u256_neg.snap index ba910914a1..031574d3bf 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u256_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u256_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u256` ┌─ [snippet]:3:8 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u256_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_u256_pos.snap index d2a49d9668..383cee73bb 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u256_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u256_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u256` ┌─ [snippet]:3:8 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u32_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_u32_neg.snap index d65f60bdb4..9f9767eb00 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u32_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u32_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u32` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u32_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_u32_pos.snap index a706c839fd..74a8b392fa 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u32_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u32_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u32` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u64_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_u64_neg.snap index 594c441dfb..1339bcdeea 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u64_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u64_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u64` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u64_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_u64_pos.snap index a9f8fff74e..59f046235f 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u64_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u64_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u64` ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u8_assignment.snap b/crates/analyzer/tests/snapshots/errors__overflow_u8_assignment.snap index 367540479e..4e22bed91d 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u8_assignment.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u8_assignment.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u8` ┌─ [snippet]:3:15 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u8_neg.snap b/crates/analyzer/tests/snapshots/errors__overflow_u8_neg.snap index 788c2f6767..f6ffd2b0be 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u8_neg.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u8_neg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u8` ┌─ [snippet]:3:6 diff --git a/crates/analyzer/tests/snapshots/errors__overflow_u8_pos.snap b/crates/analyzer/tests/snapshots/errors__overflow_u8_pos.snap index 1acf493d34..278b57331f 100644 --- a/crates/analyzer/tests/snapshots/errors__overflow_u8_pos.snap +++ b/crates/analyzer/tests/snapshots/errors__overflow_u8_pos.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: literal out of range for `u8` ┌─ [snippet]:3:6 diff --git a/crates/analyzer/tests/snapshots/errors__pow_with_signed_exponent.snap b/crates/analyzer/tests/snapshots/errors__pow_with_signed_exponent.snap index 72cdf31ead..49b994f5ac 100644 --- a/crates/analyzer/tests/snapshots/errors__pow_with_signed_exponent.snap +++ b/crates/analyzer/tests/snapshots/errors__pow_with_signed_exponent.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: cannot find value `exp` in this scope ┌─ [snippet]:5:11 diff --git a/crates/analyzer/tests/snapshots/errors__pow_with_wrong_capacity.snap b/crates/analyzer/tests/snapshots/errors__pow_with_wrong_capacity.snap index dfa7063a76..1f0b8b2087 100644 --- a/crates/analyzer/tests/snapshots/errors__pow_with_wrong_capacity.snap +++ b/crates/analyzer/tests/snapshots/errors__pow_with_wrong_capacity.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: incompatible `**` operand types ┌─ [snippet]:5:3 diff --git a/crates/analyzer/tests/snapshots/errors__private_struct_field.snap b/crates/analyzer/tests/snapshots/errors__private_struct_field.snap index 3073fcf05c..523b26bd1d 100644 --- a/crates/analyzer/tests/snapshots/errors__private_struct_field.snap +++ b/crates/analyzer/tests/snapshots/errors__private_struct_field.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: Can not access private field `id` on struct `Bar` ┌─ compile_errors/private_struct_field.fe:9:18 diff --git a/crates/analyzer/tests/snapshots/errors__return_addition_with_mixed_types.snap b/crates/analyzer/tests/snapshots/errors__return_addition_with_mixed_types.snap index 16d1677cae..7d4ac9cfe1 100644 --- a/crates/analyzer/tests/snapshots/errors__return_addition_with_mixed_types.snap +++ b/crates/analyzer/tests/snapshots/errors__return_addition_with_mixed_types.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `+` operand types are not compatible ┌─ compile_errors/return_addition_with_mixed_types.fe:3:16 diff --git a/crates/analyzer/tests/snapshots/errors__return_call_to_fn_with_param_type_mismatch.snap b/crates/analyzer/tests/snapshots/errors__return_call_to_fn_with_param_type_mismatch.snap index 5bd5b88e9e..31dd502113 100644 --- a/crates/analyzer/tests/snapshots/errors__return_call_to_fn_with_param_type_mismatch.snap +++ b/crates/analyzer/tests/snapshots/errors__return_call_to_fn_with_param_type_mismatch.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: incorrect type for `foo` argument at position 0 ┌─ compile_errors/return_call_to_fn_with_param_type_mismatch.fe:7:20 diff --git a/crates/analyzer/tests/snapshots/errors__return_call_to_fn_without_return.snap b/crates/analyzer/tests/snapshots/errors__return_call_to_fn_without_return.snap index 5d656f3c82..533c123c19 100644 --- a/crates/analyzer/tests/snapshots/errors__return_call_to_fn_without_return.snap +++ b/crates/analyzer/tests/snapshots/errors__return_call_to_fn_without_return.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: expected function to return `u256` but was `()` ┌─ compile_errors/return_call_to_fn_without_return.fe:7:9 diff --git a/crates/analyzer/tests/snapshots/errors__return_from_init.snap b/crates/analyzer/tests/snapshots/errors__return_from_init.snap index 6208fabf96..e0d8250d8d 100644 --- a/crates/analyzer/tests/snapshots/errors__return_from_init.snap +++ b/crates/analyzer/tests/snapshots/errors__return_from_init.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `__init__` function has incorrect return type ┌─ compile_errors/return_from_init.fe:2:26 diff --git a/crates/analyzer/tests/snapshots/errors__return_lt_mixed_types.snap b/crates/analyzer/tests/snapshots/errors__return_lt_mixed_types.snap index e1b05b8a80..fa1e8554db 100644 --- a/crates/analyzer/tests/snapshots/errors__return_lt_mixed_types.snap +++ b/crates/analyzer/tests/snapshots/errors__return_lt_mixed_types.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: type mismatch ┌─ compile_errors/return_lt_mixed_types.fe:3:20 diff --git a/crates/analyzer/tests/snapshots/errors__return_type_not_fixedsize.snap b/crates/analyzer/tests/snapshots/errors__return_type_not_fixedsize.snap index 1c4a7ae170..17427becc7 100644 --- a/crates/analyzer/tests/snapshots/errors__return_type_not_fixedsize.snap +++ b/crates/analyzer/tests/snapshots/errors__return_type_not_fixedsize.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: function return type must have a fixed size ┌─ compile_errors/return_type_not_fixedsize.fe:2:19 diff --git a/crates/analyzer/tests/snapshots/errors__return_type_undefined.snap b/crates/analyzer/tests/snapshots/errors__return_type_undefined.snap index 8184e0f0c7..f073abbf55 100644 --- a/crates/analyzer/tests/snapshots/errors__return_type_undefined.snap +++ b/crates/analyzer/tests/snapshots/errors__return_type_undefined.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: undefined type ┌─ compile_errors/return_type_undefined.fe:2:19 diff --git a/crates/analyzer/tests/snapshots/errors__revert_reason_not_struct.snap b/crates/analyzer/tests/snapshots/errors__revert_reason_not_struct.snap index a99ddfb95e..0d4238e8c5 100644 --- a/crates/analyzer/tests/snapshots/errors__revert_reason_not_struct.snap +++ b/crates/analyzer/tests/snapshots/errors__revert_reason_not_struct.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `revert` error must be a struct ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__revert_sto_error_no_copy.snap b/crates/analyzer/tests/snapshots/errors__revert_sto_error_no_copy.snap index ac9ec2644b..714ccdbe6e 100644 --- a/crates/analyzer/tests/snapshots/errors__revert_sto_error_no_copy.snap +++ b/crates/analyzer/tests/snapshots/errors__revert_sto_error_no_copy.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `revert` value must be copied to memory ┌─ compile_errors/revert_sto_error_no_copy.fe:7:16 diff --git a/crates/analyzer/tests/snapshots/errors__self_in_standalone_fn.snap b/crates/analyzer/tests/snapshots/errors__self_in_standalone_fn.snap index 079e045ce8..e9600af362 100644 --- a/crates/analyzer/tests/snapshots/errors__self_in_standalone_fn.snap +++ b/crates/analyzer/tests/snapshots/errors__self_in_standalone_fn.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `self` can only be used in contract, struct, trait or impl functions ┌─ compile_errors/self_in_standalone_fn.fe:1:12 diff --git a/crates/analyzer/tests/snapshots/errors__self_misuse.snap b/crates/analyzer/tests/snapshots/errors__self_misuse.snap index 09fc6566b2..faef316316 100644 --- a/crates/analyzer/tests/snapshots/errors__self_misuse.snap +++ b/crates/analyzer/tests/snapshots/errors__self_misuse.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `self` can't be used as a variable name ┌─ compile_errors/self_misuse.fe:2:9 diff --git a/crates/analyzer/tests/snapshots/errors__self_not_first.snap b/crates/analyzer/tests/snapshots/errors__self_not_first.snap index afd6235403..1259d5f153 100644 --- a/crates/analyzer/tests/snapshots/errors__self_not_first.snap +++ b/crates/analyzer/tests/snapshots/errors__self_not_first.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `self` is not the first parameter ┌─ compile_errors/self_not_first.fe:2:28 diff --git a/crates/analyzer/tests/snapshots/errors__self_type_misuse.snap b/crates/analyzer/tests/snapshots/errors__self_type_misuse.snap index 2ae0e6fb46..61ab2201f1 100644 --- a/crates/analyzer/tests/snapshots/errors__self_type_misuse.snap +++ b/crates/analyzer/tests/snapshots/errors__self_type_misuse.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: failed to parse type description ┌─ compile_errors/self_type_misuse.fe:17:26 diff --git a/crates/analyzer/tests/snapshots/errors__shadow_builtin_fn_with_var.snap b/crates/analyzer/tests/snapshots/errors__shadow_builtin_fn_with_var.snap index 64101e6636..3b8341ff38 100644 --- a/crates/analyzer/tests/snapshots/errors__shadow_builtin_fn_with_var.snap +++ b/crates/analyzer/tests/snapshots/errors__shadow_builtin_fn_with_var.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: variable name conflicts with built-in function ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__shadow_builtin_function.snap b/crates/analyzer/tests/snapshots/errors__shadow_builtin_function.snap index 8c640b4358..cc0fd5923e 100644 --- a/crates/analyzer/tests/snapshots/errors__shadow_builtin_function.snap +++ b/crates/analyzer/tests/snapshots/errors__shadow_builtin_function.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: function name `keccak256` conflicts with built-in function ┌─ compile_errors/shadow_builtin_function.fe:2:12 diff --git a/crates/analyzer/tests/snapshots/errors__shadow_builtin_type.snap b/crates/analyzer/tests/snapshots/errors__shadow_builtin_type.snap index 62ab45e08f..5e9b40882a 100644 --- a/crates/analyzer/tests/snapshots/errors__shadow_builtin_type.snap +++ b/crates/analyzer/tests/snapshots/errors__shadow_builtin_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: type name conflicts with the type named "u256" ┌─ compile_errors/shadow_builtin_type.fe:1:6 diff --git a/crates/analyzer/tests/snapshots/errors__shadow_builtin_type_with_var.snap b/crates/analyzer/tests/snapshots/errors__shadow_builtin_type_with_var.snap index e8b2655939..3b8dc07db4 100644 --- a/crates/analyzer/tests/snapshots/errors__shadow_builtin_type_with_var.snap +++ b/crates/analyzer/tests/snapshots/errors__shadow_builtin_type_with_var.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: variable name conflicts with built-in type ┌─ [snippet]:3:7 diff --git a/crates/analyzer/tests/snapshots/errors__strict_boolean_if_else.snap b/crates/analyzer/tests/snapshots/errors__strict_boolean_if_else.snap index cff196c587..27ba50fb35 100644 --- a/crates/analyzer/tests/snapshots/errors__strict_boolean_if_else.snap +++ b/crates/analyzer/tests/snapshots/errors__strict_boolean_if_else.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `if` statement condition is not bool ┌─ compile_errors/strict_boolean_if_else.fe:3:12 diff --git a/crates/analyzer/tests/snapshots/errors__string_capacity_mismatch.snap b/crates/analyzer/tests/snapshots/errors__string_capacity_mismatch.snap index a61d0319f5..791f21edb6 100644 --- a/crates/analyzer/tests/snapshots/errors__string_capacity_mismatch.snap +++ b/crates/analyzer/tests/snapshots/errors__string_capacity_mismatch.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: string capacity exceeded ┌─ [snippet]:3:13 diff --git a/crates/analyzer/tests/snapshots/errors__string_constructor_no_type_arg_list.snap b/crates/analyzer/tests/snapshots/errors__string_constructor_no_type_arg_list.snap index d742f08666..c59621f24c 100644 --- a/crates/analyzer/tests/snapshots/errors__string_constructor_no_type_arg_list.snap +++ b/crates/analyzer/tests/snapshots/errors__string_constructor_no_type_arg_list.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: missing generic argument for type `String` ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__string_constructor_no_type_args.snap b/crates/analyzer/tests/snapshots/errors__string_constructor_no_type_args.snap index fcbc44cf77..d5fea660d5 100644 --- a/crates/analyzer/tests/snapshots/errors__string_constructor_no_type_args.snap +++ b/crates/analyzer/tests/snapshots/errors__string_constructor_no_type_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `String` expects 1 generic argument, but 0 were provided ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__string_constructor_non_int_type_arg.snap b/crates/analyzer/tests/snapshots/errors__string_constructor_non_int_type_arg.snap index 933e2332ab..34115159e8 100644 --- a/crates/analyzer/tests/snapshots/errors__string_constructor_non_int_type_arg.snap +++ b/crates/analyzer/tests/snapshots/errors__string_constructor_non_int_type_arg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `String` max size must be an integer ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__string_constructor_two_int_type_args.snap b/crates/analyzer/tests/snapshots/errors__string_constructor_two_int_type_args.snap index 6d5e294d23..20f87df064 100644 --- a/crates/analyzer/tests/snapshots/errors__string_constructor_two_int_type_args.snap +++ b/crates/analyzer/tests/snapshots/errors__string_constructor_two_int_type_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `String` expects 1 generic argument, but 2 were provided ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__string_constructor_two_type_args.snap b/crates/analyzer/tests/snapshots/errors__string_constructor_two_type_args.snap index 98196874b2..26983f8ab8 100644 --- a/crates/analyzer/tests/snapshots/errors__string_constructor_two_type_args.snap +++ b/crates/analyzer/tests/snapshots/errors__string_constructor_two_type_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `String` expects 1 generic argument, but 2 were provided ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__string_no_type_arg_list.snap b/crates/analyzer/tests/snapshots/errors__string_no_type_arg_list.snap index aa46881a69..74dc06c5f1 100644 --- a/crates/analyzer/tests/snapshots/errors__string_no_type_arg_list.snap +++ b/crates/analyzer/tests/snapshots/errors__string_no_type_arg_list.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: missing generic argument for type `String` ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__string_no_type_args.snap b/crates/analyzer/tests/snapshots/errors__string_no_type_args.snap index f4ceea688b..0d8d6473fb 100644 --- a/crates/analyzer/tests/snapshots/errors__string_no_type_args.snap +++ b/crates/analyzer/tests/snapshots/errors__string_no_type_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `String` expects 1 generic argument, but 0 were provided ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__string_non_int_type_arg.snap b/crates/analyzer/tests/snapshots/errors__string_non_int_type_arg.snap index 02058f92a4..e6bb83fa0a 100644 --- a/crates/analyzer/tests/snapshots/errors__string_non_int_type_arg.snap +++ b/crates/analyzer/tests/snapshots/errors__string_non_int_type_arg.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `String` max size must be an integer ┌─ [snippet]:3:17 diff --git a/crates/analyzer/tests/snapshots/errors__string_two_int_type_args.snap b/crates/analyzer/tests/snapshots/errors__string_two_int_type_args.snap index 33f19737f1..c0e6466cf9 100644 --- a/crates/analyzer/tests/snapshots/errors__string_two_int_type_args.snap +++ b/crates/analyzer/tests/snapshots/errors__string_two_int_type_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `String` expects 1 generic argument, but 2 were provided ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__string_two_type_args.snap b/crates/analyzer/tests/snapshots/errors__string_two_type_args.snap index eeccb0a97a..6dcaabf63e 100644 --- a/crates/analyzer/tests/snapshots/errors__string_two_type_args.snap +++ b/crates/analyzer/tests/snapshots/errors__string_two_type_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `String` expects 1 generic argument, but 2 were provided ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__struct_call_bad_args.snap b/crates/analyzer/tests/snapshots/errors__struct_call_bad_args.snap index 56138a78ff..eb9fdc691f 100644 --- a/crates/analyzer/tests/snapshots/errors__struct_call_bad_args.snap +++ b/crates/analyzer/tests/snapshots/errors__struct_call_bad_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `House` expects 2 arguments, but 3 were provided ┌─ compile_errors/struct_call_bad_args.fe:8:31 diff --git a/crates/analyzer/tests/snapshots/errors__struct_call_without_kw_args.snap b/crates/analyzer/tests/snapshots/errors__struct_call_without_kw_args.snap index e18d468ee7..0ab8a2ecf6 100644 --- a/crates/analyzer/tests/snapshots/errors__struct_call_without_kw_args.snap +++ b/crates/analyzer/tests/snapshots/errors__struct_call_without_kw_args.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: missing argument label ┌─ compile_errors/struct_call_without_kw_args.fe:8:37 diff --git a/crates/analyzer/tests/snapshots/errors__struct_private_constructor.snap b/crates/analyzer/tests/snapshots/errors__struct_private_constructor.snap index 7f9349b1af..5149aa1831 100644 --- a/crates/analyzer/tests/snapshots/errors__struct_private_constructor.snap +++ b/crates/analyzer/tests/snapshots/errors__struct_private_constructor.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: Can not call private constructor of struct `House` ┌─ compile_errors/struct_private_constructor.fe:2:5 diff --git a/crates/analyzer/tests/snapshots/errors__ternary_type_mismatch.snap b/crates/analyzer/tests/snapshots/errors__ternary_type_mismatch.snap index 75480039c0..bb5bf353b8 100644 --- a/crates/analyzer/tests/snapshots/errors__ternary_type_mismatch.snap +++ b/crates/analyzer/tests/snapshots/errors__ternary_type_mismatch.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `if` test expression must be a `bool` ┌─ [snippet]:3:9 diff --git a/crates/analyzer/tests/snapshots/errors__trait_conflicting_impls.snap b/crates/analyzer/tests/snapshots/errors__trait_conflicting_impls.snap index faf8b54b23..6b75059f02 100644 --- a/crates/analyzer/tests/snapshots/errors__trait_conflicting_impls.snap +++ b/crates/analyzer/tests/snapshots/errors__trait_conflicting_impls.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: duplicate `impl` blocks for trait `Foo` for type `Bar` ┌─ compile_errors/trait_conflicting_impls.fe:6:1 diff --git a/crates/analyzer/tests/snapshots/errors__trait_fn_with_generic_params.snap b/crates/analyzer/tests/snapshots/errors__trait_fn_with_generic_params.snap index f580c42e0a..22e2f55087 100644 --- a/crates/analyzer/tests/snapshots/errors__trait_fn_with_generic_params.snap +++ b/crates/analyzer/tests/snapshots/errors__trait_fn_with_generic_params.snap @@ -1,13 +1,12 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: generic function parameters aren't yet supported outside of struct functions ┌─ compile_errors/trait_fn_with_generic_params.fe:4:18 │ 4 │ fn generic_fn(self, val: T); - │ ^^^^^^^^ This can not appear here + │ ^^^^^^^^ this cannot appear here │ = Hint: Struct functions can have generic parameters diff --git a/crates/analyzer/tests/snapshots/errors__trait_impl_mismatch.snap b/crates/analyzer/tests/snapshots/errors__trait_impl_mismatch.snap index eb7e04823a..f9c494fd85 100644 --- a/crates/analyzer/tests/snapshots/errors__trait_impl_mismatch.snap +++ b/crates/analyzer/tests/snapshots/errors__trait_impl_mismatch.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: method `this_has_wrong_args_in_impl` has incompatible parameters for `this_has_wrong_args_in_impl` of trait `Foo` ┌─ compile_errors/trait_impl_mismatch.fe:3:5 diff --git a/crates/analyzer/tests/snapshots/errors__trait_not_in_scope.snap b/crates/analyzer/tests/snapshots/errors__trait_not_in_scope.snap index ac686e2b3f..e987810013 100644 --- a/crates/analyzer/tests/snapshots/errors__trait_not_in_scope.snap +++ b/crates/analyzer/tests/snapshots/errors__trait_not_in_scope.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: error_string_ingot(&path) - --- error: No method named `do` found for type `u256` in the current scope ┌─ compile_errors/trait_not_in_scope/src/main.fe:4:7 diff --git a/crates/analyzer/tests/snapshots/errors__trait_not_in_scope2.snap b/crates/analyzer/tests/snapshots/errors__trait_not_in_scope2.snap index 650741c5c8..29b23ba58b 100644 --- a/crates/analyzer/tests/snapshots/errors__trait_not_in_scope2.snap +++ b/crates/analyzer/tests/snapshots/errors__trait_not_in_scope2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: error_string_ingot(&path) - --- error: Applicable items exist but are not in scope ┌─ compile_errors/trait_not_in_scope2/src/foo.fe:11:6 diff --git a/crates/analyzer/tests/snapshots/errors__traits_as_fields.snap b/crates/analyzer/tests/snapshots/errors__traits_as_fields.snap index 98e583a0a4..1f3b754ba3 100644 --- a/crates/analyzer/tests/snapshots/errors__traits_as_fields.snap +++ b/crates/analyzer/tests/snapshots/errors__traits_as_fields.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: `Foo` is not a type name ┌─ compile_errors/traits_as_fields.fe:1:7 diff --git a/crates/analyzer/tests/snapshots/errors__traits_with_wrong_bounds.snap b/crates/analyzer/tests/snapshots/errors__traits_with_wrong_bounds.snap index c8f8b24146..a62a4ee790 100644 --- a/crates/analyzer/tests/snapshots/errors__traits_with_wrong_bounds.snap +++ b/crates/analyzer/tests/snapshots/errors__traits_with_wrong_bounds.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: unbounded generic parameters aren't yet supported ┌─ compile_errors/traits_with_wrong_bounds.fe:4:22 diff --git a/crates/analyzer/tests/snapshots/errors__type_constructor_arg_count.snap b/crates/analyzer/tests/snapshots/errors__type_constructor_arg_count.snap index df183c2364..46ae4abb62 100644 --- a/crates/analyzer/tests/snapshots/errors__type_constructor_arg_count.snap +++ b/crates/analyzer/tests/snapshots/errors__type_constructor_arg_count.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `u8` expects 1 argument, but 2 were provided ┌─ [snippet]:3:15 diff --git a/crates/analyzer/tests/snapshots/errors__unary_always_mismatch_type_case_1.snap b/crates/analyzer/tests/snapshots/errors__unary_always_mismatch_type_case_1.snap index cfe901d2c3..990ad07f84 100644 --- a/crates/analyzer/tests/snapshots/errors__unary_always_mismatch_type_case_1.snap +++ b/crates/analyzer/tests/snapshots/errors__unary_always_mismatch_type_case_1.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: Can not apply unary operator ┌─ [snippet]:4:16 diff --git a/crates/analyzer/tests/snapshots/errors__unary_always_mismatch_type_case_2.snap b/crates/analyzer/tests/snapshots/errors__unary_always_mismatch_type_case_2.snap index cfe901d2c3..990ad07f84 100644 --- a/crates/analyzer/tests/snapshots/errors__unary_always_mismatch_type_case_2.snap +++ b/crates/analyzer/tests/snapshots/errors__unary_always_mismatch_type_case_2.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: Can not apply unary operator ┌─ [snippet]:4:16 diff --git a/crates/analyzer/tests/snapshots/errors__unary_minus_on_bool.snap b/crates/analyzer/tests/snapshots/errors__unary_minus_on_bool.snap index 194d7f35ce..3ce92f59c5 100644 --- a/crates/analyzer/tests/snapshots/errors__unary_minus_on_bool.snap +++ b/crates/analyzer/tests/snapshots/errors__unary_minus_on_bool.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: cannot apply unary operator `-` to type `bool` ┌─ [snippet]:4:4 diff --git a/crates/analyzer/tests/snapshots/errors__unary_not_on_int.snap b/crates/analyzer/tests/snapshots/errors__unary_not_on_int.snap index 163e9ee980..fd58521b84 100644 --- a/crates/analyzer/tests/snapshots/errors__unary_not_on_int.snap +++ b/crates/analyzer/tests/snapshots/errors__unary_not_on_int.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: cannot apply unary operator `not` to type `u256` ┌─ [snippet]:4:7 diff --git a/crates/analyzer/tests/snapshots/errors__undefined_generic_type.snap b/crates/analyzer/tests/snapshots/errors__undefined_generic_type.snap index 4c03d0f540..0bd0bfa6d1 100644 --- a/crates/analyzer/tests/snapshots/errors__undefined_generic_type.snap +++ b/crates/analyzer/tests/snapshots/errors__undefined_generic_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: undefined type ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__undefined_name.snap b/crates/analyzer/tests/snapshots/errors__undefined_name.snap index d4a6084a96..fb4c3b6b48 100644 --- a/crates/analyzer/tests/snapshots/errors__undefined_name.snap +++ b/crates/analyzer/tests/snapshots/errors__undefined_name.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: cannot find value `y` in this scope ┌─ [snippet]:3:16 diff --git a/crates/analyzer/tests/snapshots/errors__undefined_type.snap b/crates/analyzer/tests/snapshots/errors__undefined_type.snap index c4cde3502a..a6bc1df6c2 100644 --- a/crates/analyzer/tests/snapshots/errors__undefined_type.snap +++ b/crates/analyzer/tests/snapshots/errors__undefined_type.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: undefined type ┌─ [snippet]:3:10 diff --git a/crates/analyzer/tests/snapshots/errors__undefined_type_param.snap b/crates/analyzer/tests/snapshots/errors__undefined_type_param.snap index b27627d5d4..975beb3444 100644 --- a/crates/analyzer/tests/snapshots/errors__undefined_type_param.snap +++ b/crates/analyzer/tests/snapshots/errors__undefined_type_param.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: undefined type ┌─ compile_errors/undefined_type_param.fe:4:12 diff --git a/crates/analyzer/tests/snapshots/errors__unexpected_return.snap b/crates/analyzer/tests/snapshots/errors__unexpected_return.snap index f1993fe3fa..7644879d07 100644 --- a/crates/analyzer/tests/snapshots/errors__unexpected_return.snap +++ b/crates/analyzer/tests/snapshots/errors__unexpected_return.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: expected function to return `()` but was `u256` ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__uninit_values.snap b/crates/analyzer/tests/snapshots/errors__uninit_values.snap index c982082c48..17f750c1a2 100644 --- a/crates/analyzer/tests/snapshots/errors__uninit_values.snap +++ b/crates/analyzer/tests/snapshots/errors__uninit_values.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: uninitialized variable ┌─ compile_errors/uninit_values.fe:7:13 diff --git a/crates/analyzer/tests/snapshots/errors__unit_type_constructor.snap b/crates/analyzer/tests/snapshots/errors__unit_type_constructor.snap index e28548c683..908f08aeaf 100644 --- a/crates/analyzer/tests/snapshots/errors__unit_type_constructor.snap +++ b/crates/analyzer/tests/snapshots/errors__unit_type_constructor.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(\"[snippet]\", &src)" - --- error: `()` type is not callable ┌─ [snippet]:3:3 diff --git a/crates/analyzer/tests/snapshots/errors__unsafe_misuse.snap b/crates/analyzer/tests/snapshots/errors__unsafe_misuse.snap index 50f0b85525..08de87b1d7 100644 --- a/crates/analyzer/tests/snapshots/errors__unsafe_misuse.snap +++ b/crates/analyzer/tests/snapshots/errors__unsafe_misuse.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: unsafe function `mod_priv` can only be called in an unsafe function or block ┌─ compile_errors/unsafe_misuse.fe:8:5 diff --git a/crates/analyzer/tests/snapshots/errors__unsafe_nesting.snap b/crates/analyzer/tests/snapshots/errors__unsafe_nesting.snap index 456e235280..fd7d29d6a6 100644 --- a/crates/analyzer/tests/snapshots/errors__unsafe_nesting.snap +++ b/crates/analyzer/tests/snapshots/errors__unsafe_nesting.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: unnecessary `unsafe` block ┌─ compile_errors/unsafe_nesting.fe:2:5 diff --git a/crates/codegen/src/yul/isel/mod.rs b/crates/codegen/src/yul/isel/mod.rs index f210a28064..2507774ff8 100644 --- a/crates/codegen/src/yul/isel/mod.rs +++ b/crates/codegen/src/yul/isel/mod.rs @@ -2,6 +2,8 @@ pub mod context; mod contract; mod function; mod inst_order; +mod test; pub use contract::{lower_contract, lower_contract_deployable}; pub use function::lower_function; +pub use test::lower_test; diff --git a/crates/codegen/src/yul/isel/test.rs b/crates/codegen/src/yul/isel/test.rs new file mode 100644 index 0000000000..b040d352f0 --- /dev/null +++ b/crates/codegen/src/yul/isel/test.rs @@ -0,0 +1,69 @@ +use super::context::Context; +use crate::db::CodegenDb; +use fe_analyzer::namespace::items::FunctionId; +use yultsur::{yul, *}; + +pub fn lower_test(db: &dyn CodegenDb, test: FunctionId) -> yul::Object { + let mut context = Context::default(); + let test = db.mir_lowered_func_signature(test); + context.function_dependency.insert(test); + + let dep_constants = context.resolve_constant_dependency(db); + let dep_functions: Vec<_> = context + .resolve_function_dependency(db) + .into_iter() + .map(yul::Statement::FunctionDefinition) + .collect(); + let runtime_funcs: Vec<_> = context + .runtime + .collect_definitions() + .into_iter() + .map(yul::Statement::FunctionDefinition) + .collect(); + let test_func_name = identifier! { (db.codegen_function_symbol_name(test)) }; + let call = function_call_statement! {[test_func_name]()}; + + let code = code! { + [dep_functions...] + [runtime_funcs...] + [call] + (stop()) + }; + + let name = identifier! { test }; + let object = yul::Object { + name, + code, + objects: vec![], + data: dep_constants, + }; + + normalize_object(object) +} + +fn normalize_object(obj: yul::Object) -> yul::Object { + let data = obj + .data + .into_iter() + .map(|data| yul::Data { + name: data.name, + value: data + .value + .replace('\\', "\\\\\\\\") + .replace('\n', "\\\\n") + .replace('"', "\\\\\"") + .replace('\r', "\\\\r") + .replace('\t', "\\\\t"), + }) + .collect::>(); + yul::Object { + name: obj.name, + code: obj.code, + objects: obj + .objects + .into_iter() + .map(normalize_object) + .collect::>(), + data, + } +} diff --git a/crates/driver/Cargo.toml b/crates/driver/Cargo.toml index 116b0ba447..4ca0a63bb6 100644 --- a/crates/driver/Cargo.toml +++ b/crates/driver/Cargo.toml @@ -19,6 +19,7 @@ fe-mir = {path = "../mir", version = "^0.21.0-alpha"} fe-codegen = {path = "../codegen", version = "^0.21.0-alpha"} fe-parser = {path = "../parser", version = "^0.21.0-alpha"} fe-yulc = {path = "../yulc", version = "^0.21.0-alpha", features = ["solc-backend"], optional = true} +fe-test-runner = {path = "../test-runner", version = "^0.21.0-alpha"} indexmap = "1.6.2" vfs = "0.5.1" smol_str = "0.1.21" diff --git a/crates/driver/src/lib.rs b/crates/driver/src/lib.rs index 77d6d9c186..91c6a47012 100644 --- a/crates/driver/src/lib.rs +++ b/crates/driver/src/lib.rs @@ -1,21 +1,16 @@ #![allow(unused_imports, dead_code)] pub use fe_codegen::db::{CodegenDb, Db}; -//use fe_codegen::yul::runtime::RuntimeProvider; -use fe_analyzer::namespace::items::{IngotId, IngotMode, ModuleId}; -use fe_analyzer::AnalyzerDb; -use fe_analyzer::{context::Analysis, namespace::items::ContractId}; +use fe_analyzer::namespace::items::{ContractId, FunctionId, IngotId, IngotMode, ModuleId}; use fe_common::db::Upcast; -use fe_common::diagnostics::{print_diagnostics, Diagnostic}; -use fe_common::files::{FileKind, SourceFileId}; -use fe_mir::db::MirDb; +use fe_common::diagnostics::Diagnostic; +use fe_common::files::FileKind; use fe_parser::ast::SmolStr; +use fe_test_runner::TestSink; use indexmap::{indexmap, IndexMap}; -#[cfg(feature = "solc-backend")] use serde_json::Value; -use std::ops::Deref; -use std::path::Path; +use std::fmt::Display; /// The artifacts of a compiled module. pub struct CompiledModule { @@ -32,6 +27,23 @@ pub struct CompiledContract { pub bytecode: String, } +#[cfg(feature = "solc-backend")] +pub struct CompiledTest { + pub name: SmolStr, + bytecode: String, +} + +#[cfg(feature = "solc-backend")] +impl CompiledTest { + pub fn new(name: SmolStr, bytecode: String) -> Self { + Self { name, bytecode } + } + + pub fn execute(&self, sink: &mut TestSink) -> bool { + fe_test_runner::execute(&self.name, &self.bytecode, sink) + } +} + #[derive(Debug)] pub struct CompileError(pub Vec); @@ -51,7 +63,24 @@ pub fn compile_single_file( let diags = module.diagnostics(db); if diags.is_empty() { - compile_module_id(db, module, with_bytecode, optimize) + compile_module(db, module, with_bytecode, optimize) + } else { + Err(CompileError(diags)) + } +} + +#[cfg(feature = "solc-backend")] +pub fn compile_single_file_tests( + db: &mut Db, + path: &str, + src: &str, + optimize: bool, +) -> Result<(SmolStr, Vec), CompileError> { + let module = ModuleId::new_standalone(db, path, src); + let diags = module.diagnostics(db); + + if diags.is_empty() { + Ok((module.name(db), compile_module_tests(db, module, optimize))) } else { Err(CompileError(diags)) } @@ -108,7 +137,43 @@ pub fn compile_ingot( let main_module = ingot .root_module(db) .expect("missing root module, with no diagnostic"); - compile_module_id(db, main_module, with_bytecode, optimize) + compile_module(db, main_module, with_bytecode, optimize) +} + +#[cfg(feature = "solc-backend")] +pub fn compile_ingot_tests( + db: &mut Db, + name: &str, + files: &[(impl AsRef, impl AsRef)], + optimize: bool, +) -> Result)>, CompileError> { + let std = IngotId::std_lib(db); + let ingot = IngotId::from_files( + db, + name, + IngotMode::Main, + FileKind::Local, + files, + indexmap! { "std".into() => std }, + ); + + let mut diags = ingot.diagnostics(db); + ingot.sink_external_ingot_diagnostics(db, &mut diags); + if !diags.is_empty() { + return Err(CompileError(diags)); + } + + if diags.is_empty() { + Ok(ingot + .all_modules(db) + .iter() + .fold(vec![], |mut accum, module| { + accum.push((module.name(db), compile_module_tests(db, *module, optimize))); + accum + })) + } else { + Err(CompileError(diags)) + } } /// Returns graphviz string. @@ -127,13 +192,32 @@ pub fn dump_mir_single_file(db: &mut Db, path: &str, src: &str) -> Result CompiledTest { + let yul_test = fe_codegen::yul::isel::lower_test(db, test) + .to_string() + .replace('"', "\\\""); + let bytecode = compile_to_evm("test", &yul_test, optimize); + CompiledTest::new(test.name(db), bytecode) +} + +#[cfg(feature = "solc-backend")] +fn compile_module_tests(db: &mut Db, module_id: ModuleId, optimize: bool) -> Vec { + module_id + .tests(db) + .iter() + .map(|test| compile_test(db, *test, optimize)) + .collect() +} + +#[cfg(feature = "solc-backend")] +fn compile_module( db: &mut Db, module_id: ModuleId, with_bytecode: bool, optimize: bool, ) -> Result { let mut contracts = IndexMap::default(); + for contract in module_id.all_contracts(db.upcast()) { let name = &contract.data(db.upcast()).name; let abi = db.codegen_abi_contract(contract); @@ -164,7 +248,7 @@ fn compile_module_id( } #[cfg(not(feature = "solc-backend"))] -fn compile_module_id( +fn compile_module( db: &mut Db, module_id: ModuleId, _with_bytecode: bool, @@ -220,8 +304,3 @@ fn compile_to_evm(name: &str, yul_object: &str, optimize: bool) -> String { } } } - -#[cfg(not(feature = "solc-backend"))] -fn compile_to_evm(_: &str, _: &str, _: bool) -> String { - unreachable!() -} diff --git a/crates/fe/Cargo.toml b/crates/fe/Cargo.toml index 54fe8f49ad..a336f100b5 100644 --- a/crates/fe/Cargo.toml +++ b/crates/fe/Cargo.toml @@ -19,7 +19,8 @@ fs_extra = "1.2.0" walkdir = "2" indexmap = "1.6.2" include_dir = "0.7.2" - +colored = "2.0.0" +fe-test-runner = {path = "../test-runner", version = "^0.21.0-alpha"} fe-common = {path = "../common", version = "^0.21.0-alpha"} fe-driver = {path = "../driver", version = "^0.21.0-alpha"} fe-parser = {path = "../parser", version = "^0.21.0-alpha"} diff --git a/crates/fe/src/main.rs b/crates/fe/src/main.rs index d0e6dcd82b..71f4781428 100644 --- a/crates/fe/src/main.rs +++ b/crates/fe/src/main.rs @@ -26,5 +26,9 @@ fn main() { Commands::New(arg) => { task::create_new_project(arg); } + #[cfg(feature = "solc-backend")] + Commands::Test(arg) => { + task::test(arg); + } } } diff --git a/crates/fe/src/task/mod.rs b/crates/fe/src/task/mod.rs index adba095802..34ac1b6350 100644 --- a/crates/fe/src/task/mod.rs +++ b/crates/fe/src/task/mod.rs @@ -1,16 +1,22 @@ mod build; mod check; mod new; +#[cfg(feature = "solc-backend")] +mod test; mod utils; pub use build::{build, BuildArgs}; pub use check::{check, CheckArgs}; use clap::Subcommand; pub use new::{create_new_project, NewProjectArgs}; +#[cfg(feature = "solc-backend")] +pub use test::{test, TestArgs}; #[derive(Subcommand)] pub enum Commands { Build(BuildArgs), Check(CheckArgs), New(NewProjectArgs), + #[cfg(feature = "solc-backend")] + Test(TestArgs), } diff --git a/crates/fe/src/task/test.rs b/crates/fe/src/task/test.rs new file mode 100644 index 0000000000..0342321133 --- /dev/null +++ b/crates/fe/src/task/test.rs @@ -0,0 +1,118 @@ +#![cfg(feature = "solc-backend")] +use std::path::Path; + +use clap::Args; +use colored::Colorize; +use fe_common::diagnostics::print_diagnostics; +use fe_driver::CompiledTest; +use fe_test_runner::TestSink; + +use crate::task::utils::load_files_from_dir; + +#[derive(Args)] +#[clap(about = "Execute tests in the current project")] +pub struct TestArgs { + input_path: String, + #[clap(long, takes_value(true))] + optimize: Option, +} + +pub fn test(args: TestArgs) { + let path = &args.input_path; + + let test_sink = if Path::new(path).is_file() { + test_single_file(&args) + } else { + test_ingot(&args) + }; + + println!("{}", test_sink); + if test_sink.failure_count() != 0 { + std::process::exit(1) + } +} + +fn test_single_file(args: &TestArgs) -> TestSink { + let input_path = &args.input_path; + + let mut db = fe_driver::Db::default(); + let content = match std::fs::read_to_string(input_path) { + Err(err) => { + eprintln!("Failed to load file: `{}`. Error: {}", input_path, err); + std::process::exit(1) + } + Ok(content) => content, + }; + + match fe_driver::compile_single_file_tests(&mut db, input_path, &content, true) { + Ok((name, tests)) => { + let mut sink = TestSink::default(); + execute_tests(&name, &tests, &mut sink); + sink + } + Err(error) => { + eprintln!("Unable to compile {}.", input_path); + print_diagnostics(&db, &error.0); + std::process::exit(1) + } + } +} + +pub fn execute_tests(module_name: &str, tests: &[CompiledTest], sink: &mut TestSink) { + if tests.len() == 1 { + println!("executing 1 test in {}:", module_name); + } else { + println!("executing {} tests in {}:", tests.len(), module_name); + } + + for test in tests { + print!(" {} ...", test.name); + let test_passed = test.execute(sink); + + if test_passed { + println!(" {}", "passed".green()) + } else { + println!(" {}", "failed".red()) + } + } + println!(); +} + +fn test_ingot(args: &TestArgs) -> TestSink { + let input_path = &args.input_path; + let optimize = args.optimize.unwrap_or(true); + + if !Path::new(input_path).exists() { + eprintln!("Input directory does not exist: `{}`.", input_path); + std::process::exit(1) + } + + let content = match load_files_from_dir(input_path) { + Ok(files) if files.is_empty() => { + eprintln!("Input directory is not an ingot: `{}`", input_path); + std::process::exit(1) + } + Ok(files) => files, + Err(err) => { + eprintln!("Failed to load project files. Error: {}", err); + std::process::exit(1) + } + }; + + let mut db = fe_driver::Db::default(); + + match fe_driver::compile_ingot_tests(&mut db, input_path, &content, optimize) { + Ok(test_batches) => { + let mut sink = TestSink::default(); + for (module_name, tests) in test_batches { + execute_tests(&module_name, &tests, &mut sink); + } + sink + } + Err(error) => { + eprintln!("Unable to compile {}.", input_path); + print_diagnostics(&db, &error.0); + std::process::exit(1) + } + } +} diff --git a/crates/parser/src/ast.rs b/crates/parser/src/ast.rs index 40bf84e42a..5273440f74 100644 --- a/crates/parser/src/ast.rs +++ b/crates/parser/src/ast.rs @@ -25,6 +25,7 @@ pub enum ModuleStmt { Trait(Node), Impl(Node), Function(Node), + Attribute(Node), ParseError(Span), } @@ -574,6 +575,7 @@ impl Spanned for ModuleStmt { ModuleStmt::Struct(inner) => inner.span, ModuleStmt::Enum(inner) => inner.span, ModuleStmt::Function(inner) => inner.span, + ModuleStmt::Attribute(inner) => inner.span, ModuleStmt::ParseError(span) => *span, } } @@ -621,6 +623,7 @@ impl fmt::Display for ModuleStmt { ModuleStmt::Struct(node) => write!(f, "{}", node.kind), ModuleStmt::Enum(node) => write!(f, "{}", node.kind), ModuleStmt::Function(node) => write!(f, "{}", node.kind), + ModuleStmt::Attribute(node) => writeln!(f, "#{}", node.kind), ModuleStmt::ParseError(span) => { write!(f, "# PARSE ERROR: {}..{}", span.start, span.end) } diff --git a/crates/parser/src/grammar/module.rs b/crates/parser/src/grammar/module.rs index 9b2a21657b..e6c1561695 100644 --- a/crates/parser/src/grammar/module.rs +++ b/crates/parser/src/grammar/module.rs @@ -74,6 +74,12 @@ pub fn parse_module_stmt(par: &mut Parser) -> ParseResult { } } TokenKind::Fn | TokenKind::Unsafe => ModuleStmt::Function(parse_fn_def(par, None)?), + TokenKind::Hash => { + let attr = par.expect(TokenKind::Hash, "expected `#`")?; + let attr_name = par.expect_with_notes(TokenKind::Name, "failed to parse attribute definition", |_| + vec!["Note: an attribute name must start with a letter or underscore, and contain letters, numbers, or underscores".into()])?; + ModuleStmt::Attribute(Node::new(attr_name.text.into(), attr.span + attr_name.span)) + } _ => { let tok = par.next()?; par.unexpected_token_error( diff --git a/crates/test-files/fixtures/compile_errors/_test_fn_call.fe b/crates/test-files/fixtures/compile_errors/_test_fn_call.fe new file mode 100644 index 0000000000..5e766d12e8 --- /dev/null +++ b/crates/test-files/fixtures/compile_errors/_test_fn_call.fe @@ -0,0 +1,6 @@ +fn my_func() { + my_test() +} + +#test +fn my_test() { } \ No newline at end of file diff --git a/crates/test-files/fixtures/compile_errors/_test_fn_params.fe b/crates/test-files/fixtures/compile_errors/_test_fn_params.fe new file mode 100644 index 0000000000..898a4cdef1 --- /dev/null +++ b/crates/test-files/fixtures/compile_errors/_test_fn_params.fe @@ -0,0 +1,7 @@ +trait MyTrait { } + +#test +fn test1() { } + +#test +fn test2(x: u256) { } \ No newline at end of file diff --git a/crates/test-files/fixtures/ingots/basic_ingot/src/bing.fe b/crates/test-files/fixtures/ingots/basic_ingot/src/bing.fe index 88e202f0ba..2f63420aab 100644 --- a/crates/test-files/fixtures/ingots/basic_ingot/src/bing.fe +++ b/crates/test-files/fixtures/ingots/basic_ingot/src/bing.fe @@ -1,4 +1,5 @@ use std::error::Error +use std::context::Context pub struct Bing { pub my_address: address diff --git a/crates/test-runner/Cargo.toml b/crates/test-runner/Cargo.toml new file mode 100644 index 0000000000..3c82b109a9 --- /dev/null +++ b/crates/test-runner/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "fe-test-runner" +version = "0.21.0-alpha" +authors = ["The Fe Developers "] +edition = "2021" +license = "GPL-3.0-or-later" +repository = "https://github.com/ethereum/fe" + +[dependencies] +hex="0.4" +bytes = "1.3" +colored = "2.0" + +# used by revm; we need to force the js feature for wasm support +getrandom = { version = "0.2.8", features = ["js"] } +revm = "3.0" diff --git a/crates/test-runner/src/lib.rs b/crates/test-runner/src/lib.rs new file mode 100644 index 0000000000..ed6a8661f5 --- /dev/null +++ b/crates/test-runner/src/lib.rs @@ -0,0 +1,92 @@ +use bytes::Bytes; +use colored::Colorize; +use revm::{ + interpreter::{instruction_result::SuccessOrHalt, Contract, DummyHost, Interpreter}, + primitives::{Bytecode, Env, LatestSpec, B160, U256}, +}; +use std::fmt::Display; + +#[derive(Debug, Default)] +pub struct TestSink { + success_count: usize, + failure_details: Vec, +} + +impl TestSink { + pub fn test_count(&self) -> usize { + self.failure_count() + self.success_count() + } + + pub fn failure_count(&self) -> usize { + self.failure_details.len() + } + + pub fn success_count(&self) -> usize { + self.success_count + } + + pub fn insert_failure(&mut self, name: &str, reason: &str) { + self.failure_details + .push(format!("{} ({})", name, reason.red())) + } + + pub fn inc_success_count(&mut self) { + self.success_count += 1 + } + + pub fn failure_details(&self) -> String { + self.failure_details.join("\n") + } +} + +impl Display for TestSink { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + if self.failure_count() != 0 { + writeln!(f, "{}", self.failure_details())?; + writeln!(f)?; + } + + let test_description = |n: usize, status: &dyn Display| -> String { + if n == 1 { + format!("1 test {}", status) + } else { + format!("{} tests {}", n, status) + } + }; + + write!( + f, + "{}; ", + test_description(self.success_count(), &"passed".green()) + )?; + write!( + f, + "{}; ", + test_description(self.failure_count(), &"failed".red()) + )?; + write!(f, "{}", test_description(self.test_count(), &"executed")) + } +} + +pub fn execute(name: &str, bytecode: &str, sink: &mut TestSink) -> bool { + let input = Bytes::new(); + let bytecode = Bytecode::new_raw(Bytes::copy_from_slice(&hex::decode(bytecode).unwrap())); + let address = B160::from(26); + let caller = B160::from(42); + let value = U256::ZERO; + let contract = Contract::new::(input, bytecode, address, caller, value); + + let mut host = DummyHost::new(Env::default()); + let mut interpreter = Interpreter::new(contract, u64::MAX, false); + + let result = interpreter.run::(&mut host); + let reverted = matches!(SuccessOrHalt::from(result), SuccessOrHalt::Success(_)); + + if reverted { + sink.inc_success_count(); + } else { + sink.insert_failure(name, &format!("{:?}", result)); + }; + + reverted +} diff --git a/crates/test-utils/Cargo.toml b/crates/test-utils/Cargo.toml index 009db5f5a6..3727b890c1 100644 --- a/crates/test-utils/Cargo.toml +++ b/crates/test-utils/Cargo.toml @@ -24,7 +24,7 @@ indexmap = "1.6.2" insta = { default-features = false, version = "1.26" } # used by ethabi, we need to force the js feature for wasm support -getrandom = { version = "0.2.3", features = ["js"] } +getrandom = { version = "0.2.8", features = ["js"] } [features] solc-backend = ["fe-yulc", "solc", "fe-driver/solc-backend"] diff --git a/crates/tests-legacy/Cargo.toml b/crates/tests-legacy/Cargo.toml new file mode 100644 index 0000000000..977c69c049 --- /dev/null +++ b/crates/tests-legacy/Cargo.toml @@ -0,0 +1,37 @@ +[package] +authors = ["The Fe Developers "] +edition = "2021" +name = "fe-compiler-tests-legacy" +version = "0.21.0-alpha" +license = "GPL-3.0-or-later" +repository = "https://github.com/ethereum/fe" + +[dependencies] + +[dev-dependencies] +ethabi = { default-features = false, version = "18.0" } +evm = { default-features = false, version = "0.37" } +evm-runtime = { default-features = false, version = "0.37" } +fe-analyzer = {path = "../analyzer", version = "^0.21.0-alpha"} +fe-common = {path = "../common", version = "^0.21.0-alpha"} +fe-compiler-test-utils = {path = "../test-utils" } +fe-parser = {path = "../parser", version = "^0.21.0-alpha"} +fe-yulc = {path = "../yulc", version = "^0.21.0-alpha"} +fe-driver = {path = "../driver", version = "^0.21.0-alpha"} +test-files = {path = "../test-files", package = "fe-test-files" } +hex = "0.4" +primitive-types = {version = "0.12", default-features = false, features = ["rlp"]} +rand = "0.8.5" +rstest = "0.6.4" +# This fork contains the shorthand macros and some other necessary updates. +yultsur = {git = "https://github.com/g-r-a-n-t/yultsur", rev = "ae85470"} +insta = { default-features = false, version = "1.26" } +pretty_assertions = "1.0.0" +wasm-bindgen-test = "0.3.24" +dir-test="0.1" + +[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] +proptest = {version = "1.1.0", default-features = false, features = ["std"]} + +[features] +solc-backend = ["fe-yulc/solc-backend", "fe-compiler-test-utils/solc-backend"] diff --git a/crates/tests/proptest-regressions/differential.txt b/crates/tests-legacy/proptest-regressions/differential.txt similarity index 100% rename from crates/tests/proptest-regressions/differential.txt rename to crates/tests-legacy/proptest-regressions/differential.txt diff --git a/crates/tests/src/crashes.rs b/crates/tests-legacy/src/crashes.rs similarity index 100% rename from crates/tests/src/crashes.rs rename to crates/tests-legacy/src/crashes.rs diff --git a/crates/tests/src/demo_erc20.rs b/crates/tests-legacy/src/demo_erc20.rs similarity index 100% rename from crates/tests/src/demo_erc20.rs rename to crates/tests-legacy/src/demo_erc20.rs diff --git a/crates/tests/src/demo_guestbook.rs b/crates/tests-legacy/src/demo_guestbook.rs similarity index 100% rename from crates/tests/src/demo_guestbook.rs rename to crates/tests-legacy/src/demo_guestbook.rs diff --git a/crates/tests/src/demo_simple_open_auction.rs b/crates/tests-legacy/src/demo_simple_open_auction.rs similarity index 100% rename from crates/tests/src/demo_simple_open_auction.rs rename to crates/tests-legacy/src/demo_simple_open_auction.rs diff --git a/crates/tests/src/demo_uniswap.rs b/crates/tests-legacy/src/demo_uniswap.rs similarity index 100% rename from crates/tests/src/demo_uniswap.rs rename to crates/tests-legacy/src/demo_uniswap.rs diff --git a/crates/tests/src/differential.rs b/crates/tests-legacy/src/differential.rs similarity index 99% rename from crates/tests/src/differential.rs rename to crates/tests-legacy/src/differential.rs index d26f963454..6648ad375e 100644 --- a/crates/tests/src/differential.rs +++ b/crates/tests-legacy/src/differential.rs @@ -1,5 +1,5 @@ //! Tests that check for differences between Solidity and Fe implementations of similar contracts -#![cfg(feature = "solc-backend")] +#![cfg(all(feature = "solc-backend", not(target_arch = "wasm32")))] use proptest::prelude::*; use fe_compiler_test_utils::*; diff --git a/crates/tests/src/features.rs b/crates/tests-legacy/src/features.rs similarity index 99% rename from crates/tests/src/features.rs rename to crates/tests-legacy/src/features.rs index 35d4b585d6..1330a31ce1 100644 --- a/crates/tests/src/features.rs +++ b/crates/tests-legacy/src/features.rs @@ -278,7 +278,6 @@ macro_rules! test_method_return { }; } -test_method_return! { const_local, "const_local.fe", &[], uint_token(42) } test_method_return! { for_loop_with_static_array, "for_loop_with_static_array.fe", &[], uint_token(30) } test_method_return! { for_loop_with_static_array_from_sto, "for_loop_with_static_array_from_sto.fe", &[], uint_token(6) } test_method_return! { for_loop_with_break, "for_loop_with_break.fe", &[], uint_token(15) } @@ -1580,28 +1579,6 @@ fn short_circuit() { }); } -#[test] -fn math() { - with_executor(&|mut executor| { - let harness = deploy_contract(&mut executor, "math.fe", "Math", &[]); - harness.test_function( - &mut executor, - "sqrt", - &[uint_token(16000)], - Some(&uint_token(126)), - ); - - harness.test_function( - &mut executor, - "min", - &[uint_token(1), uint_token(2)], - Some(&uint_token(1)), - ); - - assert_harness_gas_report!(harness); - }); -} - #[test] fn two_contracts() { with_executor(&|mut executor| { diff --git a/crates/tests/src/ingots.rs b/crates/tests-legacy/src/ingots.rs similarity index 100% rename from crates/tests/src/ingots.rs rename to crates/tests-legacy/src/ingots.rs diff --git a/crates/tests-legacy/src/lib.rs b/crates/tests-legacy/src/lib.rs new file mode 100644 index 0000000000..6a71d42f7d --- /dev/null +++ b/crates/tests-legacy/src/lib.rs @@ -0,0 +1,20 @@ +#[cfg(test)] +mod crashes; +#[cfg(test)] +mod demo_erc20; +#[cfg(test)] +mod demo_guestbook; +#[cfg(test)] +mod demo_simple_open_auction; +#[cfg(test)] +mod demo_uniswap; +#[cfg(test)] +mod differential; +#[cfg(test)] +mod features; +#[cfg(test)] +mod ingots; +#[cfg(test)] +mod solidity; +#[cfg(test)] +mod stress; diff --git a/crates/tests/src/snapshots/fe_compiler_tests__demo_erc20__erc20_token.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_erc20__erc20_token.snap similarity index 96% rename from crates/tests/src/snapshots/fe_compiler_tests__demo_erc20__erc20_token.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_erc20__erc20_token.snap index e624f97181..65c268b3a1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__demo_erc20__erc20_token.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_erc20__erc20_token.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/demo_erc20.rs +source: crates/tests-legacy/src/demo_erc20.rs expression: "format!(\"{}\", harness.gas_reporter)" --- name([]) used 1546 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__demo_guestbook__guest_book.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_guestbook__guest_book.snap similarity index 78% rename from crates/tests/src/snapshots/fe_compiler_tests__demo_guestbook__guest_book.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_guestbook__guest_book.snap index 19be4b2088..1259bb2ef4 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__demo_guestbook__guest_book.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_guestbook__guest_book.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/demo_guestbook.rs +source: crates/tests-legacy/src/demo_guestbook.rs expression: "format!(\"{}\", harness.gas_reporter)" --- sign([String("hello world")]) used 54893 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__demo_simple_open_auction__simple_open_auction.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_simple_open_auction__simple_open_auction.snap similarity index 76% rename from crates/tests/src/snapshots/fe_compiler_tests__demo_simple_open_auction__simple_open_auction.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_simple_open_auction__simple_open_auction.snap index 3e3e56d4eb..785ae8e1e1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__demo_simple_open_auction__simple_open_auction.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_simple_open_auction__simple_open_auction.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/demo_simple_open_auction.rs +source: crates/tests-legacy/src/demo_simple_open_auction.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bid([]) used 46237 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__demo_uniswap__uniswap_contracts-2.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_uniswap__uniswap_contracts-2.snap similarity index 81% rename from crates/tests/src/snapshots/fe_compiler_tests__demo_uniswap__uniswap_contracts-2.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_uniswap__uniswap_contracts-2.snap index a2bb9303ae..2e508c6188 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__demo_uniswap__uniswap_contracts-2.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_uniswap__uniswap_contracts-2.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/demo_uniswap.rs +source: crates/tests-legacy/src/demo_uniswap.rs expression: "format!(\"{}\", factory_harness.gas_reporter)" --- create_pair([Address(0x5dddfce53ee040d9eb21afbc0ae1bb4dbb0ba643), Address(0x5f8bd49cd9f0cb2bd5bb9d4320dfe9b61023249d)]) used 1463796 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__demo_uniswap__uniswap_contracts.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_uniswap__uniswap_contracts.snap similarity index 93% rename from crates/tests/src/snapshots/fe_compiler_tests__demo_uniswap__uniswap_contracts.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_uniswap__uniswap_contracts.snap index 3317aaec36..5df83682da 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__demo_uniswap__uniswap_contracts.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__demo_uniswap__uniswap_contracts.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/demo_uniswap.rs +source: crates/tests-legacy/src/demo_uniswap.rs expression: "format!(\"{}\", pair_harness.gas_reporter)" --- factory([]) used 271 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__abi_decode_complex.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__abi_decode_complex.snap similarity index 96% rename from crates/tests/src/snapshots/fe_compiler_tests__features__abi_decode_complex.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__abi_decode_complex.snap index d889eafb9a..4c7cdbdf8a 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__abi_decode_complex.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__abi_decode_complex.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- decode_static_complex([Tuple([Tuple([Int(10), Int(20)]), Int(30)])]) used 1123 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__address_bytes10_map.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__address_bytes10_map.snap similarity index 91% rename from crates/tests/src/snapshots/fe_compiler_tests__features__address_bytes10_map.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__address_bytes10_map.snap index 8138aa8c25..2b4a46c72a 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__address_bytes10_map.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__address_bytes10_map.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- write_bar([Address(0x0000000000000000000000000000000000000001), Bytes([116, 101, 110, 32, 98, 121, 116, 101, 115, 49])]) used 22708 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__associated_fns.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__associated_fns.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__associated_fns.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__associated_fns.snap index eaf7fdb7c5..decfeed244 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__associated_fns.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__associated_fns.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(12)]) used 22698 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@add.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@add.snap similarity index 62% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@add.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@add.snap index 18a00d36d7..9b51bbf791 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@add.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@add.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- add([Uint(2), Uint(5)]) used 268 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@add_from_mem.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@add_from_mem.snap similarity index 64% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@add_from_mem.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@add_from_mem.snap index 07bdbd3ae0..4ed101ecf3 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@add_from_mem.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@add_from_mem.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- add_from_mem([Uint(2), Uint(5)]) used 806 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@add_from_sto.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@add_from_sto.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@add_from_sto.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@add_from_sto.snap index bef4438852..a6220743e4 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@add_from_sto.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@add_from_sto.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- add_from_sto([Uint(2), Uint(5)]) used 22616 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@bit_and.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@bit_and.snap similarity index 64% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@bit_and.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@bit_and.snap index 42ae17fc81..1c830ce8d9 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@bit_and.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@bit_and.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bit_and([Uint(26), Uint(42)]) used 510 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@bit_or.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@bit_or.snap similarity index 63% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@bit_or.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@bit_or.snap index 2336b1b3f9..455e6993b9 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@bit_or.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@bit_or.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bit_or([Uint(26), Uint(42)]) used 475 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@bit_xor.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@bit_xor.snap similarity index 64% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@bit_xor.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@bit_xor.snap index ba4e8bf766..7f4c48456f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@bit_xor.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@bit_xor.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bit_xor([Uint(26), Uint(42)]) used 494 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@div.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@div.snap similarity index 63% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@div.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@div.snap index 01a3cb058e..caf5f68ce7 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@div.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@div.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- div([Uint(43), Uint(5)]) used 330 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@lshift.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@lshift.snap similarity index 63% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@lshift.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@lshift.snap index c72f9cbf4e..dc67c07a7f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@lshift.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@lshift.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- lshift([Uint(1), Uint(7)]) used 431 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@mod.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@mod.snap similarity index 63% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@mod.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@mod.snap index 98df0fc390..742175c509 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@mod.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@mod.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- mod([Uint(43), Uint(5)]) used 352 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@mul.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@mul.snap similarity index 63% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@mul.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@mul.snap index 6f7d1ddd5b..33cca8635c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@mul.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@mul.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- mul([Uint(10), Uint(42)]) used 334 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@pow.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@pow.snap similarity index 62% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@pow.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@pow.snap index dc57ba06d6..7e448209e5 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@pow.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@pow.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- pow([Uint(3), Uint(5)]) used 616 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@rshift.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@rshift.snap similarity index 63% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@rshift.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@rshift.snap index 6d6939f270..a94bafbade 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@rshift.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@rshift.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- rshift([Uint(128), Uint(7)]) used 453 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@sub.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@sub.snap similarity index 63% rename from crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@sub.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@sub.snap index b244f56d14..6e2e96ffc0 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__aug_assign@sub.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__aug_assign@sub.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 1779 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- sub([Uint(42), Uint(26)]) used 287 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__balances.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__balances.snap similarity index 91% rename from crates/tests/src/snapshots/fe_compiler_tests__features__balances.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__balances.snap index ffdaf9f424..7766ade755 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__balances.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__balances.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- my_balance([]) used 114 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__base_tuple.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__base_tuple.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__base_tuple.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__base_tuple.snap index 5a0533f758..22eaa39c13 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__base_tuple.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__base_tuple.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(42), Bool(true)]) used 362 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__bountiful_struct_copy_bug.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__bountiful_struct_copy_bug.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__bountiful_struct_copy_bug.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__bountiful_struct_copy_bug.snap index 4116f786c8..d5a41a2c06 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__bountiful_struct_copy_bug.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__bountiful_struct_copy_bug.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 1869 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__call_fn.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_fn.snap similarity index 58% rename from crates/tests/src/snapshots/fe_compiler_tests__features__call_fn.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_fn.snap index 715961b21e..dd96905150 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__call_fn.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_fn.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__call_statement_with_args_2.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_statement_with_args.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__call_statement_with_args_2.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_statement_with_args.snap index 3a9e2a042f..c17cd7f705 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__call_statement_with_args_2.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_statement_with_args.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 22226 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__call_statement_without_args.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_statement_with_args_2.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__call_statement_without_args.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_statement_with_args_2.snap index 3a9e2a042f..c17cd7f705 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__call_statement_without_args.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_statement_with_args_2.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 22226 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__call_statement_with_args.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_statement_without_args.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__call_statement_with_args.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_statement_without_args.snap index 3a9e2a042f..c17cd7f705 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__call_statement_with_args.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__call_statement_without_args.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 22226 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__cast_address_to_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__cast_address_to_u256.snap similarity index 75% rename from crates/tests/src/snapshots/fe_compiler_tests__features__cast_address_to_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__cast_address_to_u256.snap index 3fe8f2bfa0..0b3555e60e 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__cast_address_to_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__cast_address_to_u256.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Address(0x2012301230123012301230123012301230123002)]) used 193 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__checked_arithmetic.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__checked_arithmetic.snap similarity index 99% rename from crates/tests/src/snapshots/fe_compiler_tests__features__checked_arithmetic.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__checked_arithmetic.snap index e5f1952614..1a392f5e34 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__checked_arithmetic.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__checked_arithmetic.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- add_u8([Uint(255), Uint(0)]) used 443 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__constructor.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__constructor.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__constructor.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__constructor.snap index 419ba186fe..20ed96f964 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__constructor.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__constructor.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- read_bar([]) used 295 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__create2_contract.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__create2_contract.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__create2_contract.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__create2_contract.snap index 5e05ab81fe..52ae59b61d 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__create2_contract.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__create2_contract.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", factory_harness.gas_reporter)" - --- create2_foo([]) used 40474 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__create_contract.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__create_contract.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__create_contract.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__create_contract.snap index ddb1ff7d2b..bc037407e0 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__create_contract.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__create_contract.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", factory_harness.gas_reporter)" - --- create_foo([]) used 40459 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__create_contract_from_init.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__create_contract_from_init.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__create_contract_from_init.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__create_contract_from_init.snap index 91f78725dc..a5eabaf596 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__create_contract_from_init.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__create_contract_from_init.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", factory_harness.gas_reporter)" - --- get_foo_addr([]) used 211 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__ctx_param_external_func_call.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ctx_param_external_func_call.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__ctx_param_external_func_call.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ctx_param_external_func_call.snap index 0bf753a1af..409c785e87 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__ctx_param_external_func_call.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ctx_param_external_func_call.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- call_bing([]) used 79854 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__ctx_param_internal_func_call.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ctx_param_internal_func_call.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__ctx_param_internal_func_call.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ctx_param_internal_func_call.snap index 432b5ee3ea..f90f286613 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__ctx_param_internal_func_call.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ctx_param_internal_func_call.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 2328 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__ctx_param_simple.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ctx_param_simple.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__ctx_param_simple.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ctx_param_simple.snap index 53b31b3c46..7706e0507c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__ctx_param_simple.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ctx_param_simple.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 101 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__enum_match.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__enum_match.snap similarity index 95% rename from crates/tests/src/snapshots/fe_compiler_tests__features__enum_match.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__enum_match.snap index cd8ad69833..11474e5b1f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__enum_match.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__enum_match.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- simple_match([Uint(1), Uint(2)]) used 571 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__enums.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__enums.snap similarity index 81% rename from crates/tests/src/snapshots/fe_compiler_tests__features__enums.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__enums.snap index b9cf7059ff..9958473358 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__enums.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__enums.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- construct([Uint(1), Uint(2)]) used 570 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__events.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__events.snap similarity index 95% rename from crates/tests/src/snapshots/fe_compiler_tests__features__events.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__events.snap index cf5b2b0382..f8b7f10a73 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__events.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__events.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- emit_nums([]) used 1624 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@contract_pure_fns.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@contract_pure_fns.fe.snap similarity index 59% rename from crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@contract_pure_fns.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@contract_pure_fns.fe.snap index 53160e8b01..127e17007c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@contract_pure_fns.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@contract_pure_fns.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 2254 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- run_test([]) used 35 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@generic_functions.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@generic_functions.fe.snap similarity index 59% rename from crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@generic_functions.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@generic_functions.fe.snap index 334ccf1d6c..ea68f465e8 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@generic_functions.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@generic_functions.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 2254 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- run_test([]) used 32 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@generic_functions_primitves.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@generic_functions_primitves.fe.snap similarity index 59% rename from crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@generic_functions_primitves.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@generic_functions_primitves.fe.snap index 334ccf1d6c..ea68f465e8 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@generic_functions_primitves.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@generic_functions_primitves.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 2254 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- run_test([]) used 32 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@self_type.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@self_type.fe.snap similarity index 60% rename from crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@self_type.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@self_type.fe.snap index 3ca6a73270..2aa8ee57e7 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@self_type.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@self_type.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 2254 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- run_test([]) used 943 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@simple_traits.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@simple_traits.fe.snap similarity index 60% rename from crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@simple_traits.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@simple_traits.fe.snap index 1f0885e6fc..5429570faa 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@simple_traits.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@simple_traits.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 2254 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- run_test([]) used 1355 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@trait_associated_functions.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@trait_associated_functions.fe.snap similarity index 59% rename from crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@trait_associated_functions.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@trait_associated_functions.fe.snap index 334ccf1d6c..ea68f465e8 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__execution_tests@trait_associated_functions.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__execution_tests@trait_associated_functions.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 2254 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- run_test([]) used 32 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__external_contract.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__external_contract.snap similarity index 93% rename from crates/tests/src/snapshots/fe_compiler_tests__features__external_contract.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__external_contract.snap index d9bae04595..940e1daab9 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__external_contract.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__external_contract.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", proxy_harness.gas_reporter)" --- call_emit_event([Address(0x5dddfce53ee040d9eb21afbc0ae1bb4dbb0ba643), Uint(26), FixedArray([Address(0x0000000000000000000000000000000000000000), Address(0x0000000000000000000000000000000000000001), Address(0x0000000000000000000000000000000000000042), Address(0x0000000000000000000000000000000000000003), Address(0x0000000000000000000000000000000000000004)]), String("hello world")]) used 9098 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_break.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_break.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_break.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_break.snap index 72da8c9f11..015d047053 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_break.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_break.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 776 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_complex_elem_array.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_complex_elem_array.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_complex_elem_array.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_complex_elem_array.snap index afeb5aa64e..e876f3c87b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_complex_elem_array.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_complex_elem_array.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 4968 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_continue.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_continue.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_continue.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_continue.snap index 4dc6d4e5fd..ca4ed2fdf6 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_continue.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_continue.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 1725 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_static_array.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_static_array.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_static_array.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_static_array.snap index b5a2a56788..45929a8d03 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_static_array.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_static_array.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 1003 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_static_array_from_sto.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_static_array_from_sto.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_static_array_from_sto.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_static_array_from_sto.snap index 0933fbbd3e..7a800dd9f1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__for_loop_with_static_array_from_sto.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__for_loop_with_static_array_from_sto.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 67889 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_2.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_2.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_2.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_2.snap index bb1c9742fe..54fa1e3168 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_2.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_2.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(6)]) used 225 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_a.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_a.snap index bb1c9742fe..54fa1e3168 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(6)]) used 225 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_b.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_b.snap index ad8cc426b7..34e7c10853 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(4)]) used 239 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_test_from_sto.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_test_from_sto.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_test_from_sto.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_test_from_sto.snap index 1941cb3e88..40b355be3b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_test_from_sto.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_test_from_sto.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 22418 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_with_block_declaration.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_with_block_declaration.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_with_block_declaration.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_with_block_declaration.snap index 963565f5bd..16f845eaa1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__if_statement_with_block_declaration.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__if_statement_with_block_declaration.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 102 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__int_literal_coercion.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__int_literal_coercion.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__int_literal_coercion.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__int_literal_coercion.snap index 461dfde510..6742a2ce71 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__int_literal_coercion.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__int_literal_coercion.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 311 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__intrinsics.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__intrinsics.snap similarity index 86% rename from crates/tests/src/snapshots/fe_compiler_tests__features__intrinsics.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__intrinsics.snap index 88846e1d99..6e3bdf1d0a 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__intrinsics.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__intrinsics.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- add([Uint(10), Uint(100)]) used 222 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__keccak.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__keccak.snap similarity index 91% rename from crates/tests/src/snapshots/fe_compiler_tests__features__keccak.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__keccak.snap index b241cf786f..660c14795a 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__keccak.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__keccak.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- return_hash_from_u256([Bytes([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1])]) used 507 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u128_u128_map.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u128_u128_map.fe.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__map@u128_u128_map.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u128_u128_map.fe.snap index 16d5e3f0ef..ee464b1723 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u128_u128_map.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u128_u128_map.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 538 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- write_bar([Uint(4), Uint(42)]) used 22486 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u16_u16_map.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u16_u16_map.fe.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__map@u16_u16_map.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u16_u16_map.fe.snap index 0616a94885..706b01e157 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u16_u16_map.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u16_u16_map.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 538 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- write_bar([Uint(4), Uint(42)]) used 22474 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u256_u256_map.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u256_u256_map.fe.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__map@u256_u256_map.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u256_u256_map.fe.snap index 20c8548d1c..5dc94cc475 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u256_u256_map.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u256_u256_map.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 538 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- write_bar([Uint(4), Uint(42)]) used 22388 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u32_u32_map.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u32_u32_map.fe.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__map@u32_u32_map.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u32_u32_map.fe.snap index 0616a94885..706b01e157 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u32_u32_map.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u32_u32_map.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 538 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- write_bar([Uint(4), Uint(42)]) used 22474 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u64_u64_map.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u64_u64_map.fe.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__map@u64_u64_map.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u64_u64_map.fe.snap index 16d5e3f0ef..ee464b1723 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u64_u64_map.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u64_u64_map.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 538 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- write_bar([Uint(4), Uint(42)]) used 22486 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u8_u8_map.fe.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u8_u8_map.fe.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__map@u8_u8_map.fe.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u8_u8_map.fe.snap index 27e790e191..11d8cbb683 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__map@u8_u8_map.fe.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map@u8_u8_map.fe.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 538 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- write_bar([Uint(4), Uint(42)]) used 22471 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__map_tuple.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map_tuple.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__map_tuple.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map_tuple.snap index cc13957724..d044abc6a9 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__map_tuple.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__map_tuple.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1234)]) used 44425 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__multi_param.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__multi_param.snap similarity index 71% rename from crates/tests/src/snapshots/fe_compiler_tests__features__multi_param.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__multi_param.snap index 6d8f811d38..b678b85ad5 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__multi_param.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__multi_param.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(4), Uint(42), Uint(420)]) used 976 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__nested_map.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__nested_map.snap similarity index 97% rename from crates/tests/src/snapshots/fe_compiler_tests__features__nested_map.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__nested_map.snap index 037974179f..d25c8aff68 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__nested_map.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__nested_map.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- write_bar([Address(0x1000000000000000000000000000000000000001), Address(0x2000000000000000000000000000000000000002), Uint(12)]) used 22581 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__numeric_casts.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__numeric_casts.snap similarity index 64% rename from crates/tests/src/snapshots/fe_compiler_tests__features__numeric_casts.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__numeric_casts.snap index 3a0cedd9de..c9e3ab274f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__numeric_casts.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__numeric_casts.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 32 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__numeric_sizes.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__numeric_sizes.snap similarity index 97% rename from crates/tests/src/snapshots/fe_compiler_tests__features__numeric_sizes.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__numeric_sizes.snap index a63a18d23c..b5dd0907fc 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__numeric_sizes.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__numeric_sizes.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- assert_min_max([]) used 35 gas get_u8_min([]) used 145 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__pure_fn.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__pure_fn.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__pure_fn.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__pure_fn.snap index 37b6559a96..ca442fa5b6 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__pure_fn.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__pure_fn.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(42), Uint(26)]) used 202 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__pure_fn_internal_call.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__pure_fn_internal_call.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__pure_fn_internal_call.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__pure_fn_internal_call.snap index 37b6559a96..ca442fa5b6 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__pure_fn_internal_call.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__pure_fn_internal_call.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(42), Uint(26)]) used 202 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__pure_fn_standalone.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__pure_fn_standalone.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__pure_fn_standalone.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__pure_fn_standalone.snap index 2115ca0ac6..412ba9f05e 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__pure_fn_standalone.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__pure_fn_standalone.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(5)]) used 46558 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__radix_binary.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__radix_binary.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__radix_binary.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__radix_binary.snap index 963565f5bd..16f845eaa1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__radix_binary.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__radix_binary.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 102 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__radix_hex.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__radix_hex.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__radix_hex.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__radix_hex.snap index 963565f5bd..16f845eaa1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__radix_hex.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__radix_hex.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 102 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__radix_octal.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__radix_octal.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__radix_octal.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__radix_octal.snap index 963565f5bd..16f845eaa1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__radix_octal.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__radix_octal.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 102 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_i256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_i256_a.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_i256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_i256_a.snap index d84e0c349b..09e5a2e79c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_i256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_i256_a.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639894), Int(115792089237316195423570985008687907853269984665640564039457584007913129639894)]) used 278 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_i256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_i256_b.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_i256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_i256_b.snap index 03e10684b1..815edd8b2a 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_i256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_i256_b.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639894), Int(42)]) used 278 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_u128.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_u128.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_u128.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_u128.snap index 228335dfcd..9e001420ab 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_u128.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_u128.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(42), Uint(42)]) used 312 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_u256.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_u256.snap index 9d74add1b8..6495564646 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_addition_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_addition_u256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(42), Uint(42)]) used 202 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_array.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_array.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_array.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_array.snap index 23ed776d11..8e53da248f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_array.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_array.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(42)]) used 1356 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseand_u128.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseand_u128.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseand_u128.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseand_u128.snap index 90cedfef8b..fd0c503283 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseand_u128.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseand_u128.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(12), Uint(25)]) used 221 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseand_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseand_u256.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseand_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseand_u256.snap index 9602984579..06a7130c20 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseand_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseand_u256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(12), Uint(25)]) used 153 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseor_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseor_u256.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseor_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseor_u256.snap index 9602984579..06a7130c20 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseor_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseor_u256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(12), Uint(25)]) used 153 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_i64_coerced.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_i64_coerced.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_i64_coerced.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_i64_coerced.snap index 7cc6f39a22..b47dd3e96b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_i64_coerced.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_i64_coerced.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 105 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_i8.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_i8.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_i8.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_i8.snap index a8fc5a4f09..b5557c2cc4 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_i8.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_i8.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639935), Uint(1)]) used 235 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_u256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_u256_a.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_u256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_u256_a.snap index f56ac8f4ae..50456cc114 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_u256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_u256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(212), Uint(0)]) used 153 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_u256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_u256_b.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_u256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_u256_b.snap index dadca765c6..d19e0018f1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_u256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_u256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(212), Uint(1)]) used 153 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_u8.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_u8.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_u8.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_u8.snap index 58540508f1..cd6d24db4c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshl_u8.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshl_u8.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(1), Uint(8)]) used 209 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_i256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_i256_a.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_i256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_i256_a.snap index ea223619ce..d34e4f2790 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_i256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_i256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(212), Uint(0)]) used 153 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_i256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_i256_b.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_i256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_i256_b.snap index ed5ae87851..fc4f1965ae 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_i256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_i256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(212), Uint(1)]) used 153 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_u256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_u256_c.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_u256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_u256_c.snap index f56ac8f4ae..50456cc114 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_u256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_u256_c.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(212), Uint(0)]) used 153 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_u256_d.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_u256_d.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_u256_d.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_u256_d.snap index dadca765c6..d19e0018f1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwiseshr_u256_d.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwiseshr_u256_d.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(212), Uint(1)]) used 153 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwisexor_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwisexor_u256.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwisexor_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwisexor_u256.snap index 9602984579..06a7130c20 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bitwisexor_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bitwisexor_u256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(12), Uint(25)]) used 153 gas diff --git a/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_false.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_false.snap new file mode 100644 index 0000000000..16f845eaa1 --- /dev/null +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_false.snap @@ -0,0 +1,6 @@ +--- +source: crates/tests-legacy/src/features.rs +expression: "format!(\"{}\", harness.gas_reporter)" +--- +bar([]) used 102 gas + diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_inverted_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_inverted_a.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_inverted_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_inverted_a.snap index 4e4bef6b03..2acdc8c3fb 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_inverted_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_inverted_a.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Bool(true)]) used 181 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_inverted_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_inverted_b.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_inverted_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_inverted_b.snap index 59a4bedaed..8403080163 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_inverted_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_inverted_b.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Bool(false)]) used 181 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_a.snap similarity index 70% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_a.snap index eef554700e..f43658d73c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_a.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Bool(true), Bool(true)]) used 266 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_b.snap similarity index 70% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_b.snap index 089d0fc9f7..8ce022e4b9 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_b.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Bool(true), Bool(false)]) used 266 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_c.snap similarity index 70% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_c.snap index 2ab1e48bda..d26dc7eb42 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_c.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Bool(false), Bool(true)]) used 273 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_d.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_d.snap similarity index 70% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_d.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_d.snap index 105f5e8a40..18bd15eb5d 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_and_d.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_and_d.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Bool(false), Bool(false)]) used 273 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_a.snap similarity index 70% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_a.snap index aa760514ee..b49fd12c60 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_a.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Bool(true), Bool(true)]) used 263 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_b.snap similarity index 70% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_b.snap index e7bffcb59b..5614a99cdf 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_b.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Bool(true), Bool(false)]) used 263 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_c.snap similarity index 70% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_c.snap index fa4eef1234..9bdc742db2 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_c.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Bool(false), Bool(true)]) used 284 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_d.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_d.snap similarity index 70% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_d.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_d.snap index 0669bc480b..1fa226c14f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_op_or_d.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_op_or_d.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Bool(false), Bool(false)]) used 284 gas diff --git a/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_true.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_true.snap new file mode 100644 index 0000000000..16f845eaa1 --- /dev/null +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_bool_true.snap @@ -0,0 +1,6 @@ +--- +source: crates/tests-legacy/src/features.rs +expression: "format!(\"{}\", harness.gas_reporter)" +--- +bar([]) used 102 gas + diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_builtin_attributes.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_builtin_attributes.snap similarity index 87% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_builtin_attributes.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_builtin_attributes.snap index 65f6e59dfc..6eb14f5689 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_builtin_attributes.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_builtin_attributes.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- base_fee([]) used 122 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_a.snap similarity index 78% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_a.snap index da0dad3e48..db3370a7b2 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_a.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639933)]) used 202 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_b.snap similarity index 78% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_b.snap index 04d21cf4b1..ce3eba1aa8 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_b.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639808)]) used 202 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_c.snap similarity index 78% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_c.snap index b79b4342dd..7f24f9ed41 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_c.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639809)]) used 202 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_d.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_d.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_d.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_d.snap index 9fd9edb6d1..5f463b16d5 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_d.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_d.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(127)]) used 202 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_e.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_e.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_e.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_e.snap index 81d673d9b1..4b88a22124 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_e.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_e.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(0)]) used 202 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_f.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_f.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_f.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_f.snap index 737ff3e6f3..448f02fdd4 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_i8_to_unsigned_f.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_i8_to_unsigned_f.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(1)]) used 202 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_a.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_a.snap index bef08d2894..910d21f59b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_a.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(253)]) used 186 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_b.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_b.snap index 0f45602371..30db8be097 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_b.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(127)]) used 186 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_c.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_c.snap index 47a5845e4c..6491b9010f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_c.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(128)]) used 186 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_d.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_d.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_d.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_d.snap index 771aae99ee..4c8a12c1e8 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_d.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_d.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(129)]) used 186 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_e.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_e.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_e.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_e.snap index d42a354fc1..21777883e7 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_e.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_e.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(0)]) used 186 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_f.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_f.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_f.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_f.snap index c74afdc41a..b78984f4db 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_cast_u8_to_signed_f.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_cast_u8_to_signed_f.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(1)]) used 186 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_complex_struct.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_complex_struct.snap similarity index 81% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_complex_struct.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_complex_struct.snap index 99feffbfa1..b80ddf11d5 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_complex_struct.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_complex_struct.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- static_complex([]) used 948 gas string_complex([]) used 1724 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_division_i256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_i256_a.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_division_i256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_i256_a.snap index 02aaff0d4d..90d500f14e 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_division_i256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_i256_a.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639894), Int(115792089237316195423570985008687907853269984665640564039457584007913129639894)]) used 241 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_division_i256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_i256_b.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_division_i256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_i256_b.snap index 9e8cc8828b..889a71974f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_division_i256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_i256_b.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639935), Int(1)]) used 241 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_division_i256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_i256_c.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_division_i256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_i256_c.snap index c012e296be..824ef21033 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_division_i256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_i256_c.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639894), Int(42)]) used 241 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_division_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_u256.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_division_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_u256.snap index 450cdedeb8..c103e5e7d9 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_division_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_division_u256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(42), Uint(42)]) used 201 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_eq_u256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_eq_u256_a.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_eq_u256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_eq_u256_a.snap index f5bd05192e..f733453d01 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_eq_u256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_eq_u256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(1)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_eq_u256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_eq_u256_b.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_eq_u256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_eq_u256_b.snap index ad9f0c3835..3380134813 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_eq_u256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_eq_u256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(2)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_from_memory_i8.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_from_memory_i8.snap similarity index 78% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_from_memory_i8.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_from_memory_i8.snap index dbf92620cf..44f99f842b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_from_memory_i8.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_from_memory_i8.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639933)]) used 482 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_from_storage_array_i8.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_from_storage_array_i8.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_from_storage_array_i8.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_from_storage_array_i8.snap index ff156eac39..778715011b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_from_storage_array_i8.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_from_storage_array_i8.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639926)]) used 22633 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_from_storage_i8.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_from_storage_i8.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_from_storage_i8.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_from_storage_i8.snap index a692028101..4716ae873f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_from_storage_i8.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_from_storage_i8.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639933)]) used 22638 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_a.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_a.snap index 9f4238c5b5..be6ca70c8f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(2), Int(1)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_b.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_b.snap index 003b4f3bf0..467fbf5d09 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(1), Int(1)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_c.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_c.snap index 6d4809cbf4..e8d1e59c95 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_c.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(1), Int(2)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_d.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_d.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_d.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_d.snap index 59d0ae645a..31b0517760 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_d.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_d.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639935), Int(115792089237316195423570985008687907853269984665640564039457584007913129639934)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_e.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_e.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_e.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_e.snap index 6358676e01..fb65624d2b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_e.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_e.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639935), Int(115792089237316195423570985008687907853269984665640564039457584007913129639935)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_f.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_f.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_f.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_f.snap index eef6e8fdee..b5ae634a24 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_f.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_i256_f.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639934), Int(115792089237316195423570985008687907853269984665640564039457584007913129639935)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_u256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_u256_a.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_u256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_u256_a.snap index 34d0886984..df713a45fd 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_u256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_u256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(2), Uint(1)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_u256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_u256_b.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_u256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_u256_b.snap index f5bd05192e..f733453d01 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_u256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_u256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(1)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_u256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_u256_c.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_u256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_u256_c.snap index ad9f0c3835..3380134813 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_u256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gt_u256_c.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(2)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_a.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_a.snap index de5be278eb..cccc28c70c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(2), Int(1)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_b.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_b.snap index 3f9a02838b..45823a078f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(1), Int(1)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_c.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_c.snap index 72aeb7ac6a..b26bde1106 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_c.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(1), Int(2)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_f.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_d.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_f.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_d.snap index b7404c95d4..ae8a929619 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_f.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_d.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639935), Int(115792089237316195423570985008687907853269984665640564039457584007913129639934)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_e.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_e.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_e.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_e.snap index f017373183..8a4b5f40f5 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_e.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_e.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639935), Int(115792089237316195423570985008687907853269984665640564039457584007913129639935)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_d.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_f.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_d.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_f.snap index 2f9cd4658d..63a13ac092 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_d.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_i256_f.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639934), Int(115792089237316195423570985008687907853269984665640564039457584007913129639935)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_u256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_u256_a.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_u256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_u256_a.snap index 287805cf5a..319c4ccbdc 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_u256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_u256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(2), Uint(1)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_u256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_u256_b.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_u256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_u256_b.snap index 3d2ab29400..03a7f8ff6f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_u256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_u256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(1)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_u256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_u256_c.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_u256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_u256_c.snap index c1d530678c..8a9755f6fd 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_u256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_gte_u256_c.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(2)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_i128_cast.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_i128_cast.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_i128_cast.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_i128_cast.snap index 7cc6f39a22..b47dd3e96b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_i128_cast.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_i128_cast.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 105 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_i256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_i256.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_i256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_i256.snap index 7cc6f39a22..b47dd3e96b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_i256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_i256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 105 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u128.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u128.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u128.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u128.snap index 426beb9f83..4183e3aa66 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u128.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u128.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(42)]) used 193 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u16.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u16.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u16.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u16.snap index 77c48ae48b..deea28b952 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u16.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u16.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(42)]) used 178 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u256.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u256.snap index db2f444418..476c819467 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(42)]) used 144 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u32.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u32.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u32.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u32.snap index 77c48ae48b..deea28b952 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u32.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u32.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(42)]) used 178 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u64.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u64.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u64.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u64.snap index 426beb9f83..4183e3aa66 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u64.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u64.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(42)]) used 193 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u8.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u8.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u8.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u8.snap index 77c48ae48b..deea28b952 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_identity_u8.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_identity_u8.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(42)]) used 178 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i128.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i128.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i128.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i128.snap index 17bface688..16faf23af1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i128.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i128.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(1)]) used 210 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i16.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i16.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i16.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i16.snap index c02fd669e3..3326fa3f24 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i16.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i16.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(2000)]) used 210 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i256.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i256.snap index 8b4d121034..225a435130 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(1)]) used 147 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i32.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i32.snap similarity index 67% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i32.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i32.snap index fd4351246d..1c0529130b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i32.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i32.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(30000)]) used 210 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i64.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i64.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i64.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i64.snap index 6c0d61b1ff..a9f1af4bb3 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i64.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i64.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(4000000000)]) used 210 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i8.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i8.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i8.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i8.snap index 17bface688..16faf23af1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_i8.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_i8.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(1)]) used 210 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u128.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u128.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u128.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u128.snap index c38bdce225..48f32bb1c1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u128.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u128.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(1)]) used 193 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u16.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u16.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u16.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u16.snap index 788b623483..e6bafa5a7b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u16.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u16.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(1)]) used 181 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u256.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u256.snap index a7abea0a1b..00f1e7852e 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1)]) used 147 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u32.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u32.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u32.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u32.snap index 788b623483..e6bafa5a7b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u32.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u32.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(1)]) used 181 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u64.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u64.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u64.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u64.snap index c38bdce225..48f32bb1c1 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u64.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u64.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(1)]) used 193 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u8.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u8.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u8.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u8.snap index 788b623483..e6bafa5a7b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_invert_u8.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_invert_u8.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(1)]) used 181 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_a.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_a.snap index 6d4809cbf4..e8d1e59c95 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(1), Int(2)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_b.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_b.snap index 003b4f3bf0..467fbf5d09 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(1), Int(1)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_c.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_c.snap index 9f4238c5b5..be6ca70c8f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_c.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(2), Int(1)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_d.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_d.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_d.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_d.snap index eef6e8fdee..b5ae634a24 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_d.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_d.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639934), Int(115792089237316195423570985008687907853269984665640564039457584007913129639935)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_e.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_e.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_e.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_e.snap index 6358676e01..fb65624d2b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gt_i256_e.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_e.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639935), Int(115792089237316195423570985008687907853269984665640564039457584007913129639935)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_f.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_f.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_f.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_f.snap index 59d0ae645a..31b0517760 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_i256_f.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_i256_f.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639935), Int(115792089237316195423570985008687907853269984665640564039457584007913129639934)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u128.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u128.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u128.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u128.snap index d49241f984..5864ed4790 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u128.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u128.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(1), Uint(2)]) used 212 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u256_a.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u256_a.snap index ad9f0c3835..3380134813 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(2)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u256_b.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u256_b.snap index f5bd05192e..f733453d01 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(1)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u256_c.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u256_c.snap index 34d0886984..df713a45fd 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lt_u256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lt_u256_c.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(2), Uint(1)]) used 159 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_a.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_a.snap index 72aeb7ac6a..b26bde1106 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(1), Int(2)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_b.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_b.snap index 3f9a02838b..45823a078f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(1), Int(1)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_c.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_c.snap index de5be278eb..cccc28c70c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_i256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_c.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(2), Int(1)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_f.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_d.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_f.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_d.snap index 2f9cd4658d..63a13ac092 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_f.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_d.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639934), Int(115792089237316195423570985008687907853269984665640564039457584007913129639935)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_e.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_e.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_e.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_e.snap index f017373183..8a4b5f40f5 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_e.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_e.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639935), Int(115792089237316195423570985008687907853269984665640564039457584007913129639935)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_d.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_f.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_d.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_f.snap index b7404c95d4..ae8a929619 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_gte_i256_d.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_i256_f.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639935), Int(115792089237316195423570985008687907853269984665640564039457584007913129639934)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_u256.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_u256.snap index 287805cf5a..319c4ccbdc 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_u256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(2), Uint(1)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_u256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_u256_a.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_u256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_u256_a.snap index c1d530678c..8a9755f6fd 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_u256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_u256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(2)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_u256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_u256_b.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_u256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_u256_b.snap index 3d2ab29400..03a7f8ff6f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_lte_u256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_lte_u256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(1)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_i256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_i256_a.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_i256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_i256_a.snap index 7c755c4d15..ad46b30e83 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_i256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_i256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(5), Int(2)]) used 201 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_i256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_i256_b.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_i256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_i256_b.snap index 92b5fb24db..a1299fc4f2 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_i256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_i256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(5), Int(3)]) used 201 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_i256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_i256_c.snap similarity index 68% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_i256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_i256_c.snap index 5eca984912..187c1e8cba 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_i256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_i256_c.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(5), Int(5)]) used 201 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_u256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_u256_a.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_u256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_u256_a.snap index 2a4d5286cb..4de87c9940 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_u256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_u256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(5), Uint(2)]) used 201 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_u256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_u256_b.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_u256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_u256_b.snap index 095ef49d17..fcc34db4bd 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_u256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_u256_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(5), Uint(3)]) used 201 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_u256_c.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_u256_c.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_u256_c.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_u256_c.snap index 737a1b9d94..c66d0d4fef 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_mod_u256_c.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_mod_u256_c.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(5), Uint(5)]) used 201 gas diff --git a/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_msg_sig.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_msg_sig.snap new file mode 100644 index 0000000000..16f845eaa1 --- /dev/null +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_msg_sig.snap @@ -0,0 +1,6 @@ +--- +source: crates/tests-legacy/src/features.rs +expression: "format!(\"{}\", harness.gas_reporter)" +--- +bar([]) used 102 gas + diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_multiplication_i256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_multiplication_i256_a.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_multiplication_i256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_multiplication_i256_a.snap index 2ff0757806..c2f7806400 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_multiplication_i256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_multiplication_i256_a.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639894), Int(115792089237316195423570985008687907853269984665640564039457584007913129639894)]) used 416 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_multiplication_i256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_multiplication_i256_b.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_multiplication_i256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_multiplication_i256_b.snap index 8484f340cf..080b0c21d0 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_multiplication_i256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_multiplication_i256_b.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639894), Int(42)]) used 416 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_multiplication_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_multiplication_u256.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_multiplication_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_multiplication_u256.snap index 956259ec52..340db1543c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_multiplication_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_multiplication_u256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(42), Uint(42)]) used 224 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_noteq_u256a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_noteq_u256a.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_noteq_u256a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_noteq_u256a.snap index 3d2ab29400..03a7f8ff6f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_noteq_u256a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_noteq_u256a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(1)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_noteq_u256b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_noteq_u256b.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_noteq_u256b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_noteq_u256b.snap index c1d530678c..8a9755f6fd 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_noteq_u256b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_noteq_u256b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(1), Uint(2)]) used 162 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_pow_i256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_pow_i256.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_pow_i256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_pow_i256.snap index 4d1172543e..426e127c02 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_pow_i256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_pow_i256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639934), Uint(3)]) used 653 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_pow_u256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_pow_u256_a.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_pow_u256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_pow_u256_a.snap index 6ce7c46219..c7e53a348a 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_pow_u256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_pow_u256_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(2), Uint(0)]) used 218 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_pow_u256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_pow_u256_b.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_pow_u256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_pow_u256_b.snap index e13286457c..d810ba687c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_pow_u256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_pow_u256_b.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(2), Uint(4)]) used 310 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_subtraction_i256_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_subtraction_i256_a.snap similarity index 85% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_subtraction_i256_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_subtraction_i256_a.snap index 1e7774dcc7..f82157df3d 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_subtraction_i256_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_subtraction_i256_a.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639894), Int(115792089237316195423570985008687907853269984665640564039457584007913129639894)]) used 272 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_subtraction_i256_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_subtraction_i256_b.snap similarity index 79% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_subtraction_i256_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_subtraction_i256_b.snap index bf1147189d..8d05626b31 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_subtraction_i256_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_subtraction_i256_b.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639894), Int(42)]) used 272 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_subtraction_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_subtraction_u256.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_subtraction_u256.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_subtraction_u256.snap index bdebc273ac..159f7664af 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_subtraction_u256.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_subtraction_u256.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(42), Uint(42)]) used 199 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_sum_list_expression_1.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_sum_list_expression_1.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_sum_list_expression_1.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_sum_list_expression_1.snap index 0a6f97ab94..98b1d8f37b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_sum_list_expression_1.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_sum_list_expression_1.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 27610 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_sum_list_expression_2.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_sum_list_expression_2.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_sum_list_expression_2.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_sum_list_expression_2.snap index 61fadf06b0..6fe9e9a267 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_sum_list_expression_2.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_sum_list_expression_2.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 4382 gas diff --git a/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u128_cast.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u128_cast.snap new file mode 100644 index 0000000000..16f845eaa1 --- /dev/null +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u128_cast.snap @@ -0,0 +1,6 @@ +--- +source: crates/tests-legacy/src/features.rs +expression: "format!(\"{}\", harness.gas_reporter)" +--- +bar([]) used 102 gas + diff --git a/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u256.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u256.snap new file mode 100644 index 0000000000..16f845eaa1 --- /dev/null +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u256.snap @@ -0,0 +1,6 @@ +--- +source: crates/tests-legacy/src/features.rs +expression: "format!(\"{}\", harness.gas_reporter)" +--- +bar([]) used 102 gas + diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_u256_from_called_fn.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u256_from_called_fn.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_u256_from_called_fn.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u256_from_called_fn.snap index 664bb8c16e..6a3dbe24ee 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_u256_from_called_fn.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u256_from_called_fn.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 120 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_u256_from_called_fn_with_args.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u256_from_called_fn_with_args.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__return_u256_from_called_fn_with_args.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u256_from_called_fn_with_args.snap index 6706f0f9e1..72bee2199f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_u256_from_called_fn_with_args.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__return_u256_from_called_fn_with_args.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 22307 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__send_value.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__send_value.snap similarity index 77% rename from crates/tests/src/snapshots/fe_compiler_tests__features__send_value.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__send_value.snap index eac102a6a7..216b7262de 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__send_value.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__send_value.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- send_them_wei([Address(0x2000000000000000000000000000000000000002), Uint(1)]) used 34574 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__short_circuit.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__short_circuit.snap similarity index 80% rename from crates/tests/src/snapshots/fe_compiler_tests__features__short_circuit.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__short_circuit.snap index 2c984d3adf..951ac516a0 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__short_circuit.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__short_circuit.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(6)]) used 236 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array1@[Int(100)].snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array1@[Int(100)].snap similarity index 61% rename from crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array1@[Int(100)].snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array1@[Int(100)].snap index e0cb0753b6..e94e093415 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array1@[Int(100)].snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array1@[Int(100)].snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 2160 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(100)]) used 22633 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array1@[Int(115792089237316195423570985008687907853269984665640564039457584007913129639926)].snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array1@[Int(115792089237316195423570985008687907853269984665640564039457584007913129639926)].snap similarity index 74% rename from crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array1@[Int(115792089237316195423570985008687907853269984665640564039457584007913129639926)].snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array1@[Int(115792089237316195423570985008687907853269984665640564039457584007913129639926)].snap index b6c656eaa5..778715011b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array1@[Int(115792089237316195423570985008687907853269984665640564039457584007913129639926)].snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array1@[Int(115792089237316195423570985008687907853269984665640564039457584007913129639926)].snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 2160 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Int(115792089237316195423570985008687907853269984665640564039457584007913129639926)]) used 22633 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array2@i32_array.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array2@i32_array.snap similarity index 83% rename from crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array2@i32_array.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array2@i32_array.snap index e136c4da0b..b03224fbdf 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array2@i32_array.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array2@i32_array.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 2176 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- i32_array([FixedArray([Int(115792089237316195423570985008687907853269984665640564039457584007913129639926), Int(100), Int(115792089237316195423570985008687907853269984665640564039457584007910982156288), Int(2147483647)])]) used 1378 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array2@i8_array.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array2@i8_array.snap similarity index 83% rename from crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array2@i8_array.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array2@i8_array.snap index b0f631093b..6faff7024f 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__signext_int_array2@i8_array.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__signext_int_array2@i8_array.snap @@ -1,6 +1,5 @@ --- -source: crates/tests/src/features.rs -assertion_line: 2176 +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- i8_array([FixedArray([Int(115792089237316195423570985008687907853269984665640564039457584007913129639926), Int(100), Int(115792089237316195423570985008687907853269984665640564039457584007913129639808), Int(127)])]) used 1311 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__sized_vals_in_sto.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__sized_vals_in_sto.snap similarity index 94% rename from crates/tests/src/snapshots/fe_compiler_tests__features__sized_vals_in_sto.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__sized_vals_in_sto.snap index c27b363b77..6237eb6e10 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__sized_vals_in_sto.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__sized_vals_in_sto.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- write_num([Uint(68)]) used 22209 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__strings.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__strings.snap similarity index 84% rename from crates/tests/src/snapshots/fe_compiler_tests__features__strings.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__strings.snap index 2ea5045e00..19ba6de5f0 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__strings.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__strings.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([String("string 4"), String("string 5")]) used 1631 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__struct_fns.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__struct_fns.snap similarity index 69% rename from crates/tests/src/snapshots/fe_compiler_tests__features__struct_fns.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__struct_fns.snap index 9079f9e0e9..9d4e26a35c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__struct_fns.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__struct_fns.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([Uint(10), Uint(20)]) used 2537 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__structs.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__structs.snap similarity index 90% rename from crates/tests/src/snapshots/fe_compiler_tests__features__structs.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__structs.snap index 9eaf507298..95cf9db666 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__structs.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__structs.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- create_house([]) used 69429 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__ternary_expression_a.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ternary_expression_a.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__ternary_expression_a.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ternary_expression_a.snap index d13acaa896..ccf1af7fdc 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__ternary_expression_a.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ternary_expression_a.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(6)]) used 210 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__ternary_expression_b.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ternary_expression_b.snap similarity index 66% rename from crates/tests/src/snapshots/fe_compiler_tests__features__ternary_expression_b.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ternary_expression_b.snap index 08a2ba5cc0..9705024d0c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__ternary_expression_b.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__ternary_expression_b.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([Uint(4)]) used 221 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__tuple_destructuring.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__tuple_destructuring.snap similarity index 73% rename from crates/tests/src/snapshots/fe_compiler_tests__features__tuple_destructuring.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__tuple_destructuring.snap index 2e98b40731..e974a89073 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__tuple_destructuring.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__tuple_destructuring.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- bar([]) used 120 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__two_contracts.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__two_contracts.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__two_contracts.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__two_contracts.snap index 4a4dbab4c1..b70d110775 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__two_contracts.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__two_contracts.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" --- foo([]) used 24304 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__value_semantics.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__value_semantics.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__value_semantics.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__value_semantics.snap index 45d23e5732..7db1035258 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__value_semantics.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__value_semantics.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 29962 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__while_loop.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop.snap index 6fd076b2c1..2982e2a6d6 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 423 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_test_from_sto.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_test_from_sto.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_test_from_sto.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_test_from_sto.snap index 6bc84f9235..918d11d020 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_test_from_sto.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_test_from_sto.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 2329 gas diff --git a/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_with_break.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_with_break.snap new file mode 100644 index 0000000000..16f845eaa1 --- /dev/null +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_with_break.snap @@ -0,0 +1,6 @@ +--- +source: crates/tests-legacy/src/features.rs +expression: "format!(\"{}\", harness.gas_reporter)" +--- +bar([]) used 102 gas + diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_with_break_2.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_with_break_2.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_with_break_2.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_with_break_2.snap index 4c577f0733..dec5424e20 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_with_break_2.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_with_break_2.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 236 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_with_continue.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_with_continue.snap similarity index 65% rename from crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_with_continue.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_with_continue.snap index 3f55331bf0..f033d56b2c 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_with_continue.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__features__while_loop_with_continue.snap @@ -1,7 +1,6 @@ --- -source: crates/tests/src/features.rs +source: crates/tests-legacy/src/features.rs expression: "format!(\"{}\", harness.gas_reporter)" - --- bar([]) used 446 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__stress__abi_encoding_stress.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__abi_encoding_stress.snap similarity index 98% rename from crates/tests/src/snapshots/fe_compiler_tests__stress__abi_encoding_stress.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__abi_encoding_stress.snap index 0c6082f26b..37bcfce02d 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__stress__abi_encoding_stress.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__abi_encoding_stress.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/stress.rs +source: crates/tests-legacy/src/stress.rs expression: "format!(\"{}\", harness.gas_reporter)" --- set_my_addrs([FixedArray([Address(0x000000000000000000000000000000000000000a), Address(0x000000000000000000000000000000000000000b), Address(0x000000000000000000000000000000000000000c), Address(0x000000000000000000000000000000000000000d), Address(0x000000000000000000000000000000000000000e)])]) used 111677 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__stress__data_copying_stress.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__data_copying_stress.snap similarity index 96% rename from crates/tests/src/snapshots/fe_compiler_tests__stress__data_copying_stress.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__data_copying_stress.snap index 8bae6c015e..bcf495c17b 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__stress__data_copying_stress.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__data_copying_stress.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/stress.rs +source: crates/tests-legacy/src/stress.rs expression: "format!(\"{}\", harness.gas_reporter)" --- set_my_vals([String("my string"), String("my other string"), Uint(26), Uint(42)]) used 138311 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__stress__external_calls_stress.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__external_calls_stress.snap similarity index 93% rename from crates/tests/src/snapshots/fe_compiler_tests__stress__external_calls_stress.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__external_calls_stress.snap index c761939330..f5135e4038 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__stress__external_calls_stress.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__external_calls_stress.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/stress.rs +source: crates/tests-legacy/src/stress.rs expression: "format!(\"{}\", proxy_harness.gas_reporter)" --- call_set_my_string([String("hello world")]) used 52895 gas diff --git a/crates/tests/src/snapshots/fe_compiler_tests__stress__tuple_stress.snap b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__tuple_stress.snap similarity index 95% rename from crates/tests/src/snapshots/fe_compiler_tests__stress__tuple_stress.snap rename to crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__tuple_stress.snap index 942f683719..af30f341d4 100644 --- a/crates/tests/src/snapshots/fe_compiler_tests__stress__tuple_stress.snap +++ b/crates/tests-legacy/src/snapshots/fe_compiler_tests_legacy__stress__tuple_stress.snap @@ -1,5 +1,5 @@ --- -source: crates/tests/src/stress.rs +source: crates/tests-legacy/src/stress.rs expression: "format!(\"{}\", harness.gas_reporter)" --- build_my_tuple([Uint(26), Bool(true), Address(0x0000000000000000000000000000000000000042)]) used 596 gas diff --git a/crates/tests/src/solidity.rs b/crates/tests-legacy/src/solidity.rs similarity index 100% rename from crates/tests/src/solidity.rs rename to crates/tests-legacy/src/solidity.rs diff --git a/crates/tests/src/stress.rs b/crates/tests-legacy/src/stress.rs similarity index 100% rename from crates/tests/src/stress.rs rename to crates/tests-legacy/src/stress.rs diff --git a/crates/tests/Cargo.toml b/crates/tests/Cargo.toml index ad736e8691..701ca29ebf 100644 --- a/crates/tests/Cargo.toml +++ b/crates/tests/Cargo.toml @@ -7,35 +7,9 @@ license = "GPL-3.0-or-later" repository = "https://github.com/ethereum/fe" [dependencies] - -[dev-dependencies] -ethabi = { default-features = false, version = "18.0" } -evm = { default-features = false, version = "0.37" } -evm-runtime = { default-features = false, version = "0.37" } -fe-analyzer = {path = "../analyzer", version = "^0.21.0-alpha"} -fe-common = {path = "../common", version = "^0.21.0-alpha"} -fe-compiler-test-utils = {path = "../test-utils" } -fe-parser = {path = "../parser", version = "^0.21.0-alpha"} -fe-yulc = {path = "../yulc", version = "^0.21.0-alpha"} +fe-test-runner = {path = "../test-runner", version = "^0.21.0-alpha"} fe-driver = {path = "../driver", version = "^0.21.0-alpha"} -test-files = {path = "../test-files", package = "fe-test-files" } -hex = "0.4" -primitive-types = {version = "0.12", default-features = false, features = ["rlp"]} -rand = "0.7.3" -rstest = "0.6.4" -# This fork contains the shorthand macros and some other necessary updates. -yultsur = {git = "https://github.com/g-r-a-n-t/yultsur", rev = "ae85470"} -insta = { default-features = false, version = "1.26" } -pretty_assertions = "1.0.0" -wasm-bindgen-test = "0.3.24" +dir-test = "^0.1" [features] -solc-backend = ["fe-yulc/solc-backend", "fe-compiler-test-utils/solc-backend"] - -[dev-dependencies.proptest] -version = "1.0.0" -# The default feature set includes things like process forking which are not -# supported in Web Assembly. -default-features = false -# Enable using the `std` crate. -features = ["std"] +solc-backend = ["fe-driver/solc-backend"] diff --git a/crates/tests/fixtures/files/const_local.fe b/crates/tests/fixtures/files/const_local.fe new file mode 100644 index 0000000000..a47396b62e --- /dev/null +++ b/crates/tests/fixtures/files/const_local.fe @@ -0,0 +1,20 @@ +fn bar() -> u256 { + const C1: i64 = 1 + const C2: i64 = 2 + const C3: i64 = 10 + const C4: i64 = (C1 * C2) + C3 // 12 + const EXP: u8 = 2 + const C5: i64 = (C2 ** EXP) // 4 + const C6: i64 = (C5 << 1) // 8 + const C7: bool = (C5 < C6) and (C4 > C5) // true + const C8: bool = false + const C9: bool = C8 < C7 // true + const C10: u256 = 42 if C9 else 0 // 42 + let _arr: Array = [true; { C10 }] + return C10 +} + +#test +fn test_bar() { + assert bar() == 42 +} \ No newline at end of file diff --git a/crates/tests/fixtures/files/math.fe b/crates/tests/fixtures/files/math.fe new file mode 100644 index 0000000000..6ad2822b35 --- /dev/null +++ b/crates/tests/fixtures/files/math.fe @@ -0,0 +1,28 @@ +fn sqrt(_ val: u256) -> u256 { + let mut z: u256 + if val > 3 { + z = val + let mut x: u256 = val / 2 + 1 + while x < z { + z = x + x = (val / x + x) / 2 + } + } else if val != 0 { + z = 1 + } + return z +} + +fn min(a: u256, b: u256) -> u256 { + return a if a < b else b +} + +#test +fn test_sqrt() { + assert sqrt(16000) == 126 +} + +#test +fn test_min() { + assert min(a: 1, b: 2) == 1 +} \ No newline at end of file diff --git a/crates/tests/fixtures/files/sanity_file.fe b/crates/tests/fixtures/files/sanity_file.fe new file mode 100644 index 0000000000..c4eb2e262f --- /dev/null +++ b/crates/tests/fixtures/files/sanity_file.fe @@ -0,0 +1,25 @@ +struct Foo { + pub value: u256 +} + +fn inc_foo(mut foo: Foo) { + foo.value += 1 +} + +fn inc_foo_broken(mut foo: Foo) { + foo.value -= 1 +} + +#test +fn test_inc_foo() { + let mut foo: Foo = Foo(value: 42) + inc_foo(foo) + assert foo.value == 43 +} + +// #test +// fn test_inc_foo_broken() { +// let mut foo: Foo = Foo(value: 42) +// inc_foo_broken(foo) +// assert foo.value == 43 +// } diff --git a/crates/tests/fixtures/files/while_loop.fe b/crates/tests/fixtures/files/while_loop.fe new file mode 100644 index 0000000000..e149869ee2 --- /dev/null +++ b/crates/tests/fixtures/files/while_loop.fe @@ -0,0 +1,17 @@ +fn bar() -> u256 { + let mut val: u256 = 0 + + while val < 2 { + val = val + 1 + if val == 2 { + val = 3 + } + } + + return val +} + +#test +fn test_bar() { + assert bar() == 3 +} \ No newline at end of file diff --git a/crates/tests/fixtures/ingots/sanity_ingot/bar.fe b/crates/tests/fixtures/ingots/sanity_ingot/bar.fe new file mode 100644 index 0000000000..46538c0b2f --- /dev/null +++ b/crates/tests/fixtures/ingots/sanity_ingot/bar.fe @@ -0,0 +1,18 @@ +pub struct Bar { + pub inner: u256 +} + +#test +fn test_bar() { + assert 1 + 1 == 2 +} + +#test +fn test_bar2() { + assert 2 + 1 == 3 +} + +#test +fn test_bar_broken() { + assert 1 + 1 == 3 +} \ No newline at end of file diff --git a/crates/tests/fixtures/ingots/sanity_ingot/foo.fe b/crates/tests/fixtures/ingots/sanity_ingot/foo.fe new file mode 100644 index 0000000000..1bb7945b73 --- /dev/null +++ b/crates/tests/fixtures/ingots/sanity_ingot/foo.fe @@ -0,0 +1,9 @@ +#test +fn test_add() { + assert 1 + 1 == 2 +} + +#test +fn test_add_broken() { + assert 1 + 1 == 3 +} \ No newline at end of file diff --git a/crates/tests/fixtures/ingots/sanity_ingot/main.fe b/crates/tests/fixtures/ingots/sanity_ingot/main.fe new file mode 100644 index 0000000000..54f44fd938 --- /dev/null +++ b/crates/tests/fixtures/ingots/sanity_ingot/main.fe @@ -0,0 +1,13 @@ +use bar::Bar + +#test +fn test_main() { + let my_bar: Bar = Bar(inner: 42) + assert my_bar.inner == 42 +} + +#test +fn test_main_broken() { + let my_bar: Bar = Bar(inner: 42) + assert my_bar.inner == 43 +} \ No newline at end of file diff --git a/crates/tests/src/lib.rs b/crates/tests/src/lib.rs index 6a71d42f7d..fdd475567c 100644 --- a/crates/tests/src/lib.rs +++ b/crates/tests/src/lib.rs @@ -1,20 +1,25 @@ -#[cfg(test)] -mod crashes; -#[cfg(test)] -mod demo_erc20; -#[cfg(test)] -mod demo_guestbook; -#[cfg(test)] -mod demo_simple_open_auction; -#[cfg(test)] -mod demo_uniswap; -#[cfg(test)] -mod differential; -#[cfg(test)] -mod features; -#[cfg(test)] -mod ingots; -#[cfg(test)] -mod solidity; -#[cfg(test)] -mod stress; +#![cfg(feature = "solc-backend")] +#![allow(dead_code)] +use dir_test::{dir_test, Fixture}; +use fe_test_runner::TestSink; + +#[dir_test(dir: "$CARGO_MANIFEST_DIR/fixtures/files", glob: "*.fe")] +fn single_file_test_run(fixture: Fixture<&str>) { + let mut db = fe_driver::Db::default(); + let tests = + fe_driver::compile_single_file_tests(&mut db, fixture.path(), fixture.content(), true) + .expect("failed to compile tests") + .1; + + let mut test_sink = TestSink::default(); + + for test in tests { + test.execute(&mut test_sink); + } + + if test_sink.failure_count() != 0 { + panic!("{}", test_sink) + } +} + +// TODO: implement ingot test runner diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__const_local.snap b/crates/tests/src/snapshots/fe_compiler_tests__features__const_local.snap deleted file mode 100644 index eedfa52178..0000000000 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__const_local.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: crates/tests/src/features.rs -expression: "format!(\"{}\", harness.gas_reporter)" - ---- -bar([]) used 2323 gas - diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__math.snap b/crates/tests/src/snapshots/fe_compiler_tests__features__math.snap deleted file mode 100644 index a8542b882b..0000000000 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__math.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: crates/tests/src/features.rs -expression: "format!(\"{}\", harness.gas_reporter)" ---- -sqrt([Uint(16000)]) used 2614 gas -min([Uint(1), Uint(2)]) used 318 gas - diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_false.snap b/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_false.snap deleted file mode 100644 index 963565f5bd..0000000000 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_false.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: crates/tests/src/features.rs -expression: "format!(\"{}\", harness.gas_reporter)" - ---- -bar([]) used 102 gas - diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_true.snap b/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_true.snap deleted file mode 100644 index 963565f5bd..0000000000 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_bool_true.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: crates/tests/src/features.rs -expression: "format!(\"{}\", harness.gas_reporter)" - ---- -bar([]) used 102 gas - diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_msg_sig.snap b/crates/tests/src/snapshots/fe_compiler_tests__features__return_msg_sig.snap deleted file mode 100644 index 963565f5bd..0000000000 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_msg_sig.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: crates/tests/src/features.rs -expression: "format!(\"{}\", harness.gas_reporter)" - ---- -bar([]) used 102 gas - diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_u128_cast.snap b/crates/tests/src/snapshots/fe_compiler_tests__features__return_u128_cast.snap deleted file mode 100644 index 963565f5bd..0000000000 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_u128_cast.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: crates/tests/src/features.rs -expression: "format!(\"{}\", harness.gas_reporter)" - ---- -bar([]) used 102 gas - diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__return_u256.snap b/crates/tests/src/snapshots/fe_compiler_tests__features__return_u256.snap deleted file mode 100644 index 963565f5bd..0000000000 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__return_u256.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: crates/tests/src/features.rs -expression: "format!(\"{}\", harness.gas_reporter)" - ---- -bar([]) used 102 gas - diff --git a/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_with_break.snap b/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_with_break.snap deleted file mode 100644 index 963565f5bd..0000000000 --- a/crates/tests/src/snapshots/fe_compiler_tests__features__while_loop_with_break.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: crates/tests/src/features.rs -expression: "format!(\"{}\", harness.gas_reporter)" - ---- -bar([]) used 102 gas - diff --git a/newsfragments/807.feature.md b/newsfragments/807.feature.md new file mode 100644 index 0000000000..e43f529b4f --- /dev/null +++ b/newsfragments/807.feature.md @@ -0,0 +1,16 @@ +Support for tests. + +example: + +``` +#test +fn my_test() { + assert 26 + 16 == 42 +} +``` + +Tests can be executed using the `test` subcommand. + +example: + +`$ fe test foo.fe`