[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#48c9d93cf65d550d124c40108859fd993778c157 for pr-153692-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Far492%2Ftrading_strategy" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-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-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ar492/trading_strategy on toolchain 48c9d93cf65d550d124c40108859fd993778c157
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+48c9d93cf65d550d124c40108859fd993778c157" "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" "+48c9d93cf65d550d124c40108859fd993778c157" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+48c9d93cf65d550d124c40108859fd993778c157" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1ae1e006b86022a8b04ac7cad32adb46e2d262eca247079cf6e4e4f0802d920c
[INFO] running `Command { std: "docker" "start" "-a" "1ae1e006b86022a8b04ac7cad32adb46e2d262eca247079cf6e4e4f0802d920c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1ae1e006b86022a8b04ac7cad32adb46e2d262eca247079cf6e4e4f0802d920c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1ae1e006b86022a8b04ac7cad32adb46e2d262eca247079cf6e4e4f0802d920c", kill_on_drop: false }`
[INFO] [stdout] 1ae1e006b86022a8b04ac7cad32adb46e2d262eca247079cf6e4e4f0802d920c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+48c9d93cf65d550d124c40108859fd993778c157" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fbc664bb31e73882d9e4ede52096cd01483d44bb9d8cc31ad68fd44bef17df96
[INFO] running `Command { std: "docker" "start" "-a" "fbc664bb31e73882d9e4ede52096cd01483d44bb9d8cc31ad68fd44bef17df96", 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<Index> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub fn update_state<F>(&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<Index> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub fn update_state<F>(&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: 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_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<Box<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: 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<F>(&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: 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<Box<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: 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<F>(&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.13s
[INFO] running `Command { std: "docker" "inspect" "fbc664bb31e73882d9e4ede52096cd01483d44bb9d8cc31ad68fd44bef17df96", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fbc664bb31e73882d9e4ede52096cd01483d44bb9d8cc31ad68fd44bef17df96", kill_on_drop: false }`
[INFO] [stdout] fbc664bb31e73882d9e4ede52096cd01483d44bb9d8cc31ad68fd44bef17df96
