[INFO] cloning repository https://github.com/dxganta/matching-engine
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dxganta/matching-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdxganta%2Fmatching-engine", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdxganta%2Fmatching-engine'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a0654574d070c4cd0ad1a5024e5ca320b613397b
[INFO] checking dxganta/matching-engine against 79c0559184f27f4433a6fbc260b950d06d4a4889 for pr-162233-crater-rollup
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdxganta%2Fmatching-engine" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dxganta/matching-engine
[INFO] finished tweaking git repo https://github.com/dxganta/matching-engine
[INFO] tweaked toml for git repo https://github.com/dxganta/matching-engine written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dxganta/matching-engine on toolchain 79c0559184f27f4433a6fbc260b950d06d4a4889
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+79c0559184f27f4433a6fbc260b950d06d4a4889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dxganta/matching-engine 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" "+79c0559184f27f4433a6fbc260b950d06d4a4889" "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-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 980bfd619406abd30d6bfd33dfafd51f4d0f74836d204ec6c8dd38cd54584c7d
[INFO] running `Command { std: "docker" "start" "980bfd619406abd30d6bfd33dfafd51f4d0f74836d204ec6c8dd38cd54584c7d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "980bfd619406abd30d6bfd33dfafd51f4d0f74836d204ec6c8dd38cd54584c7d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "980bfd619406abd30d6bfd33dfafd51f4d0f74836d204ec6c8dd38cd54584c7d" "/opt/rustwide/cargo-home/bin/cargo" "+79c0559184f27f4433a6fbc260b950d06d4a4889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "980bfd619406abd30d6bfd33dfafd51f4d0f74836d204ec6c8dd38cd54584c7d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "980bfd619406abd30d6bfd33dfafd51f4d0f74836d204ec6c8dd38cd54584c7d" "/opt/rustwide/cargo-home/bin/cargo" "+79c0559184f27f4433a6fbc260b950d06d4a4889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking matching-engine v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `order`
[INFO] [stdout]  --> src/main.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let order = Order::default();
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_order`
[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`
[INFO] [stdout]  --> src/main.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let order = Order::default();
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_order`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBook` is never constructed
[INFO] [stdout]  --> src/order_book.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct OrderBook {
[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 `OrderBook` is never constructed
[INFO] [stdout]  --> src/order_book.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct OrderBook {
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `add_buy_order`, `add_sell_order`, `remove_buy_order`, `remove_sell_order`, and `process_limit_buy` are never used
[INFO] [stdout]   --> src/order_book.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl OrderBook {
[INFO] [stdout]    | -------------- methods in this implementation
[INFO] [stdout] 13 |     // add a buy order to the order book
[INFO] [stdout] 14 |     fn add_buy_order(&mut self, order:Order) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     fn add_sell_order(&mut self, order:Order) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     fn remove_buy_order(&mut self, ind:usize) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 |     fn remove_sell_order(&mut self, ind:usize) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     fn process_limit_buy(&mut self, mut order:Order) -> Vec<Trade> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `amount`, `price`, `id`, and `side` are never read
[INFO] [stdout]  --> src/order_book/order.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct Order {
[INFO] [stdout]   |            ----- fields in this struct
[INFO] [stdout] 4 |     pub amount: u64,
[INFO] [stdout]   |         ^^^^^^
[INFO] [stdout] 5 |     pub price: u64,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout] 6 |     pub id : String,
[INFO] [stdout]   |         ^^
[INFO] [stdout] 7 |     pub side : i8
[INFO] [stdout]   |         ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Order` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Trade` is never constructed
[INFO] [stdout]  --> src/order_book/trade.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub struct Trade {
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `add_buy_order`, `add_sell_order`, `remove_buy_order`, `remove_sell_order`, and `process_limit_buy` are never used
[INFO] [stdout]   --> src/order_book.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl OrderBook {
[INFO] [stdout]    | -------------- methods in this implementation
[INFO] [stdout] 13 |     // add a buy order to the order book
[INFO] [stdout] 14 |     fn add_buy_order(&mut self, order:Order) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     fn add_sell_order(&mut self, order:Order) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     fn remove_buy_order(&mut self, ind:usize) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 |     fn remove_sell_order(&mut self, ind:usize) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     fn process_limit_buy(&mut self, mut order:Order) -> Vec<Trade> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]  --> src/order_book/trade.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | impl Trade {
[INFO] [stdout]   | ---------- associated function in this implementation
[INFO] [stdout] 9 |     pub fn new(taker_order_id:String, maker_order_id:String, amount:u64, price:u64) -> Trade {
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `amount`, `price`, `id`, and `side` are never read
[INFO] [stdout]  --> src/order_book/order.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct Order {
[INFO] [stdout]   |            ----- fields in this struct
[INFO] [stdout] 4 |     pub amount: u64,
[INFO] [stdout]   |         ^^^^^^
[INFO] [stdout] 5 |     pub price: u64,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout] 6 |     pub id : String,
[INFO] [stdout]   |         ^^
[INFO] [stdout] 7 |     pub side : i8
[INFO] [stdout]   |         ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Order` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Trade` is never constructed
[INFO] [stdout]  --> src/order_book/trade.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub struct Trade {
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]  --> src/order_book/trade.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | impl Trade {
[INFO] [stdout]   | ---------- associated function in this implementation
[INFO] [stdout] 9 |     pub fn new(taker_order_id:String, maker_order_id:String, amount:u64, price:u64) -> Trade {
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.05s
[INFO] running `Command { std: "docker" "inspect" "980bfd619406abd30d6bfd33dfafd51f4d0f74836d204ec6c8dd38cd54584c7d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "980bfd619406abd30d6bfd33dfafd51f4d0f74836d204ec6c8dd38cd54584c7d", kill_on_drop: false }`
[INFO] [stdout] 980bfd619406abd30d6bfd33dfafd51f4d0f74836d204ec6c8dd38cd54584c7d
