[INFO] cloning repository https://github.com/ankitdhadiwal/amm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ankitdhadiwal/amm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fankitdhadiwal%2Famm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fankitdhadiwal%2Famm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0466e36b952068a5dad6f2fd2d95da978a47ee20 [INFO] building ankitdhadiwal/amm against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fankitdhadiwal%2Famm" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ankitdhadiwal/amm [INFO] finished tweaking git repo https://github.com/ankitdhadiwal/amm [INFO] tweaked toml for git repo https://github.com/ankitdhadiwal/amm written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ankitdhadiwal/amm on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ankitdhadiwal/amm 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/deanmlittle/constant-product-curve.git` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded solana-curve25519 v2.3.3 [INFO] [stderr] Downloaded solana-zk-sdk v2.3.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 26aef4a68f367cbfef84d6889464fa5870a21444bbe543a610f1a5807f920452 [INFO] running `Command { std: "docker" "start" "-a" "26aef4a68f367cbfef84d6889464fa5870a21444bbe543a610f1a5807f920452", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "26aef4a68f367cbfef84d6889464fa5870a21444bbe543a610f1a5807f920452", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26aef4a68f367cbfef84d6889464fa5870a21444bbe543a610f1a5807f920452", kill_on_drop: false }` [INFO] [stdout] 26aef4a68f367cbfef84d6889464fa5870a21444bbe543a610f1a5807f920452 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29d68e9faeef4cac024286096222b9b6b44619dfb63382e41b1c53cb11a03a27 [INFO] running `Command { std: "docker" "start" "-a" "29d68e9faeef4cac024286096222b9b6b44619dfb63382e41b1c53cb11a03a27", kill_on_drop: false }` [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling constant-product-curve v0.1.0 (https://github.com/deanmlittle/constant-product-curve.git#2a723a0f) [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling aes-gcm-siv v0.11.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling solana-seed-phrase v2.2.1 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling solana-curve25519 v2.3.3 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling borsh-derive v1.5.7 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling solana-secp256k1-recover v2.2.1 [INFO] [stderr] Compiling num_enum v0.7.4 [INFO] [stderr] Compiling borsh v1.5.7 [INFO] [stderr] Compiling solana-hash v2.3.0 [INFO] [stderr] Compiling solana-borsh v2.2.1 [INFO] [stderr] Compiling solana-sha256-hasher v2.2.1 [INFO] [stderr] Compiling solana-keccak-hasher v2.2.1 [INFO] [stderr] Compiling solana-blake3-hasher v2.2.1 [INFO] [stderr] Compiling solana-pubkey v2.4.0 [INFO] [stderr] Compiling solana-instruction v2.3.0 [INFO] [stderr] Compiling solana-sdk-ids v2.2.1 [INFO] [stderr] Compiling solana-nonce v2.2.1 [INFO] [stderr] Compiling solana-sysvar-id v2.2.1 [INFO] [stderr] Compiling solana-clock v2.2.2 [INFO] [stderr] Compiling solana-slot-hashes v2.2.1 [INFO] [stderr] Compiling solana-rent v2.2.1 [INFO] [stderr] Compiling solana-epoch-rewards v2.2.1 [INFO] [stderr] Compiling solana-slot-history v2.2.1 [INFO] [stderr] Compiling solana-last-restart-slot v2.2.1 [INFO] [stderr] Compiling solana-program-error v2.2.2 [INFO] [stderr] Compiling solana-transaction-error v2.2.1 [INFO] [stderr] Compiling solana-system-interface v1.0.0 [INFO] [stderr] Compiling solana-account-info v2.3.0 [INFO] [stderr] Compiling solana-serialize-utils v2.2.1 [INFO] [stderr] Compiling solana-bincode v2.2.1 [INFO] [stderr] Compiling solana-address-lookup-table-interface v2.2.2 [INFO] [stderr] Compiling solana-epoch-schedule v2.2.1 [INFO] [stderr] Compiling solana-signer v2.2.1 [INFO] [stderr] Compiling solana-program-pack v2.2.1 [INFO] [stderr] Compiling solana-loader-v2-interface v2.2.1 [INFO] [stderr] Compiling solana-cpi v2.2.1 [INFO] [stderr] Compiling solana-program-entrypoint v2.3.0 [INFO] [stderr] Compiling solana-instructions-sysvar v2.2.2 [INFO] [stderr] Compiling solana-account v2.2.1 [INFO] [stderr] Compiling solana-stable-layout v2.2.1 [INFO] [stderr] Compiling solana-zk-sdk v2.3.3 [INFO] [stderr] Compiling spl-discriminator v0.4.1 [INFO] [stderr] Compiling spl-associated-token-account-client v2.0.0 [INFO] [stderr] Compiling spl-memo v6.0.0 [INFO] [stderr] Compiling solana-stake-interface v1.2.1 [INFO] [stderr] Compiling solana-message v2.4.0 [INFO] [stderr] Compiling solana-vote-interface v2.2.5 [INFO] [stderr] Compiling solana-loader-v3-interface v5.0.0 [INFO] [stderr] Compiling solana-feature-gate-interface v2.2.2 [INFO] [stderr] Compiling solana-loader-v4-interface v2.2.1 [INFO] [stderr] Compiling solana-sysvar v2.2.2 [INFO] [stderr] Compiling solana-example-mocks v2.2.1 [INFO] [stderr] Compiling solana-program v2.3.0 [INFO] [stderr] Compiling spl-program-error v0.6.0 [INFO] [stderr] Compiling spl-token v7.0.0 [INFO] [stderr] Compiling anchor-lang v0.31.1 [INFO] [stderr] Compiling spl-pod v0.5.1 [INFO] [stderr] Compiling spl-token-confidential-transfer-ciphertext-arithmetic v0.2.1 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-generation v0.2.0 [INFO] [stderr] Compiling spl-type-length-value v0.7.0 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-extraction v0.2.1 [INFO] [stderr] Compiling spl-token-group-interface v0.5.0 [INFO] [stderr] Compiling spl-elgamal-registry v0.1.1 [INFO] [stderr] Compiling spl-tlv-account-resolution v0.9.0 [INFO] [stderr] Compiling spl-token-metadata-interface v0.6.0 [INFO] [stderr] Compiling spl-transfer-hook-interface v0.9.0 [INFO] [stderr] Compiling spl-token-2022 v6.0.0 [INFO] [stderr] Compiling spl-associated-token-account v6.0.0 [INFO] [stderr] Compiling anchor-spl v0.31.1 [INFO] [stderr] Compiling amm v0.1.0 (/opt/rustwide/workdir/programs/amm) [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/amm/src/lib.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | ctx.accounts.init(seed, fee, authority, ctx.bumps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 25 | let _ = ctx.accounts.init(seed, fee, authority, ctx.bumps); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/amm/src/lib.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | ctx.accounts.deposit(amount, max_x, max_y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = ctx.accounts.deposit(amount, max_x, max_y); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.88s [INFO] running `Command { std: "docker" "inspect" "29d68e9faeef4cac024286096222b9b6b44619dfb63382e41b1c53cb11a03a27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29d68e9faeef4cac024286096222b9b6b44619dfb63382e41b1c53cb11a03a27", kill_on_drop: false }` [INFO] [stdout] 29d68e9faeef4cac024286096222b9b6b44619dfb63382e41b1c53cb11a03a27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e5ee6604e9ed52e090ec6631895c50ea6a0f5af42d854438750e9b5e0ca8d37 [INFO] running `Command { std: "docker" "start" "-a" "8e5ee6604e9ed52e090ec6631895c50ea6a0f5af42d854438750e9b5e0ca8d37", kill_on_drop: false }` [INFO] [stderr] Compiling amm v0.1.0 (/opt/rustwide/workdir/programs/amm) [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/amm/src/lib.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | ctx.accounts.init(seed, fee, authority, ctx.bumps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 25 | let _ = ctx.accounts.init(seed, fee, authority, ctx.bumps); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/amm/src/lib.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | ctx.accounts.deposit(amount, max_x, max_y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = ctx.accounts.deposit(amount, max_x, max_y); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/amm/src/lib.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | ctx.accounts.init(seed, fee, authority, ctx.bumps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 25 | let _ = ctx.accounts.init(seed, fee, authority, ctx.bumps); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/amm/src/lib.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | ctx.accounts.deposit(amount, max_x, max_y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = ctx.accounts.deposit(amount, max_x, max_y); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.05s [INFO] running `Command { std: "docker" "inspect" "8e5ee6604e9ed52e090ec6631895c50ea6a0f5af42d854438750e9b5e0ca8d37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e5ee6604e9ed52e090ec6631895c50ea6a0f5af42d854438750e9b5e0ca8d37", kill_on_drop: false }` [INFO] [stdout] 8e5ee6604e9ed52e090ec6631895c50ea6a0f5af42d854438750e9b5e0ca8d37