[INFO] cloning repository https://github.com/canesee/amm-contract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/canesee/amm-contract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcanesee%2Famm-contract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcanesee%2Famm-contract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7263afd438cd4b0b5d8559ecf813e4006eb973b0 [INFO] testing canesee/amm-contract against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcanesee%2Famm-contract" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/canesee/amm-contract [INFO] finished tweaking git repo https://github.com/canesee/amm-contract [INFO] tweaked toml for git repo https://github.com/canesee/amm-contract written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/canesee/amm-contract on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/canesee/amm-contract 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded near-sdk-core v3.1.0 [INFO] [stderr] Downloaded near-sdk-macros v3.1.0 [INFO] [stderr] Downloaded near-sdk v3.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b635fa620285fa177b433d9a6d265a94b17af8ca330a3788ed3e9223dbe0ad1 [INFO] running `Command { std: "docker" "start" "-a" "7b635fa620285fa177b433d9a6d265a94b17af8ca330a3788ed3e9223dbe0ad1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b635fa620285fa177b433d9a6d265a94b17af8ca330a3788ed3e9223dbe0ad1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b635fa620285fa177b433d9a6d265a94b17af8ca330a3788ed3e9223dbe0ad1", kill_on_drop: false }` [INFO] [stdout] 7b635fa620285fa177b433d9a6d265a94b17af8ca330a3788ed3e9223dbe0ad1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19a9b8fe11bafd8802e6d25819dcd9ddf86b57bf647fb6ec2dd08aa22cb4bd2b [INFO] running `Command { std: "docker" "start" "-a" "19a9b8fe11bafd8802e6d25819dcd9ddf86b57bf647fb6ec2dd08aa22cb4bd2b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling memory_units v0.4.0 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling uint v0.8.5 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling near-runtime-utils v4.0.0-pre.1 [INFO] [stderr] Compiling borsh-derive-internal v0.8.2 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.2 [INFO] [stderr] Compiling near-sdk-core v3.1.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling near-sdk-macros v3.1.0 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling near-rpc-error-core v0.1.0 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling near-rpc-error-macro v0.1.0 [INFO] [stderr] Compiling borsh-derive v0.8.2 [INFO] [stderr] Compiling borsh v0.8.2 [INFO] [stderr] Compiling near-primitives-core v0.4.0 [INFO] [stderr] Compiling near-vm-errors v4.0.0-pre.1 [INFO] [stderr] Compiling near-vm-logic v4.0.0-pre.1 [INFO] [stderr] Compiling near-sdk v3.1.0 [INFO] [stderr] Compiling amm-contract v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `StorageBalance` is never constructed [INFO] [stdout] --> src/storage_manager.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct StorageBalance { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `StorageManager` is never used [INFO] [stdout] --> src/storage_manager.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait StorageManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Payload` is never used [INFO] [stdout] --> src/token_receiver.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum Payload { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TokenReceiver` is never used [INFO] [stdout] --> src/token_receiver.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait TokenReceiver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 50.56s [INFO] running `Command { std: "docker" "inspect" "19a9b8fe11bafd8802e6d25819dcd9ddf86b57bf647fb6ec2dd08aa22cb4bd2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19a9b8fe11bafd8802e6d25819dcd9ddf86b57bf647fb6ec2dd08aa22cb4bd2b", kill_on_drop: false }` [INFO] [stdout] 19a9b8fe11bafd8802e6d25819dcd9ddf86b57bf647fb6ec2dd08aa22cb4bd2b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aae950d6f504071fc94c0556d9f99ef03b8ccf181cf21d6f0243272a17814632 [INFO] running `Command { std: "docker" "start" "-a" "aae950d6f504071fc94c0556d9f99ef03b8ccf181cf21d6f0243272a17814632", kill_on_drop: false }` [INFO] [stderr] Compiling amm-contract v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `StorageBalance` is never constructed [INFO] [stdout] --> src/storage_manager.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct StorageBalance { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `StorageManager` is never used [INFO] [stdout] --> src/storage_manager.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait StorageManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Payload` is never used [INFO] [stdout] --> src/token_receiver.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum Payload { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TokenReceiver` is never used [INFO] [stdout] --> src/token_receiver.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait TokenReceiver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StorageBalance` is never constructed [INFO] [stdout] --> src/storage_manager.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct StorageBalance { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `StorageManager` is never used [INFO] [stdout] --> src/storage_manager.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait StorageManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Payload` is never used [INFO] [stdout] --> src/token_receiver.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum Payload { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TokenReceiver` is never used [INFO] [stdout] --> src/token_receiver.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait TokenReceiver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.06s [INFO] running `Command { std: "docker" "inspect" "aae950d6f504071fc94c0556d9f99ef03b8ccf181cf21d6f0243272a17814632", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aae950d6f504071fc94c0556d9f99ef03b8ccf181cf21d6f0243272a17814632", kill_on_drop: false }` [INFO] [stdout] aae950d6f504071fc94c0556d9f99ef03b8ccf181cf21d6f0243272a17814632 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e45a4802f23dfa626e4881e0b045f241ffbdf24670db52cd20b960f00798d916 [INFO] running `Command { std: "docker" "start" "-a" "e45a4802f23dfa626e4881e0b045f241ffbdf24670db52cd20b960f00798d916", kill_on_drop: false }` [INFO] [stderr] warning: struct `StorageBalance` is never constructed [INFO] [stderr] --> src/storage_manager.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct StorageBalance { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: trait `StorageManager` is never used [INFO] [stderr] --> src/storage_manager.rs:21:11 [INFO] [stderr] | [INFO] [stderr] 21 | pub trait StorageManager { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `Payload` is never used [INFO] [stderr] --> src/token_receiver.rs:22:10 [INFO] [stderr] | [INFO] [stderr] 22 | pub enum Payload { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `TokenReceiver` is never used [INFO] [stderr] --> src/token_receiver.rs:27:11 [INFO] [stderr] | [INFO] [stderr] 27 | pub trait TokenReceiver { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `amm-contract` (lib) generated 4 warnings [INFO] [stderr] warning: `amm-contract` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/amm_contract-3a38ca1cc7c7fd69) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::test_init ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/test.rs (/opt/rustwide/target/debug/deps/test-4d22f975723cb6d3) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests amm_contract [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e45a4802f23dfa626e4881e0b045f241ffbdf24670db52cd20b960f00798d916", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e45a4802f23dfa626e4881e0b045f241ffbdf24670db52cd20b960f00798d916", kill_on_drop: false }` [INFO] [stdout] e45a4802f23dfa626e4881e0b045f241ffbdf24670db52cd20b960f00798d916