[INFO] cloning repository https://github.com/ar492/trading_strategy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ar492/trading_strategy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Far492%2Ftrading_strategy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Far492%2Ftrading_strategy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c7e1e85a8f17e8023b95fc4768ae7202d50266c2 [INFO] checking ar492/trading_strategy against try#39605810efb1a0d52f955bfba9e4eec7a01d5deb for pr-153692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Far492%2Ftrading_strategy" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ar492/trading_strategy [INFO] finished tweaking git repo https://github.com/ar492/trading_strategy [INFO] tweaked toml for git repo https://github.com/ar492/trading_strategy written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ar492/trading_strategy on toolchain 39605810efb1a0d52f955bfba9e4eec7a01d5deb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ar492/trading_strategy 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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 96e5a39b1592acc812ce404897bd5f44150f4c8d4172156bd80ee6094e315048 [INFO] running `Command { std: "docker" "start" "-a" "96e5a39b1592acc812ce404897bd5f44150f4c8d4172156bd80ee6094e315048", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "96e5a39b1592acc812ce404897bd5f44150f4c8d4172156bd80ee6094e315048", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96e5a39b1592acc812ce404897bd5f44150f4c8d4172156bd80ee6094e315048", kill_on_drop: false }` [INFO] [stdout] 96e5a39b1592acc812ce404897bd5f44150f4c8d4172156bd80ee6094e315048 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3512560f690551db7737b8d102831fa77e2ab4a3859b5b61b80aa38b5a9256ab [INFO] running `Command { std: "docker" "start" "-a" "3512560f690551db7737b8d102831fa77e2ab4a3859b5b61b80aa38b5a9256ab", kill_on_drop: false }` [INFO] [stderr] Checking strategy_runner v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Buy` is never constructed [INFO] [stdout] --> src/levels.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Buy { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sell` is never constructed [INFO] [stdout] --> src/levels.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Sell { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Index` is never constructed [INFO] [stdout] --> src/levels.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Index { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Buy` is never constructed [INFO] [stdout] --> src/order_book.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Buy { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sell` is never constructed [INFO] [stdout] --> src/order_book.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Sell { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Index` is never constructed [INFO] [stdout] --> src/order_book.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Index { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/order_book.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Index { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(buy: Buy, sell: Sell) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrategyObject` is never constructed [INFO] [stdout] --> src/strategy.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct StrategyObject { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_orderbook`, `update_state`, `get_trade_signals`, and `get_level_stats` are never used [INFO] [stdout] --> src/strategy.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl StrategyObject { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_orderbook(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn update_state(&self, calculate_metric: F) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_trade_signals(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn get_level_stats(&self, _level: i32) -> Index { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Buy` is never constructed [INFO] [stdout] --> src/levels.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Buy { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sell` is never constructed [INFO] [stdout] --> src/levels.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Sell { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Index` is never constructed [INFO] [stdout] --> src/levels.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Index { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Buy` is never constructed [INFO] [stdout] --> src/order_book.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Buy { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sell` is never constructed [INFO] [stdout] --> src/order_book.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Sell { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Index` is never constructed [INFO] [stdout] --> src/order_book.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Index { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/order_book.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Index { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(buy: Buy, sell: Sell) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrategyObject` is never constructed [INFO] [stdout] --> src/strategy.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct StrategyObject { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_orderbook`, `update_state`, `get_trade_signals`, and `get_level_stats` are never used [INFO] [stdout] --> src/strategy.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl StrategyObject { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_orderbook(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn update_state(&self, calculate_metric: F) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_trade_signals(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn get_level_stats(&self, _level: i32) -> Index { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_book` [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let order_book = strategy_obj.get_orderbook(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_book` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price_buy` and `quantity_buy` are never read [INFO] [stdout] --> src/order_book.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Buy { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 2 | pub price_buy: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 3 | pub quantity_buy: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price_sell` and `quantity_sell` are never read [INFO] [stdout] --> src/order_book.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Sell { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | pub price_sell: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub quantity_sell: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buy_stats`, `sell_stats`, and `next_index` are never read [INFO] [stdout] --> src/order_book.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Index { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 12 | pub buy_stats: Buy, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | pub sell_stats: Sell, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | pub next_index: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/order_book.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Index { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(buy: Buy, sell: Sell) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_state`, `get_trade_signals`, and `get_level_stats` are never used [INFO] [stdout] --> src/strategy.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl StrategyObject { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn update_state(&self, calculate_metric: F) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_trade_signals(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn get_level_stats(&self, _level: i32) -> Index { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_book` [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let order_book = strategy_obj.get_orderbook(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_book` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price_buy` and `quantity_buy` are never read [INFO] [stdout] --> src/order_book.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Buy { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 2 | pub price_buy: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 3 | pub quantity_buy: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price_sell` and `quantity_sell` are never read [INFO] [stdout] --> src/order_book.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Sell { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | pub price_sell: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub quantity_sell: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buy_stats`, `sell_stats`, and `next_index` are never read [INFO] [stdout] --> src/order_book.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Index { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 12 | pub buy_stats: Buy, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | pub sell_stats: Sell, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | pub next_index: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/order_book.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Index { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(buy: Buy, sell: Sell) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_state`, `get_trade_signals`, and `get_level_stats` are never used [INFO] [stdout] --> src/strategy.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl StrategyObject { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn update_state(&self, calculate_metric: F) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_trade_signals(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn get_level_stats(&self, _level: i32) -> Index { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] running `Command { std: "docker" "inspect" "3512560f690551db7737b8d102831fa77e2ab4a3859b5b61b80aa38b5a9256ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3512560f690551db7737b8d102831fa77e2ab4a3859b5b61b80aa38b5a9256ab", kill_on_drop: false }` [INFO] [stdout] 3512560f690551db7737b8d102831fa77e2ab4a3859b5b61b80aa38b5a9256ab