[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#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbyTimo%2Finvest-helper" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/byTimo/invest-helper on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-5/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust_decimal v1.9.0 [INFO] [stderr] Downloaded rust_decimal_macros v1.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee191674894f68356fc26c9d81ce78ad1f949ea26095a04ca2abae262e2dfd1d [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" "ee191674894f68356fc26c9d81ce78ad1f949ea26095a04ca2abae262e2dfd1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee191674894f68356fc26c9d81ce78ad1f949ea26095a04ca2abae262e2dfd1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee191674894f68356fc26c9d81ce78ad1f949ea26095a04ca2abae262e2dfd1d", kill_on_drop: false }` [INFO] [stdout] ee191674894f68356fc26c9d81ce78ad1f949ea26095a04ca2abae262e2dfd1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c44ade00134be724a43961a7489c8a6acde3f15f170a428ca6bcc0d49f90fde0 [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" "c44ade00134be724a43961a7489c8a6acde3f15f170a428ca6bcc0d49f90fde0", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking rust_decimal v1.9.0 [INFO] [stderr] Compiling rust_decimal_macros v1.9.0 [INFO] [stderr] Checking invest-helper v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [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.24s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking invest-helper v0.1.0 (/tmp/fixit) [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 0.52s [INFO] running `Command { std: "docker" "inspect" "c44ade00134be724a43961a7489c8a6acde3f15f170a428ca6bcc0d49f90fde0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c44ade00134be724a43961a7489c8a6acde3f15f170a428ca6bcc0d49f90fde0", kill_on_drop: false }` [INFO] [stdout] c44ade00134be724a43961a7489c8a6acde3f15f170a428ca6bcc0d49f90fde0