[INFO] cloning repository https://github.com/byTimo/invest-helper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/byTimo/invest-helper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbyTimo%2Finvest-helper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbyTimo%2Finvest-helper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 55d4f87cddaec035e229c125c9668147396aeb1d [INFO] checking byTimo/invest-helper against try#9cfe725f0995b018340c519db1b2f3cf8a7e0631 for pr-81174 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbyTimo%2Finvest-helper" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/byTimo/invest-helper on toolchain 9cfe725f0995b018340c519db1b2f3cf8a7e0631 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/byTimo/invest-helper [INFO] finished tweaking git repo https://github.com/byTimo/invest-helper [INFO] tweaked toml for git repo https://github.com/byTimo/invest-helper written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/byTimo/invest-helper already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust_decimal_macros v1.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 34e370b4887d831d3764913c4c2e3a7f2f0c712e5e3a93715355503aed1ca67a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "34e370b4887d831d3764913c4c2e3a7f2f0c712e5e3a93715355503aed1ca67a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "34e370b4887d831d3764913c4c2e3a7f2f0c712e5e3a93715355503aed1ca67a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34e370b4887d831d3764913c4c2e3a7f2f0c712e5e3a93715355503aed1ca67a", kill_on_drop: false }` [INFO] [stdout] 34e370b4887d831d3764913c4c2e3a7f2f0c712e5e3a93715355503aed1ca67a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fed9cf27d22c6d11cf45bce5fefdd298ef7f4077053f993a47d9ae4538f1d290 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fed9cf27d22c6d11cf45bce5fefdd298ef7f4077053f993a47d9ae4538f1d290", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling rust_decimal v1.9.0 [INFO] [stderr] Compiling rust_decimal_macros v1.9.0 [INFO] [stderr] Checking invest-helper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant is never constructed: `Stock` [INFO] [stdout] --> src/balancer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Stock { ticker: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cash` [INFO] [stdout] --> src/balancer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Cash(Decimal), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Portfolio` [INFO] [stdout] --> src/balancer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | type Portfolio = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Market` [INFO] [stdout] --> src/balancer.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | type Market = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Capital` [INFO] [stdout] --> src/balancer.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | type Capital = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Strategy` [INFO] [stdout] --> src/balancer.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | type Strategy = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Transaction` [INFO] [stdout] --> src/balancer.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | type Transaction = (Asset, i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `balance` [INFO] [stdout] --> src/balancer.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn balance(portfolio: &Portfolio, market: &Market, strategy: &Strategy) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_target_capital` [INFO] [stdout] --> src/balancer.rs:244:4 [INFO] [stdout] | [INFO] [stdout] 244 | fn get_target_capital(strategy: &Strategy, total: Decimal) -> Capital { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `capitalize` [INFO] [stdout] --> src/balancer.rs:325:4 [INFO] [stdout] | [INFO] [stdout] 325 | fn capitalize(portfolio: &Portfolio, market: &Market) -> Capital { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.55s [INFO] running `Command { std: "docker" "inspect" "fed9cf27d22c6d11cf45bce5fefdd298ef7f4077053f993a47d9ae4538f1d290", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fed9cf27d22c6d11cf45bce5fefdd298ef7f4077053f993a47d9ae4538f1d290", kill_on_drop: false }` [INFO] [stdout] fed9cf27d22c6d11cf45bce5fefdd298ef7f4077053f993a47d9ae4538f1d290