diff --git a/Cargo.lock b/Cargo.lock index 4fba960cdc..64826451c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,56 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "Inflector" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" +dependencies = [ + "lazy_static", + "regex", +] + +[[package]] +name = "adler" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" + +[[package]] +name = "aes" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" +dependencies = [ + "cfg-if 1.0.0", + "cipher 0.3.0", + "cpufeatures", + "opaque-debug 0.3.0", +] + +[[package]] +name = "aes" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "433cfd6710c9986c576a25ca913c39d66a6474107b406f34f91d4a8923395241" +dependencies = [ + "cfg-if 1.0.0", + "cipher 0.4.3", + "cpufeatures", +] + +[[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" @@ -11,12 +61,64 @@ dependencies = [ "memchr", ] +[[package]] +name = "anyhow" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224afbd727c3d6e4b90103ece64b8d1b67fbb1973b1046c2281eed3f3803f800" + +[[package]] +name = "arrayref" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" + [[package]] name = "arrayvec" version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" +[[package]] +name = "ascii-canvas" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8824ecca2e851cec16968d54a01dd372ef8f95b244fb84b84e70128be347c3c6" +dependencies = [ + "term", +] + +[[package]] +name = "async-trait" +version = "0.1.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cd7fce9ba8c3c042128ce72d8b2ddbf3a05747efb67ea0313c635e10bda47a2" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "async_io_stream" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d7b9decdf35d8908a7e3ef02f64c5e9b1695e230154c0e8de3969142d9b94c" +dependencies = [ + "futures", + "pharos", + "rustc_version 0.4.0", +] + +[[package]] +name = "atomic" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b88d82667eca772c4aa12f0f1348b3ae643424c8876448f3f7bd5787032e234c" +dependencies = [ + "autocfg", +] + [[package]] name = "atty" version = "0.2.14" @@ -28,6 +130,18 @@ dependencies = [ "winapi", ] +[[package]] +name = "auto_impl" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7862e21c893d65a1650125d157eaeec691439379a1cee17ee49031b79236ada4" +dependencies = [ + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "auto_impl" version = "1.0.1" @@ -46,6 +160,28 @@ 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 = "base58" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5024ee8015f02155eee35c711107ddd9a9bf3cb689cf2a9089c97e79b6e1ae83" + +[[package]] +name = "base58check" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ee2fe4c9a0c84515f136aaae2466744a721af6d63339c18689d9e995d74d99b" +dependencies = [ + "base58", + "sha2 0.8.2", +] + [[package]] name = "base64" version = "0.10.1" @@ -55,18 +191,82 @@ dependencies = [ "byteorder", ] +[[package]] +name = "base64" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" + +[[package]] +name = "base64" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + +[[package]] +name = "base64" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" + +[[package]] +name = "base64ct" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" + +[[package]] +name = "bech32" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dabbe35f96fb9507f7330793dc490461b2962659ac5d427181e451a623751d1" + [[package]] name = "beef" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bit-set" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" + [[package]] name = "bitflags" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitvec" +version = "0.17.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41262f11d771fd4a61aa3ce019fca363b4b6c282fca9da2a31186d3965a47a5c" +dependencies = [ + "either", + "radium 0.3.0", +] + [[package]] name = "bitvec" version = "1.0.1" @@ -74,32 +274,81 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" dependencies = [ "funty", - "radium", + "radium 0.7.0", "tap", "wyz", ] +[[package]] +name = "blake2" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" +dependencies = [ + "digest 0.10.6", +] + +[[package]] +name = "block-buffer" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" +dependencies = [ + "block-padding", + "byte-tools", + "byteorder", + "generic-array 0.12.4", +] + +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "generic-array 0.14.6", +] + [[package]] name = "block-buffer" version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" dependencies = [ - "generic-array", + "generic-array 0.14.6", ] +[[package]] +name = "block-padding" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5" +dependencies = [ + "byte-tools", +] + +[[package]] +name = "bs58" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" + [[package]] name = "bstr" -version = "0.2.17" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" +checksum = "5ffdb39cb703212f3c11973452c2861b972f757b021158f3516ba10f2fa8b2c1" dependencies = [ - "lazy_static", "memchr", - "regex-automata", "serde", ] +[[package]] +name = "build_const" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4ae4235e6dac0694637c763029ecea1a2ec9e4e06ec2729bd21ba4d9c863eb7" + [[package]] name = "bumpalo" version = "3.12.0" @@ -112,6 +361,12 @@ version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" +[[package]] +name = "byte-tools" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" + [[package]] name = "byteorder" version = "1.4.3" @@ -123,12 +378,62 @@ name = "bytes" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" +dependencies = [ + "serde", +] + +[[package]] +name = "bzip2" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" +dependencies = [ + "bzip2-sys", + "libc", +] + +[[package]] +name = "bzip2-sys" +version = "0.1.11+1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" +dependencies = [ + "cc", + "libc", + "pkg-config", +] [[package]] name = "camino" -version = "1.1.2" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6031a462f977dd38968b6f23378356512feeace69cef817e1a4475108093cec3" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo-platform" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbdb825da8a5df079a43676dbe042702f1707b1109f713a01420fbb4cc71fa27" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.15.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c77df041dc383319cc661b428b6961a005db4d6808d5e12536931b1ca9556055" +checksum = "08a1ec454bc3eead8719cb56e15dbbfecdbc14e4b3a3ae4936cc6e31f5fc0d07" +dependencies = [ + "camino", + "cargo-platform", + "semver 1.0.16", + "serde", + "serde_json", + "thiserror", +] [[package]] name = "cast" @@ -141,6 +446,9 @@ name = "cc" version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" +dependencies = [ + "jobserver", +] [[package]] name = "cfg-if" @@ -154,6 +462,35 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "chrono" +version = "0.4.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "cipher" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" +dependencies = [ + "generic-array 0.14.6", +] + +[[package]] +name = "cipher" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1873270f8f7942c191139cb8a40fd228da6c3fd2fc376d7e92d47aa14aeb59e" +dependencies = [ + "crypto-common", + "inout", +] + [[package]] name = "clap" version = "2.34.0" @@ -173,8 +510,8 @@ checksum = "71655c45cb9845d3270c9d6df84ebe72b4dad3c2ba3f7023ad47c144e4e473a5" dependencies = [ "atty", "bitflags", - "clap_derive", - "clap_lex", + "clap_derive 3.2.18", + "clap_lex 0.2.4", "indexmap", "once_cell", "strsim", @@ -182,6 +519,24 @@ dependencies = [ "textwrap 0.16.0", ] +[[package]] +name = "clap" +version = "4.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0b0588d44d4d63a87dbd75c136c166bbfd9a86a31cb89e09906521c7d3f5e3" +dependencies = [ + "bitflags", + "clap_derive 4.1.0", + "clap_lex 0.3.2", + "is-terminal", + "once_cell", + "strsim", + "termcolor", + "terminal_size 0.2.5", + "unicase", + "unicode-width", +] + [[package]] name = "clap_derive" version = "3.2.18" @@ -195,6 +550,19 @@ dependencies = [ "syn", ] +[[package]] +name = "clap_derive" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "684a277d672e91966334af371f1a7b5833f9aa00b07c84e92fbce95e00208ce8" +dependencies = [ + "heck 0.4.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "clap_lex" version = "0.2.4" @@ -205,8 +573,17 @@ dependencies = [ ] [[package]] -name = "cloudabi" -version = "0.1.0" +name = "clap_lex" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "350b9cf31731f9957399229e9b2adc51eeabdfbe9d71d9a0552275fd12710d09" +dependencies = [ + "os_str_bytes", +] + +[[package]] +name = "cloudabi" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4344512281c643ae7638bbabc3af17a11307803ec8f0fcad9fae512a8bf36467" dependencies = [ @@ -232,6 +609,123 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "coins-bip32" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "634c509653de24b439672164bbf56f5f582a2ab0e313d3b0f6af0b7345cf2560" +dependencies = [ + "bincode", + "bs58", + "coins-core", + "digest 0.10.6", + "getrandom 0.2.8", + "hmac", + "k256", + "lazy_static", + "serde", + "sha2 0.10.6", + "thiserror", +] + +[[package]] +name = "coins-bip39" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a11892bcac83b4c6e95ab84b5b06c76d9d70ad73548dd07418269c5c7977171" +dependencies = [ + "bitvec 0.17.4", + "coins-bip32", + "getrandom 0.2.8", + "hex", + "hmac", + "pbkdf2", + "rand 0.8.5", + "sha2 0.10.6", + "thiserror", +] + +[[package]] +name = "coins-core" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c94090a6663f224feae66ab01e41a2555a8296ee07b5f20dab8888bdefc9f617" +dependencies = [ + "base58check", + "base64 0.12.3", + "bech32", + "blake2", + "digest 0.10.6", + "generic-array 0.14.6", + "hex", + "ripemd", + "serde", + "serde_derive", + "sha2 0.10.6", + "sha3", + "thiserror", +] + +[[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 = "combine" +version = "4.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35ed6e9d84f0b51a7f52daf1c7d71dd136fd7a3f41a8462b8cdb8c78d920fad4" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "comfy-table" +version = "6.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e7b787b0dc42e8111badfdbe4c3059158ccb2db8780352fa1b01e8ccf45cc4d" +dependencies = [ + "crossterm", + "strum 0.24.1", + "strum_macros 0.24.3", + "unicode-width", +] + +[[package]] +name = "console" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3993e6445baa160675931ec041a5e03ca84b9c6e32a056150d3aa2bdda0a1f45" +dependencies = [ + "encode_unicode", + "lazy_static", + "libc", + "regex", + "terminal_size 0.1.17", + "unicode-width", + "winapi", +] + +[[package]] +name = "console" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d79fbe8970a77e3e34151cc13d3b3e248aa0faaecb9f6091fa07ebefe5ad60" +dependencies = [ + "encode_unicode", + "lazy_static", + "libc", + "windows-sys 0.42.0", +] + [[package]] name = "console_error_panic_hook" version = "0.1.7" @@ -242,6 +736,27 @@ 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 = "constant_time_eq" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" + +[[package]] +name = "convert_case" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +dependencies = [ + "unicode-segmentation", +] + [[package]] name = "cpufeatures" version = "0.2.5" @@ -251,6 +766,15 @@ dependencies = [ "libc", ] +[[package]] +name = "crc32fast" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" +dependencies = [ + "cfg-if 1.0.0", +] + [[package]] name = "criterion" version = "0.3.6" @@ -330,31 +854,67 @@ dependencies = [ "cfg-if 1.0.0", ] +[[package]] +name = "crossterm" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e64e6c0fbe2c17357405f7c758c1ef960fce08bdfb2c03d88d2a18d7e09c4b67" +dependencies = [ + "bitflags", + "crossterm_winapi", + "libc", + "mio", + "parking_lot 0.12.1", + "signal-hook", + "signal-hook-mio", + "winapi", +] + +[[package]] +name = "crossterm_winapi" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ae1b35a484aa10e07fe0638d02301c5ad24de82d310ccbd2f3693da5f09bf1c" +dependencies = [ + "winapi", +] + [[package]] name = "crunchy" 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 0.14.6", + "rand_core 0.6.4", + "subtle", + "zeroize", +] + [[package]] name = "crypto-common" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ - "generic-array", + "generic-array 0.14.6", "typenum", ] [[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,6 +938,25 @@ dependencies = [ "syn", ] +[[package]] +name = "ctr" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" +dependencies = [ + "cipher 0.4.3", +] + +[[package]] +name = "der" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1a467a65c5e759bce6e65eaf91cc29f466cdc57cb65777bd646872a8a1fd4de" +dependencies = [ + "const-oid", + "zeroize", +] + [[package]] name = "derive_more" version = "0.99.17" @@ -389,6 +968,18 @@ dependencies = [ "syn", ] +[[package]] +name = "dialoguer" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9dd058f8b65922819fabb4a41e7d1964e56344042c26efbccd465202c23fa0c" +dependencies = [ + "console 0.14.1", + "lazy_static", + "tempfile", + "zeroize", +] + [[package]] name = "diff" version = "0.1.13" @@ -401,14 +992,75 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198" +[[package]] +name = "digest" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" +dependencies = [ + "generic-array 0.12.4", +] + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array 0.14.6", +] + [[package]] name = "digest" version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" dependencies = [ - "block-buffer", + "block-buffer 0.10.3", "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]] +name = "dirs-next" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" +dependencies = [ + "cfg-if 1.0.0", + "dirs-sys-next", +] + +[[package]] +name = "dirs-sys-next" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" +dependencies = [ + "libc", + "redox_users", + "winapi", ] [[package]] @@ -417,12 +1069,136 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4f046ad836ddb46a42ae6219f11208b61ef9f1b96f105a88da4ae0dd5f1b89e6" +[[package]] +name = "dunce" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bd4b30a6560bbd9b4620f4de34c3f14f60848e58a9b7216801afcb4c7b31c3c" + +[[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 0.10.6", + "ff", + "generic-array 0.14.6", + "group", + "pkcs8", + "rand_core 0.6.4", + "sec1", + "subtle", + "zeroize", +] + +[[package]] +name = "ena" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e5d13ca2353ab7d0230988629def93914a8c4015f621f9b13ed2955614731d" +dependencies = [ + "log", +] + +[[package]] +name = "encode_unicode" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" + +[[package]] +name = "encoding_rs" +version = "0.8.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071a31f4ee85403370b58aca746f01041ede6f0da2730960ad001edc2b71b394" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] +name = "enr" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "492a7e5fc2504d5fdce8e124d3e263b244a68b283cac67a69eda0cd43e0aebad" +dependencies = [ + "base64 0.13.1", + "bs58", + "bytes", + "hex", + "k256", + "log", + "rand 0.8.5", + "rlp", + "serde", + "sha3", + "zeroize", +] + +[[package]] +name = "errno" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" +dependencies = [ + "errno-dragonfly", + "libc", + "winapi", +] + +[[package]] +name = "errno-dragonfly" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "eth-keystore" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fda3bf123be441da5260717e0661c25a2fd9cb2b2c1d20bf2e05580047158ab" +dependencies = [ + "aes 0.8.2", + "ctr", + "digest 0.10.6", + "hex", + "hmac", + "pbkdf2", + "rand 0.8.5", + "scrypt", + "serde", + "serde_json", + "sha2 0.10.6", + "sha3", + "thiserror", + "uuid", +] + [[package]] name = "ethabi" version = "18.0.0" @@ -487,12 +1263,255 @@ dependencies = [ ] [[package]] -name = "evm" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4448c65b71e8e2b9718232d84d09045eeaaccb2320494e6bd6dbf7e58fec8ff" +name = "ethers" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "ethers-addressbook", + "ethers-contract", + "ethers-core", + "ethers-etherscan", + "ethers-middleware", + "ethers-providers", + "ethers-signers", + "ethers-solc", +] + +[[package]] +name = "ethers-addressbook" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "ethers-core", + "once_cell", + "serde", + "serde_json", +] + +[[package]] +name = "ethers-contract" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "ethers-contract-abigen", + "ethers-contract-derive", + "ethers-core", + "ethers-providers", + "futures-util", + "hex", + "once_cell", + "pin-project", + "serde", + "serde_json", + "thiserror", +] + +[[package]] +name = "ethers-contract-abigen" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "Inflector", + "cfg-if 1.0.0", + "dunce", + "ethers-core", + "eyre", + "getrandom 0.2.8", + "hex", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "reqwest", + "serde", + "serde_json", + "syn", + "toml", + "walkdir", +] + +[[package]] +name = "ethers-contract-derive" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "ethers-contract-abigen", + "ethers-core", + "hex", + "proc-macro2", + "quote", + "serde_json", + "syn", +] + +[[package]] +name = "ethers-core" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "arrayvec", + "bytes", + "cargo_metadata", + "chrono", + "convert_case", + "elliptic-curve", + "ethabi", + "generic-array 0.14.6", + "getrandom 0.2.8", + "hex", + "k256", + "num_enum", + "once_cell", + "open-fastrlp", + "proc-macro2", + "rand 0.8.5", + "rlp", + "rlp-derive", + "serde", + "serde_json", + "strum 0.24.1", + "syn", + "tempfile", + "thiserror", + "tiny-keccak", + "unicode-xid", +] + +[[package]] +name = "ethers-etherscan" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "ethers-core", + "ethers-solc", + "getrandom 0.2.8", + "reqwest", + "semver 1.0.16", + "serde", + "serde-aux", + "serde_json", + "thiserror", + "tracing", +] + +[[package]] +name = "ethers-middleware" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "async-trait", + "auto_impl 0.5.0", + "ethers-contract", + "ethers-core", + "ethers-etherscan", + "ethers-providers", + "ethers-signers", + "futures-locks", + "futures-util", + "instant", + "reqwest", + "serde", + "serde_json", + "thiserror", + "tokio", + "tracing", + "tracing-futures", + "url", +] + +[[package]] +name = "ethers-providers" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "async-trait", + "auto_impl 1.0.1", + "base64 0.21.0", + "enr", + "ethers-core", + "futures-core", + "futures-timer", + "futures-util", + "getrandom 0.2.8", + "hashers", + "hex", + "http", + "once_cell", + "parking_lot 0.11.1", + "pin-project", + "reqwest", + "serde", + "serde_json", + "thiserror", + "tokio", + "tracing", + "tracing-futures", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-timer", + "web-sys", + "ws_stream_wasm", +] + +[[package]] +name = "ethers-signers" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "async-trait", + "coins-bip32", + "coins-bip39", + "elliptic-curve", + "eth-keystore", + "ethers-core", + "hex", + "rand 0.8.5", + "sha2 0.10.6", + "thiserror", +] + +[[package]] +name = "ethers-solc" +version = "1.0.2" +source = "git+https://github.com/gakonst/ethers-rs?rev=7da559bb#7da559bbedec67c034391f693a01b6a1b94d6a77" +dependencies = [ + "cfg-if 1.0.0", + "dunce", + "ethers-core", + "futures-util", + "getrandom 0.2.8", + "glob", + "hex", + "home", + "md-5", + "num_cpus", + "once_cell", + "path-slash", + "rayon", + "regex", + "semver 1.0.16", + "serde", + "serde_json", + "sha2 0.10.6", + "solang-parser", + "svm-rs", + "svm-rs-builds", + "thiserror", + "tiny-keccak", + "tokio", + "tracing", + "walkdir", + "yansi", +] + +[[package]] +name = "evm" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4448c65b71e8e2b9718232d84d09045eeaaccb2320494e6bd6dbf7e58fec8ff" dependencies = [ - "auto_impl", + "auto_impl 1.0.1", "ethereum", "evm-core", "evm-gasometer", @@ -529,17 +1548,43 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c79b9459ce64f1a28688397c4013764ce53cd57bb84efc16b5187fa9b05b13ad" dependencies = [ - "auto_impl", + "auto_impl 1.0.1", "evm-core", "primitive-types", "sha3", ] +[[package]] +name = "eyre" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c2b6b5a29c02cdc822728b7d7b8ae1bab3e3b05d44522770ddd49722eeac7eb" +dependencies = [ + "indenter", + "once_cell", +] + +[[package]] +name = "fake-simd" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" + +[[package]] +name = "fastrand" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" +dependencies = [ + "instant", +] + [[package]] name = "fe" version = "0.20.0-alpha" dependencies = [ "clap 3.2.23", + "colored", "fe-common", "fe-driver", "fe-parser", @@ -573,7 +1618,7 @@ dependencies = [ "insta", "num-bigint", "num-traits", - "parking_lot_core", + "parking_lot_core 0.8.0", "petgraph", "pretty_assertions", "rstest", @@ -581,7 +1626,7 @@ dependencies = [ "semver 1.0.16", "smallvec", "smol_str", - "strum", + "strum 0.23.0", "wasm-bindgen-test", ] @@ -644,9 +1689,10 @@ dependencies = [ ] [[package]] -name = "fe-compiler-tests" +name = "fe-compiler-tests-legacy" version = "0.20.0-alpha" dependencies = [ + "dir-test", "ethabi", "evm", "evm-runtime", @@ -668,10 +1714,20 @@ dependencies = [ "yultsur", ] +[[package]] +name = "fe-compiler-tests2" +version = "0.20.0-alpha" +dependencies = [ + "dir-test", + "fe-driver", +] + [[package]] name = "fe-driver" version = "0.20.0-alpha" dependencies = [ + "bytes", + "colored", "fe-abi", "fe-analyzer", "fe-codegen", @@ -679,7 +1735,10 @@ dependencies = [ "fe-mir", "fe-parser", "fe-yulc", + "foundry-evm", + "hex", "indexmap", + "primitive-types", "serde_json", "smol_str", "toml", @@ -751,6 +1810,30 @@ dependencies = [ "solc", ] +[[package]] +name = "ff" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d013fc25338cc558c5c2cfbad646908fb23591e2404481826742b651c9af7160" +dependencies = [ + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "figment" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e56602b469b2201400dec66a66aec5a9b8761ee97cd1b8c96ab2483fcc16cc9" +dependencies = [ + "atomic", + "pear", + "serde", + "toml", + "uncased", + "version_check", +] + [[package]] name = "fixed-hash" version = "0.8.0" @@ -769,6 +1852,16 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" +[[package]] +name = "flate2" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + [[package]] name = "fnv" version = "1.0.7" @@ -776,65 +1869,357 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] -name = "fs_extra" -version = "1.3.0" +name = "form_urlencoded" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" +checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" +dependencies = [ + "percent-encoding", +] [[package]] -name = "funty" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" +name = "foundry-common" +version = "0.1.0" +source = "git+https://github.com/g-r-a-n-t/dapptools-rs#fe323bfc071813a464904ba42ed82e27142958dc" +dependencies = [ + "atty", + "clap 4.1.6", + "comfy-table", + "dunce", + "ethers-core", + "ethers-etherscan", + "ethers-middleware", + "ethers-providers", + "ethers-solc", + "eyre", + "foundry-config", + "once_cell", + "regex", + "reqwest", + "semver 1.0.16", + "serde", + "serde_json", + "tempfile", + "thiserror", + "tracing", + "walkdir", + "yansi", +] [[package]] -name = "fxhash" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +name = "foundry-config" +version = "0.2.0" +source = "git+https://github.com/g-r-a-n-t/dapptools-rs#fe323bfc071813a464904ba42ed82e27142958dc" +dependencies = [ + "Inflector", + "dirs-next", + "ethers-core", + "ethers-etherscan", + "ethers-solc", + "eyre", + "figment", + "globset", + "number_prefix", + "once_cell", + "open-fastrlp", + "path-slash", + "regex", + "reqwest", + "semver 1.0.16", + "serde", + "serde_regex", + "thiserror", + "toml", + "toml_edit 0.14.4", + "tracing", + "walkdir", +] + +[[package]] +name = "foundry-evm" +version = "0.2.0" +source = "git+https://github.com/g-r-a-n-t/dapptools-rs#fe323bfc071813a464904ba42ed82e27142958dc" dependencies = [ - "byteorder", + "auto_impl 1.0.1", + "bytes", + "ethers", + "eyre", + "foundry-common", + "foundry-config", + "foundry-macros", + "futures", + "hashbrown 0.13.2", + "hex", + "itertools", + "jsonpath_lib", + "once_cell", + "ordered-float", + "parking_lot 0.12.1", + "proptest", + "revm", + "semver 1.0.16", + "serde", + "serde_json", + "thiserror", + "tokio", + "tracing", + "url", + "yansi", ] [[package]] -name = "generic-array" -version = "0.14.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" +name = "foundry-macros" +version = "0.1.0" +source = "git+https://github.com/g-r-a-n-t/dapptools-rs#fe323bfc071813a464904ba42ed82e27142958dc" dependencies = [ - "typenum", - "version_check", + "ethers-core", + "foundry-common", + "foundry-macros-impl", ] [[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +name = "foundry-macros-impl" +version = "0.0.0" +source = "git+https://github.com/g-r-a-n-t/dapptools-rs#fe323bfc071813a464904ba42ed82e27142958dc" dependencies = [ - "cfg-if 1.0.0", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", + "proc-macro2", + "quote", + "syn", ] [[package]] -name = "getrandom" -version = "0.2.8" +name = "fs2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213" dependencies = [ - "cfg-if 1.0.0", - "js-sys", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", - "wasm-bindgen", + "winapi", ] [[package]] -name = "half" -version = "1.8.2" +name = "fs_extra" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + +[[package]] +name = "futures" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13e2792b0ff0340399d58445b88fd9770e3489eff258a4cbc1523418f12abf84" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e5317663a9089767a1ec00a487df42e0ca174b61b4483213ac24448e4664df5" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec90ff4d0fe1f57d600049061dc6bb68ed03c7d2fbd697274c41805dcb3f8608" + +[[package]] +name = "futures-executor" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8de0a35a6ab97ec8869e32a2473f4b1324459e14c29275d14b10cb1fd19b50e" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531" + +[[package]] +name = "futures-locks" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45ec6fe3675af967e67c5536c0b9d44e34e6c52f86bedc4ea49c5317b8e94d06" +dependencies = [ + "futures-channel", + "futures-task", +] + +[[package]] +name = "futures-macro" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95a73af87da33b5acf53acfebdc339fe592ecf5357ac7c0a7734ab9d8c876a70" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "futures-sink" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f310820bb3e8cfd46c80db4d7fb8353e15dfff853a127158425f31e0be6c8364" + +[[package]] +name = "futures-task" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcf79a1bf610b10f42aea489289c5a2c478a786509693b80cd39c44ccd936366" + +[[package]] +name = "futures-timer" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" + +[[package]] +name = "futures-util" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c1d6de3acfef38d2be4b1f543f553131788603495be83da675e180c8d6b7bd1" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + +[[package]] +name = "generic-array" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd" +dependencies = [ + "typenum", +] + +[[package]] +name = "generic-array" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +dependencies = [ + "cfg-if 1.0.0", + "js-sys", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "glob" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" + +[[package]] +name = "globset" +version = "0.4.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" +dependencies = [ + "aho-corasick", + "bstr", + "fnv", + "log", + "regex", +] + +[[package]] +name = "group" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dfbfb3a6cfbd390d5c9564ab283a0349b9b9fcd46a706c1eb10e0db70bfbac7" +dependencies = [ + "ff", + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "h2" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be7b54589b581f624f566bf5d8eb2bab1db736c51528720b6bd36b96b55924d" +dependencies = [ + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "half" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" [[package]] name = "hash-db" @@ -857,6 +2242,25 @@ 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", + "serde", +] + +[[package]] +name = "hashers" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2bca93b15ea5a746f220e56587f71e73c6165eab783df9e26590069953e3c30" +dependencies = [ + "fxhash", +] + [[package]] name = "heck" version = "0.3.3" @@ -890,11 +2294,109 @@ dependencies = [ "libc", ] +[[package]] +name = "hermit-abi" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" + [[package]] name = "hex" version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +dependencies = [ + "serde", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.6", +] + +[[package]] +name = "home" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "747309b4b440c06d57b0b25f2aee03ee9b5e5397d288c60e21fc709bb98a7408" +dependencies = [ + "winapi", +] + +[[package]] +name = "http" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-body" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" +dependencies = [ + "bytes", + "http", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" + +[[package]] +name = "httpdate" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" + +[[package]] +name = "hyper" +version = "0.14.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e011372fa0b68db8350aa7a248930ecc7839bf46d8485577d69f117a75f164c" +dependencies = [ + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1788965e61b367cd03a62950836d5cd41560c3577d90e40e0819373194d1661c" +dependencies = [ + "http", + "hyper", + "rustls", + "tokio", + "tokio-rustls", +] [[package]] name = "id-arena" @@ -902,6 +2404,16 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005" +[[package]] +name = "idna" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" +dependencies = [ + "unicode-bidi", + "unicode-normalization", +] + [[package]] name = "if_chain" version = "1.0.2" @@ -978,14 +2490,41 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" dependencies = [ "autocfg", - "hashbrown", + "hashbrown 0.12.3", +] + +[[package]] +name = "indicatif" +version = "0.16.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d207dc617c7a380ab07ff572a6e52fa202a2a8f355860ac9c38e23f8196be1b" +dependencies = [ + "console 0.15.5", + "lazy_static", + "number_prefix", + "regex", +] + +[[package]] +name = "inlinable_string" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8fae54786f62fb2918dcfae3d568594e50eb9b5c25bf04371af6fe7516452fb" + +[[package]] +name = "inout" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" +dependencies = [ + "generic-array 0.14.6", ] [[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", @@ -1000,6 +2539,37 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" dependencies = [ "cfg-if 1.0.0", + "js-sys", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "io-lifetimes" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1abeb7a0dd0f8181267ff8adc397075586500b81b28a73e8a0208b00fc170fb3" +dependencies = [ + "libc", + "windows-sys 0.45.0", +] + +[[package]] +name = "ipnet" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30e22bd8629359895450b59ea7a776c850561b96a3b1d31321c1949d9e6c9146" + +[[package]] +name = "is-terminal" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21b6b32576413a8e69b90e952e4a026476040d81017b80445deda5f2d3921857" +dependencies = [ + "hermit-abi 0.3.1", + "io-lifetimes", + "rustix", + "windows-sys 0.45.0", ] [[package]] @@ -1013,15 +2583,18 @@ dependencies = [ [[package]] name = "itoa" -version = "0.4.8" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" +checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" [[package]] -name = "itoa" -version = "1.0.5" +name = "jobserver" +version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" +checksum = "068b1ee6743e4d11fb9c6a1e6064b3693a1b600e7f5f5988047d98b3dc9fb90b" +dependencies = [ + "libc", +] [[package]] name = "js-sys" @@ -1032,6 +2605,30 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "jsonpath_lib" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaa63191d68230cccb81c5aa23abd53ed64d83337cacbb25a7b8c7979523774f" +dependencies = [ + "log", + "serde", + "serde_json", +] + +[[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 0.10.6", + "sha3", +] + [[package]] name = "keccak" version = "0.1.3" @@ -1041,11 +2638,46 @@ dependencies = [ "cpufeatures", ] +[[package]] +name = "lalrpop" +version = "0.19.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b30455341b0e18f276fa64540aff54deafb54c589de6aca68659c63dd2d5d823" +dependencies = [ + "ascii-canvas", + "atty", + "bit-set", + "diff", + "ena", + "itertools", + "lalrpop-util", + "petgraph", + "pico-args", + "regex", + "regex-syntax", + "string_cache", + "term", + "tiny-keccak", + "unicode-xid", +] + +[[package]] +name = "lalrpop-util" +version = "0.19.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcf796c978e9b4d983414f4caedc9273aa33ee214c5b887bd55fde84c85d2dc4" +dependencies = [ + "regex", +] + [[package]] 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,12 +2685,24 @@ 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" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" +[[package]] +name = "linux-raw-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" + [[package]] name = "lock_api" version = "0.4.9" @@ -1101,6 +2745,15 @@ dependencies = [ "syn", ] +[[package]] +name = "md-5" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca" +dependencies = [ + "digest 0.10.6", +] + [[package]] name = "memchr" version = "2.5.0" @@ -1117,12 +2770,50 @@ dependencies = [ ] [[package]] -name = "nom8" -version = "0.2.0" +name = "mime" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" + +[[package]] +name = "miniz_oxide" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae01545c9c7fc4486ab7debaf2aad7003ac19431791868fb2e8066df97fad2f8" +checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" dependencies = [ - "memchr", + "adler", +] + +[[package]] +name = "mio" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" +dependencies = [ + "libc", + "log", + "wasi 0.11.0+wasi-snapshot-preview1", + "windows-sys 0.45.0", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" + +[[package]] +name = "num" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43db66d1170d347f9a065114077f7dccb00c1b9478c89384490a3425279a4606" +dependencies = [ + "num-bigint", + "num-complex", + "num-integer", + "num-iter", + "num-rational", + "num-traits", ] [[package]] @@ -1136,6 +2827,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 +2846,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 +2876,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" dependencies = [ "autocfg", + "libm", ] [[package]] @@ -1165,11 +2889,38 @@ dependencies = [ "libc", ] +[[package]] +name = "num_enum" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9" +dependencies = [ + "num_enum_derive", +] + +[[package]] +name = "num_enum_derive" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "number_prefix" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" + [[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" @@ -1177,6 +2928,52 @@ version = "11.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" +[[package]] +name = "opaque-debug" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" + +[[package]] +name = "opaque-debug" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" + +[[package]] +name = "open-fastrlp" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "786393f80485445794f6043fd3138854dd109cc6c4bd1a6383db304c9ce9b9ce" +dependencies = [ + "arrayvec", + "auto_impl 1.0.1", + "bytes", + "ethereum-types", + "open-fastrlp-derive", +] + +[[package]] +name = "open-fastrlp-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "003b2be5c6c53c1cfeb0a238b8a1c3915cd410feb684457a36c10038f764bb1c" +dependencies = [ + "bytes", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "ordered-float" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d84eb1409416d254e4a9c8fa56cc24701755025b458f0fcd8e59e1f5f40c23bf" +dependencies = [ + "num-traits", +] + [[package]] name = "os_str_bytes" version = "6.4.1" @@ -1194,12 +2991,12 @@ 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", + "bitvec 1.0.1", "byte-slice-cast", "impl-trait-for-tuples", "parity-scale-codec-derive", @@ -1226,7 +3023,17 @@ checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb" dependencies = [ "instant", "lock_api", - "parking_lot_core", + "parking_lot_core 0.8.0", +] + +[[package]] +name = "parking_lot" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +dependencies = [ + "lock_api", + "parking_lot_core 0.9.7", ] [[package]] @@ -1239,141 +3046,366 @@ dependencies = [ "cloudabi", "instant", "libc", - "redox_syscall", + "redox_syscall 0.1.57", "smallvec", "winapi", ] [[package]] -name = "petgraph" -version = "0.6.2" +name = "parking_lot_core" +version = "0.9.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5014253a1331579ce62aa67443b4a658c5e7dd03d4bc6d302b94474888143" +checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" dependencies = [ - "fixedbitset", - "indexmap", + "cfg-if 1.0.0", + "libc", + "redox_syscall 0.2.16", + "smallvec", + "windows-sys 0.45.0", ] [[package]] -name = "plotters" -version = "0.3.4" +name = "password-hash" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2538b639e642295546c50fcd545198c9d64ee2a38620a628724a3b266d5fbf97" +checksum = "7676374caaee8a325c9e7a2ae557f216c5563a171d6997b0ef8a65af35147700" dependencies = [ - "num-traits", - "plotters-backend", - "plotters-svg", - "wasm-bindgen", - "web-sys", + "base64ct", + "rand_core 0.6.4", + "subtle", ] [[package]] -name = "plotters-backend" -version = "0.3.4" +name = "path-slash" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "193228616381fecdc1224c62e96946dfbc73ff4384fba576e052ff8c1bea8142" +checksum = "1e91099d4268b0e11973f036e885d652fb0b21fedcf69738c627f94db6a44f42" [[package]] -name = "plotters-svg" -version = "0.3.3" +name = "pbkdf2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a81d2759aae1dae668f783c308bc5c8ebd191ff4184aaa1b37f65a6ae5a56f" +checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" dependencies = [ - "plotters-backend", + "digest 0.10.6", + "hmac", + "password-hash", + "sha2 0.10.6", ] [[package]] -name = "ppv-lite86" -version = "0.2.17" +name = "pear" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "15e44241c5e4c868e3eaa78b7c1848cadd6344ed4f54d029832d32b415a58702" +dependencies = [ + "inlinable_string", + "pear_codegen", + "yansi", +] [[package]] -name = "pretty_assertions" -version = "1.3.0" +name = "pear_codegen" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a25e9bcb20aa780fd0bb16b72403a9064d6b3f22f026946029acb941a50af755" +checksum = "82a5ca643c2303ecb740d506539deba189e16f2754040a42901cd8105d0282d0" dependencies = [ - "ctor", - "diff", - "output_vt100", - "yansi", + "proc-macro2", + "proc-macro2-diagnostics", + "quote", + "syn", ] [[package]] -name = "primitive-types" -version = "0.12.1" +name = "percent-encoding" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f3486ccba82358b11a77516035647c34ba167dfa53312630de83b12bd4f3d66" +checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" + +[[package]] +name = "petgraph" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4" dependencies = [ - "fixed-hash", - "impl-codec", - "impl-rlp", - "impl-serde", - "scale-info", - "uint", + "fixedbitset", + "indexmap", ] [[package]] -name = "proc-macro-crate" -version = "1.3.0" +name = "pharos" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66618389e4ec1c7afe67d51a9bf34ff9236480f8d51e7489b7d5ab0303c13f34" +checksum = "e9567389417feee6ce15dd6527a8a1ecac205ef62c2932bcf3d9f6fc5b78b414" dependencies = [ - "once_cell", - "toml_edit", + "futures", + "rustc_version 0.4.0", ] [[package]] -name = "proc-macro-error" -version = "1.0.4" +name = "phf" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +checksum = "928c6535de93548188ef63bb7c4036bd415cd8f36ad25af44b9789b2ee72a48c" dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "syn", - "version_check", + "phf_macros", + "phf_shared 0.11.1", ] [[package]] -name = "proc-macro-error-attr" -version = "1.0.4" +name = "phf_generator" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +checksum = "b1181c94580fa345f50f19d738aaa39c0ed30a600d95cb2d3e23f94266f14fbf" +dependencies = [ + "phf_shared 0.11.1", + "rand 0.8.5", +] + +[[package]] +name = "phf_macros" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92aacdc5f16768709a569e913f7451034034178b05bdc8acda226659a3dccc66" dependencies = [ + "phf_generator", + "phf_shared 0.11.1", "proc-macro2", "quote", - "version_check", + "syn", ] [[package]] -name = "proc-macro2" -version = "1.0.51" +name = "phf_shared" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d727cae5b39d21da60fa540906919ad737832fe0b1c165da3a34d6548c849d6" +checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" dependencies = [ - "unicode-ident", + "siphasher", ] [[package]] -name = "proptest" -version = "1.0.0" +name = "phf_shared" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0d9cc07f18492d879586c92b485def06bc850da3118075cd45d50e9c95b0e5" +checksum = "e1fb5f6f826b772a8d4c0394209441e7d37cbbb967ae9c7e0e8134365c9ee676" dependencies = [ - "bitflags", - "byteorder", - "lazy_static", + "siphasher", +] + +[[package]] +name = "pico-args" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db8bcd96cb740d03149cbad5518db9fd87126a10ab519c011893b1754134c468" + +[[package]] +name = "pin-project" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad29a609b6bcd67fee905812e544992d216af9d755757c05ed2d0e15a74c6ecc" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkcs8" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eca2c590a5f85da82668fa685c09ce2888b9430e83299debf1f34b65fd4a4ba" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "pkg-config" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" + +[[package]] +name = "plotters" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2538b639e642295546c50fcd545198c9d64ee2a38620a628724a3b266d5fbf97" +dependencies = [ + "num-traits", + "plotters-backend", + "plotters-svg", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "plotters-backend" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "193228616381fecdc1224c62e96946dfbc73ff4384fba576e052ff8c1bea8142" + +[[package]] +name = "plotters-svg" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9a81d2759aae1dae668f783c308bc5c8ebd191ff4184aaa1b37f65a6ae5a56f" +dependencies = [ + "plotters-backend", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "pretty_assertions" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a25e9bcb20aa780fd0bb16b72403a9064d6b3f22f026946029acb941a50af755" +dependencies = [ + "ctor", + "diff", + "output_vt100", + "yansi", +] + +[[package]] +name = "prettyplease" +version = "0.1.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e97e3215779627f01ee256d2fad52f3d95e8e1c11e9fc6fd08f7cd455d5d5c78" +dependencies = [ + "proc-macro2", + "syn", +] + +[[package]] +name = "primitive-types" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f3486ccba82358b11a77516035647c34ba167dfa53312630de83b12bd4f3d66" +dependencies = [ + "fixed-hash", + "impl-codec", + "impl-rlp", + "impl-serde", + "scale-info", + "uint", +] + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.4", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.51" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d727cae5b39d21da60fa540906919ad737832fe0b1c165da3a34d6548c849d6" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "proc-macro2-diagnostics" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bf29726d67464d49fa6224a1d07936a8c08bb3fba727c7493f6cf1616fdaada" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "version_check", + "yansi", +] + +[[package]] +name = "proptest" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29f1b898011ce9595050a68e60f90bad083ff2987a695a42357134c8381fba70" +dependencies = [ + "bit-set", + "bitflags", + "byteorder", + "lazy_static", "num-traits", - "quick-error", + "quick-error 2.0.1", "rand 0.8.5", "rand_chacha 0.3.1", "rand_xorshift", "regex-syntax", + "rusty-fork", + "tempfile", + "unarray", ] +[[package]] +name = "quick-error" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" + [[package]] name = "quick-error" version = "2.0.1" @@ -1389,6 +3421,12 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "radium" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "def50a86306165861203e7f84ecffbbdfdea79f0e51039b33de1e952358c47ac" + [[package]] name = "radium" version = "0.7.0" @@ -1503,6 +3541,26 @@ version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" +[[package]] +name = "redox_syscall" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" +dependencies = [ + "bitflags", +] + +[[package]] +name = "redox_users" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" +dependencies = [ + "getrandom 0.2.8", + "redox_syscall 0.2.16", + "thiserror", +] + [[package]] name = "regex" version = "1.7.1" @@ -1514,18 +3572,123 @@ 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 = "reqwest" +version = "0.11.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21eed90ec8570952d53b772ecf8f206aa1ec9a3d76b2521c56c42973f2d91ee9" +dependencies = [ + "base64 0.21.0", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "hyper", + "hyper-rustls", + "ipnet", + "js-sys", + "log", + "mime", + "once_cell", + "percent-encoding", + "pin-project-lite", + "rustls", + "rustls-pemfile", + "serde", + "serde_json", + "serde_urlencoded", + "tokio", + "tokio-rustls", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "webpki-roots", + "winreg", +] + +[[package]] +name = "revm" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73d84c8f9836efb0f5f5f8de4700a953c4e1f3119e5cfcb0aad8e5be73daf991" +dependencies = [ + "arrayref", + "auto_impl 1.0.1", + "bytes", + "hashbrown 0.13.2", + "hex", + "num_enum", + "primitive-types", + "revm_precompiles", + "rlp", + "serde", + "sha3", +] + +[[package]] +name = "revm_precompiles" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0353d456ef3e989dc9190f42c6020f09bc2025930c37895826029304413204b5" +dependencies = [ + "bytes", + "hashbrown 0.13.2", + "k256", + "num", + "once_cell", + "primitive-types", + "ripemd", + "sha2 0.10.6", + "sha3", + "substrate-bn", +] + +[[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 = "ring" +version = "0.16.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +dependencies = [ + "cc", + "libc", + "once_cell", + "spin", + "untrusted", + "web-sys", + "winapi", +] + +[[package]] +name = "ripemd" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd124222d17ad93a644ed9d011a40f4fb64aa54275c08cc216524a9ea82fb09f" +dependencies = [ + "digest 0.10.6", +] + [[package]] name = "rlp" version = "0.5.2" @@ -1554,7 +3717,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ece421e0c4129b90e4a35b6f625e472e96c552136f5093a2f4fa2bbb75a62d5" dependencies = [ - "base64", + "base64 0.10.1", "bitflags", "serde", ] @@ -1568,7 +3731,7 @@ dependencies = [ "cfg-if 0.1.10", "proc-macro2", "quote", - "rustc_version", + "rustc_version 0.2.3", "syn", ] @@ -1594,10 +3757,66 @@ dependencies = [ ] [[package]] -name = "rustversion" -version = "1.0.11" +name = "rustc_version" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +dependencies = [ + "semver 1.0.16", +] + +[[package]] +name = "rustix" +version = "0.36.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f43abb88211988493c1abb44a70efa56ff0ce98f233b7b276146f1f3f7ba9644" +dependencies = [ + "bitflags", + "errno", + "io-lifetimes", + "libc", + "linux-raw-sys", + "windows-sys 0.45.0", +] + +[[package]] +name = "rustls" +version = "0.20.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fff78fc74d175294f4e83b28343315ffcfb114b156f0185e9741cb5570f50e2f" +dependencies = [ + "log", + "ring", + "sct", + "webpki", +] + +[[package]] +name = "rustls-pemfile" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" +dependencies = [ + "base64 0.21.0", +] + +[[package]] +name = "rustversion" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70" + +[[package]] +name = "rusty-fork" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb3dcc6e454c328bb824492db107ab7c0ae8fcffe4ad210136ef014458c1bc4f" +dependencies = [ + "fnv", + "quick-error 1.2.3", + "tempfile", + "wait-timeout", +] [[package]] name = "ryu" @@ -1616,7 +3835,7 @@ dependencies = [ "lock_api", "log", "oorandom", - "parking_lot", + "parking_lot 0.11.1", "rustc-hash", "salsa-macros", "smallvec", @@ -1634,6 +3853,15 @@ dependencies = [ "syn", ] +[[package]] +name = "salsa20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97a22f5af31f73a954c10289c93e8a50cc23d971e80ee446f1f6f7137a088213" +dependencies = [ + "cipher 0.4.3", +] + [[package]] name = "same-file" version = "1.0.6" @@ -1679,6 +3907,42 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +[[package]] +name = "scrypt" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f9e24d2b632954ded8ab2ef9fea0a0c769ea56ea98bddbafbad22caeeadf45d" +dependencies = [ + "hmac", + "pbkdf2", + "salsa20", + "sha2 0.10.6", +] + +[[package]] +name = "sct" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "sec1" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" +dependencies = [ + "base16ct", + "der", + "generic-array 0.14.6", + "pkcs8", + "subtle", + "zeroize", +] + [[package]] name = "semver" version = "0.9.0" @@ -1693,6 +3957,9 @@ name = "semver" version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a" +dependencies = [ + "serde", +] [[package]] name = "semver-parser" @@ -1700,6 +3967,12 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" +[[package]] +name = "send_wrapper" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" + [[package]] name = "serde" version = "1.0.152" @@ -1709,6 +3982,16 @@ dependencies = [ "serde_derive", ] +[[package]] +name = "serde-aux" +version = "4.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c599b3fd89a75e0c18d6d2be693ddb12cccaf771db4ff9e39097104808a014c0" +dependencies = [ + "serde", + "serde_json", +] + [[package]] name = "serde_cbor" version = "0.11.2" @@ -1732,15 +4015,26 @@ 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", + "indexmap", + "itoa", "ryu", "serde", ] +[[package]] +name = "serde_regex" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8136f1a4ea815d7eac4101cfd0b16dc0cb5e1fe1b8609dfd728058656b7badf" +dependencies = [ + "regex", + "serde", +] + [[package]] name = "serde_test" version = "1.0.152" @@ -1750,22 +4044,136 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "sha1" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" +dependencies = [ + "cfg-if 1.0.0", + "cpufeatures", + "digest 0.10.6", +] + +[[package]] +name = "sha2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69" +dependencies = [ + "block-buffer 0.7.3", + "digest 0.8.1", + "fake-simd", + "opaque-debug 0.2.3", +] + +[[package]] +name = "sha2" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +dependencies = [ + "block-buffer 0.9.0", + "cfg-if 1.0.0", + "cpufeatures", + "digest 0.9.0", + "opaque-debug 0.3.0", +] + +[[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 0.10.6", +] + [[package]] name = "sha3" version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bdf0c33fae925bdc080598b84bc15c55e7b9a4a43b3c704da051f977469691c9" dependencies = [ - "digest", + "digest 0.10.6", "keccak", ] +[[package]] +name = "signal-hook" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "732768f1176d21d09e076c23a93123d40bba92d50c4058da34d45c8de8e682b9" +dependencies = [ + "libc", + "signal-hook-registry", +] + +[[package]] +name = "signal-hook-mio" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af" +dependencies = [ + "libc", + "mio", + "signal-hook", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" +dependencies = [ + "libc", +] + +[[package]] +name = "signature" +version = "1.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" +dependencies = [ + "digest 0.10.6", + "rand_core 0.6.4", +] + [[package]] name = "similar" version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "420acb44afdae038210c99e69aae24109f32f15500aa708e81d46c9f29d55fcf" +[[package]] +name = "siphasher" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" + +[[package]] +name = "slab" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" +dependencies = [ + "autocfg", +] + [[package]] name = "smallvec" version = "1.10.0" @@ -1781,6 +4189,29 @@ dependencies = [ "serde", ] +[[package]] +name = "socket2" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" +dependencies = [ + "libc", + "winapi", +] + +[[package]] +name = "solang-parser" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9653f278d9531b60f042c29732bb835d519943f4167b1e5684c7e820dd9fec" +dependencies = [ + "itertools", + "lalrpop", + "lalrpop-util", + "phf", + "unicode-xid", +] + [[package]] name = "solc" version = "0.1.0" @@ -1790,12 +4221,41 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "spin" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" + +[[package]] +name = "spki" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b" +dependencies = [ + "base64ct", + "der", +] + [[package]] name = "static_assertions" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" +[[package]] +name = "string_cache" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "213494b7a2b503146286049378ce02b482200519accc31872ee8be91fa820a08" +dependencies = [ + "new_debug_unreachable", + "once_cell", + "parking_lot 0.12.1", + "phf_shared 0.10.0", + "precomputed-hash", +] + [[package]] name = "strsim" version = "0.10.0" @@ -1808,126 +4268,402 @@ version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cae14b91c7d11c9a851d3fbc80a963198998c2a64eec840477fa92d8ce9b70bb" dependencies = [ - "strum_macros", + "strum_macros 0.23.1", +] + +[[package]] +name = "strum" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" +dependencies = [ + "strum_macros 0.24.3", +] + +[[package]] +name = "strum_macros" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5bb0dc7ee9c15cea6199cde9a127fa16a4c5819af85395457ad72d68edc85a38" +dependencies = [ + "heck 0.3.3", + "proc-macro2", + "quote", + "rustversion", + "syn", +] + +[[package]] +name = "strum_macros" +version = "0.24.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" +dependencies = [ + "heck 0.4.1", + "proc-macro2", + "quote", + "rustversion", + "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 0.8.5", + "rustc-hex", +] + +[[package]] +name = "subtle" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" + +[[package]] +name = "svm-rs" +version = "0.2.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01afefe60c02f4a2271fb15d1965c37856712cebb338330b06649d12afec42df" +dependencies = [ + "anyhow", + "cfg-if 1.0.0", + "clap 3.2.23", + "console 0.14.1", + "dialoguer", + "fs2", + "hex", + "home", + "indicatif", + "itertools", + "once_cell", + "rand 0.8.5", + "reqwest", + "semver 1.0.16", + "serde", + "serde_json", + "sha2 0.9.9", + "tempfile", + "thiserror", + "tokio", + "tracing", + "url", + "zip", +] + +[[package]] +name = "svm-rs-builds" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e69c19996b709c881de264a6ce64609ff305ef0bf59fc45243ac5a67291afd1" +dependencies = [ + "build_const", + "hex", + "semver 1.0.16", + "serde_json", + "svm-rs", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + +[[package]] +name = "tempfile" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af18f7ae1acd354b992402e9ec5864359d693cd8a79dcbef59f76891701c1e95" +dependencies = [ + "cfg-if 1.0.0", + "fastrand", + "redox_syscall 0.2.16", + "rustix", + "windows-sys 0.42.0", +] + +[[package]] +name = "term" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f" +dependencies = [ + "dirs-next", + "rustversion", + "winapi", +] + +[[package]] +name = "termcolor" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "terminal_size" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "633c1a546cee861a1a6d0dc69ebeca693bf4296661ba7852b9d21d159e0506df" +dependencies = [ + "libc", + "winapi", +] + +[[package]] +name = "terminal_size" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c9afddd2cec1c0909f06b00ef33f94ab2cc0578c4a610aa208ddfec8aa2b43a" +dependencies = [ + "rustix", + "windows-sys 0.45.0", +] + +[[package]] +name = "textwrap" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +dependencies = [ + "unicode-width", +] + +[[package]] +name = "textwrap" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" + +[[package]] +name = "thiserror" +version = "1.0.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "time" +version = "0.3.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd0cbfecb4d19b5ea75bb31ad904eb5b9fa13f21079c3b92017ebdf4999a5890" +dependencies = [ + "serde", + "time-core", +] + +[[package]] +name = "time-core" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e153e1f1acaef8acc537e68b44906d2db6436e2b35ac2c6b42640fff91f00fd" + +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +dependencies = [ + "crunchy", +] + +[[package]] +name = "tinytemplate" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "tinyvec" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8e00990ebabbe4c14c08aca901caed183ecd5c09562a12c824bb53d3c3fd3af" +dependencies = [ + "autocfg", + "bytes", + "libc", + "memchr", + "mio", + "num_cpus", + "parking_lot 0.12.1", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.42.0", ] [[package]] -name = "strum_macros" -version = "0.23.1" +name = "tokio-macros" +version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bb0dc7ee9c15cea6199cde9a127fa16a4c5819af85395457ad72d68edc85a38" +checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" dependencies = [ - "heck 0.3.3", "proc-macro2", "quote", - "rustversion", "syn", ] [[package]] -name = "syn" -version = "1.0.107" +name = "tokio-rustls" +version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" +checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", + "rustls", + "tokio", + "webpki", ] [[package]] -name = "tap" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" - -[[package]] -name = "termcolor" -version = "1.2.0" +name = "tokio-util" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" +checksum = "5427d89453009325de0d8f342c9490009f76e999cb7672d77e46267448f7e6b2" dependencies = [ - "winapi-util", + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", + "tracing", ] [[package]] -name = "textwrap" -version = "0.11.0" +name = "toml" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" dependencies = [ - "unicode-width", + "indexmap", + "serde", ] [[package]] -name = "textwrap" -version = "0.16.0" +name = "toml_datetime" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" +checksum = "3ab8ed2edee10b50132aed5f331333428b011c99402b5a534154ed15746f9622" [[package]] -name = "thiserror" -version = "1.0.38" +name = "toml_edit" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0" +checksum = "5376256e44f2443f8896ac012507c19a012df0fe8758b55246ae51a2279db51f" dependencies = [ - "thiserror-impl", + "combine", + "indexmap", + "itertools", ] [[package]] -name = "thiserror-impl" -version = "1.0.38" +name = "toml_edit" +version = "0.19.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f" +checksum = "9a1eb0622d28f4b9c90adc4ea4b2b46b47663fde9ac5fafcb14a1369d5508825" dependencies = [ - "proc-macro2", - "quote", - "syn", + "indexmap", + "toml_datetime", + "winnow", ] [[package]] -name = "tiny-keccak" -version = "2.0.2" +name = "tower-service" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" -dependencies = [ - "crunchy", -] +checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" [[package]] -name = "tinytemplate" -version = "1.2.1" +name = "tracing" +version = "0.1.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc" +checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ - "serde", - "serde_json", + "cfg-if 1.0.0", + "pin-project-lite", + "tracing-attributes", + "tracing-core", ] [[package]] -name = "toml" -version = "0.5.11" +name = "tracing-attributes" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a" dependencies = [ - "serde", + "proc-macro2", + "quote", + "syn", ] [[package]] -name = "toml_datetime" -version = "0.5.1" +name = "tracing-core" +version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4553f467ac8e3d374bc9a177a26801e5d0f9b211aa1673fb137a403afd1c9cf5" +checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" +dependencies = [ + "once_cell", +] [[package]] -name = "toml_edit" -version = "0.18.1" +name = "tracing-futures" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56c59d8dd7d0dcbc6428bf7aa2f0e823e26e43b3c9aca15bbc9475d23e5fa12b" +checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" dependencies = [ - "indexmap", - "nom8", - "toml_datetime", + "pin-project", + "tracing", ] [[package]] @@ -1940,6 +4676,12 @@ dependencies = [ "rlp", ] +[[package]] +name = "try-lock" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" + [[package]] name = "typenum" version = "1.16.0" @@ -1958,18 +4700,57 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "unarray" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" + +[[package]] +name = "uncased" +version = "0.9.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09b01702b0fd0b3fadcf98e098780badda8742d4f4a7676615cad90e8ac73622" +dependencies = [ + "version_check", +] + [[package]] name = "unescape" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccb97dac3243214f8d8507998906ca3e2e0b900bf9bf4870477f125b82e68f6e" +[[package]] +name = "unicase" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" +dependencies = [ + "version_check", +] + +[[package]] +name = "unicode-bidi" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58" + [[package]] name = "unicode-ident" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" +[[package]] +name = "unicode-normalization" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" +dependencies = [ + "tinyvec", +] + [[package]] name = "unicode-segmentation" version = "1.10.1" @@ -1982,6 +4763,39 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" +[[package]] +name = "unicode-xid" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" + +[[package]] +name = "untrusted" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" + +[[package]] +name = "url" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", +] + +[[package]] +name = "uuid" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" +dependencies = [ + "getrandom 0.2.8", + "serde", +] + [[package]] name = "vec1" version = "1.10.1" @@ -2006,6 +4820,15 @@ dependencies = [ "thiserror", ] +[[package]] +name = "wait-timeout" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" +dependencies = [ + "libc", +] + [[package]] name = "walkdir" version = "2.3.2" @@ -2017,6 +4840,16 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "want" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" +dependencies = [ + "log", + "try-lock", +] + [[package]] name = "wasi" version = "0.9.0+wasi-snapshot-preview1" @@ -2119,6 +4952,21 @@ dependencies = [ "quote", ] +[[package]] +name = "wasm-timer" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" +dependencies = [ + "futures", + "js-sys", + "parking_lot 0.11.1", + "pin-utils", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + [[package]] name = "web-sys" version = "0.3.61" @@ -2129,6 +4977,25 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "webpki" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "webpki-roots" +version = "0.22.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" +dependencies = [ + "webpki", +] + [[package]] name = "winapi" version = "0.3.9" @@ -2160,6 +5027,124 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows-sys" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-targets" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" + +[[package]] +name = "winnow" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faf09497b8f8b5ac5d3bb4d05c0a99be20f26fd3d5f2db7b0716e946d5103658" +dependencies = [ + "memchr", +] + +[[package]] +name = "winreg" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d" +dependencies = [ + "winapi", +] + +[[package]] +name = "ws_stream_wasm" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7999f5f4217fe3818726b66257a4475f71e74ffd190776ad053fa159e50737f5" +dependencies = [ + "async_io_stream", + "futures", + "js-sys", + "log", + "pharos", + "rustc_version 0.4.0", + "send_wrapper", + "thiserror", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + [[package]] name = "wyz" version = "0.5.1" @@ -2191,3 +5176,59 @@ 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" + +[[package]] +name = "zip" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0445d0fbc924bb93539b4316c11afb121ea39296f99a3c4c9edad09e3658cdef" +dependencies = [ + "aes 0.7.5", + "byteorder", + "bzip2", + "constant_time_eq", + "crc32fast", + "crossbeam-utils", + "flate2", + "hmac", + "pbkdf2", + "sha1", + "time", + "zstd", +] + +[[package]] +name = "zstd" +version = "0.11.2+zstd.1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "5.0.2+zstd.1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db" +dependencies = [ + "libc", + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.7+zstd.1.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94509c3ba2fe55294d752b79842c530ccfab760192521df74a081a78d2b3c7f5" +dependencies = [ + "cc", + "libc", + "pkg-config", +] 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..5f6c405b0a 100644 --- a/crates/analyzer/tests/analysis.rs +++ b/crates/analyzer/tests/analysis.rs @@ -385,6 +385,8 @@ fn build_snapshot(db: &dyn AnalyzerDb, module: items::ModuleId) -> String { | Item::BuiltinFunction(_) | Item::Intrinsic(_) | Item::Ingot(_) + // TODO + | Item::Attribute(_) | Item::Module(_) => vec![], }) .collect::>(); diff --git a/crates/analyzer/tests/errors.rs b/crates/analyzer/tests/errors.rs index 257e30b6e2..a0949a1d1b 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_call } +test_file! { test_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__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.snap b/crates/analyzer/tests/snapshots/errors__call.snap new file mode 100644 index 0000000000..78af16855a --- /dev/null +++ b/crates/analyzer/tests/snapshots/errors__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_call.fe:2:5 + │ +2 │ my_test() + │ ^^^^^^^ test functions are not callable + + 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_compiler_version.snap b/crates/analyzer/tests/snapshots/errors__invalid_compiler_version.snap index 6c09d7e0c6..7b44b67433 100644 --- a/crates/analyzer/tests/snapshots/errors__invalid_compiler_version.snap +++ b/crates/analyzer/tests/snapshots/errors__invalid_compiler_version.snap @@ -1,7 +1,6 @@ --- source: crates/analyzer/tests/errors.rs expression: "error_string(&path, test_files::fixture(path))" - --- error: The current compiler version 0.20.0-alpha doesn't match the specified requirement ┌─ compile_errors/invalid_compiler_version.fe:1:8 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__params.snap b/crates/analyzer/tests/snapshots/errors__params.snap new file mode 100644 index 0000000000..da46b0f47d --- /dev/null +++ b/crates/analyzer/tests/snapshots/errors__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_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_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_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__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..330ed22d0f 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 test::lower_test; pub use function::lower_function; 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 dd3fe1b342..a19c529b80 100644 --- a/crates/driver/Cargo.toml +++ b/crates/driver/Cargo.toml @@ -23,3 +23,8 @@ indexmap = "1.6.2" vfs = "0.5.1" smol_str = "0.1.21" toml = "0.5.8" +foundry-evm = { git="https://github.com/g-r-a-n-t/dapptools-rs" } +primitive-types = "0.12" +bytes = "1.3" +colored = "2.0.0" +hex="0.4" diff --git a/crates/driver/src/lib.rs b/crates/driver/src/lib.rs index 77d6d9c186..8e15419b10 100644 --- a/crates/driver/src/lib.rs +++ b/crates/driver/src/lib.rs @@ -1,21 +1,21 @@ #![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 bytes::Bytes; +use colored::Colorize; +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 foundry_evm::executor::fork::MultiFork; +use foundry_evm::executor::{Backend, ExecutorBuilder}; +use foundry_evm::revm::{AccountInfo, Bytecode, SpecId}; use indexmap::{indexmap, IndexMap}; -#[cfg(feature = "solc-backend")] +use primitive_types::{H160, U256}; 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 +32,110 @@ 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 { + let builder = ExecutorBuilder::default() + .with_spec(SpecId::GRAY_GLACIER) + .with_gas_limit(U256::from(u64::MAX)); + let mut executor = builder.build(Backend::new(MultiFork::spawn(), None)); + let test_info = AccountInfo::new( + U256::zero(), + 0, + Bytecode::new_raw(Bytes::copy_from_slice( + &hex::decode(self.bytecode.clone()).unwrap(), + )), + ); + let to = H160::from(&[42; 20]); + let from = H160::from(&[26; 20]); + executor.backend_mut().insert_account_info(to, test_info); + let result = executor + .call_raw_committing(from, to, Bytes::default(), U256::zero()) + .unwrap(); + if result.reverted { + sink.insert_failure(&self.name, &format!("{:?}", result.exit_reason)); + } else { + sink.inc_success_count(); + }; + !result.reverted + } +} + +#[derive(Debug, Default)] +#[cfg(feature = "solc-backend")] +pub struct TestSink { + success_count: usize, + failure_details: Vec, +} + +#[cfg(feature = "solc-backend")] +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") + } +} + +#[cfg(feature = "solc-backend")] +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")) + } +} + #[derive(Debug)] pub struct CompileError(pub Vec); @@ -51,7 +155,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 +229,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 +284,33 @@ 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); + // panic!("{}\n{}", yul_test, bytecode); + 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 +341,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 +397,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 2e6bfdb898..5654d56d58 100644 --- a/crates/fe/Cargo.toml +++ b/crates/fe/Cargo.toml @@ -19,6 +19,7 @@ fs_extra = "1.2.0" walkdir = "2" indexmap = "1.6.2" include_dir = "0.7.2" +colored = "2.0.0" fe-common = {path = "../common", version = "^0.20.0-alpha"} fe-driver = {path = "../driver", version = "^0.20.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..d82cc915b0 --- /dev/null +++ b/crates/fe/src/task/test.rs @@ -0,0 +1,117 @@ +#![cfg(feature = "solc-backend")] +use std::path::Path; + +use clap::Args; +use colored::Colorize; +use fe_common::diagnostics::print_diagnostics; +use fe_driver::{CompiledTest, TestSink}; + +use crate::task::utils::load_files_from_dir; + +#[derive(Args)] +#[clap(about = "Build 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..9fc4d26837 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, "shit")?; + 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_call.fe b/crates/test-files/fixtures/compile_errors/test_call.fe new file mode 100644 index 0000000000..5e766d12e8 --- /dev/null +++ b/crates/test-files/fixtures/compile_errors/test_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_params.fe b/crates/test-files/fixtures/compile_errors/test_params.fe new file mode 100644 index 0000000000..898a4cdef1 --- /dev/null +++ b/crates/test-files/fixtures/compile_errors/test_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/tests-legacy/Cargo.toml b/crates/tests-legacy/Cargo.toml new file mode 100644 index 0000000000..4e15838495 --- /dev/null +++ b/crates/tests-legacy/Cargo.toml @@ -0,0 +1,42 @@ +[package] +authors = ["The Fe Developers "] +edition = "2021" +name = "fe-compiler-tests-legacy" +version = "0.20.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.20.0-alpha"} +fe-common = {path = "../common", version = "^0.20.0-alpha"} +fe-compiler-test-utils = {path = "../test-utils" } +fe-parser = {path = "../parser", version = "^0.20.0-alpha"} +fe-yulc = {path = "../yulc", version = "^0.20.0-alpha"} +fe-driver = {path = "../driver", version = "^0.20.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"] 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 100% rename from crates/tests/src/differential.rs rename to crates/tests-legacy/src/differential.rs 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 b008d72d77..29b86b4b1f 100644 --- a/crates/tests/Cargo.toml +++ b/crates/tests/Cargo.toml @@ -1,41 +1,14 @@ [package] authors = ["The Fe Developers "] edition = "2021" -name = "fe-compiler-tests" +name = "fe-compiler-tests2" version = "0.20.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.20.0-alpha"} -fe-common = {path = "../common", version = "^0.20.0-alpha"} -fe-compiler-test-utils = {path = "../test-utils" } -fe-parser = {path = "../parser", version = "^0.20.0-alpha"} -fe-yulc = {path = "../yulc", version = "^0.20.0-alpha"} fe-driver = {path = "../driver", version = "^0.20.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..a01a755c7d 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_driver::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 -