[INFO] cloning repository https://github.com/teeeeeo9/basket-swap-stylus [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/teeeeeo9/basket-swap-stylus" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteeeeeo9%2Fbasket-swap-stylus", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteeeeeo9%2Fbasket-swap-stylus'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e687e3d6db4beb49d3b0affd2153091e3560a10c [INFO] testing teeeeeo9/basket-swap-stylus against try#311784882baa42a9638298cb325fa01a062c9d0f+cargoflags=-Zbuild-dir-new-layout for pr-149852 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteeeeeo9%2Fbasket-swap-stylus" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-2-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-2-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/teeeeeo9/basket-swap-stylus [INFO] finished tweaking git repo https://github.com/teeeeeo9/basket-swap-stylus [INFO] tweaked toml for git repo https://github.com/teeeeeo9/basket-swap-stylus written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/teeeeeo9/basket-swap-stylus on toolchain 311784882baa42a9638298cb325fa01a062c9d0f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/teeeeeo9/basket-swap-stylus already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5fc7e436607691aa7b6d878a5d9a8bd8b317fd7355b9efff1830575c4fa2da1 [INFO] running `Command { std: "docker" "start" "-a" "d5fc7e436607691aa7b6d878a5d9a8bd8b317fd7355b9efff1830575c4fa2da1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5fc7e436607691aa7b6d878a5d9a8bd8b317fd7355b9efff1830575c4fa2da1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5fc7e436607691aa7b6d878a5d9a8bd8b317fd7355b9efff1830575c4fa2da1", kill_on_drop: false }` [INFO] [stdout] d5fc7e436607691aa7b6d878a5d9a8bd8b317fd7355b9efff1830575c4fa2da1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 7d7734613496ff709b3bc64ebecdc1d74f43709b6cb40d11903ad10858cd715e [INFO] running `Command { std: "docker" "start" "-a" "7d7734613496ff709b3bc64ebecdc1d74f43709b6cb40d11903ad10858cd715e", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling const-hex v1.11.0 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling dunce v1.0.4 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling hex-literal v0.4.1 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling ruint v1.12.3 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.50 [INFO] [stderr] Compiling indexmap v2.2.3 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling memory_units v0.4.0 [INFO] [stderr] Compiling keccak-const v0.2.0 [INFO] [stderr] Compiling syn-solidity v0.7.6 [INFO] [stderr] Compiling regex-automata v0.4.5 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling mini-alloc v0.4.2 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling alloy-sol-macro-input v0.7.6 [INFO] [stderr] Compiling alloy-sol-macro-expander v0.7.6 [INFO] [stderr] Compiling alloy-primitives v0.7.6 [INFO] [stderr] Compiling alloy-sol-macro v0.7.6 [INFO] [stderr] Compiling alloy-sol-types v0.7.6 [INFO] [stderr] Compiling stylus-proc v0.5.2 [INFO] [stderr] Compiling stylus-sdk v0.5.2 [INFO] [stderr] Compiling basket-swap v0.1.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigInt` and `ToBigInt` [INFO] [stdout] --> src/lib.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | use num_bigint::{BigInt, ToBigInt}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec::Vec` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `U128` and `address` [INFO] [stdout] --> src/lib.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 23 | use stylus_sdk::{alloy_primitives::{address, Address, U256,U128, Uint, I256}}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GenError`, `TestError`, and `ZeroValue` [INFO] [stdout] --> src/lib.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | use utils::{GenError, TestError, UniswapV3MathError, ZeroValue}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Address` [INFO] [stdout] --> src/utils_2.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use alloy_primitives::{Address, I256, U256}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Q128` is never used [INFO] [stdout] --> src/utils.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub const Q128: U256 = U256::from_limbs([0, 0, 1, 0]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Q192` is never used [INFO] [stdout] --> src/utils.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | pub const Q192: U256 = U256::from_limbs([0, 0, 0, 1]); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u256_to_big_uint` is never used [INFO] [stdout] --> src/utils_2.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn u256_to_big_uint(x: U256) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u256_to_big_int` is never used [INFO] [stdout] --> src/utils_2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn u256_to_big_int(x: U256) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `i256_to_big_int` is never used [INFO] [stdout] --> src/utils_2.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn i256_to_big_int(x: I256) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_amount_0_delta_signed` is never used [INFO] [stdout] --> src/sqrt_price_math.rs:268:8 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn get_amount_0_delta_signed( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_amount_1_delta_signed` is never used [INFO] [stdout] --> src/sqrt_price_math.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 296 | pub fn get_amount_1_delta_signed( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tokenIn` should have a snake case name [INFO] [stdout] --> src/lib.rs:53:48 [INFO] [stdout] | [INFO] [stdout] 53 | ... function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn,uint160 sqrtPriceLimitX96) exte... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `token_in` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tokenOut` should have a snake case name [INFO] [stdout] --> src/lib.rs:53:65 [INFO] [stdout] | [INFO] [stdout] 53 | ... function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn,uint160 sqrtPriceLimitX96) exte... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `token_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `amountIn` should have a snake case name [INFO] [stdout] --> src/lib.rs:53:95 [INFO] [stdout] | [INFO] [stdout] 53 | ...s tokenOut, uint24 fee, uint256 amountIn,uint160 sqrtPriceLimitX96) external returns (uint256 amountOut); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `amount_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtPriceLimitX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:53:112 [INFO] [stdout] | [INFO] [stdout] 53 | ...t256 amountIn,uint160 sqrtPriceLimitX96) external returns (uint256 amountOut); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_price_limit_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tokenA` should have a snake case name [INFO] [stdout] --> src/lib.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | address tokenA, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `token_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tokenB` should have a snake case name [INFO] [stdout] --> src/lib.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | address tokenB, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `token_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `factoryAddress` should have a snake case name [INFO] [stdout] --> src/lib.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | address factoryAddress; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `factory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustciMB3lA/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustciMB3lA/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/build/basket-swap/17bc3a6c872d76db/deps/basket_swap" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: undefined symbol: main [INFO] [stdout] >>> referenced by /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/Scrt1.o:(_start) [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `basket-swap` (bin "basket-swap") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "7d7734613496ff709b3bc64ebecdc1d74f43709b6cb40d11903ad10858cd715e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d7734613496ff709b3bc64ebecdc1d74f43709b6cb40d11903ad10858cd715e", kill_on_drop: false }` [INFO] [stdout] 7d7734613496ff709b3bc64ebecdc1d74f43709b6cb40d11903ad10858cd715e