[INFO] cloning repository https://github.com/connorwstein/exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/connorwstein/exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fconnorwstein%2Fexchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fconnorwstein%2Fexchange'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 680e880e82c8faa753b2b359fcf89eb50348115c [INFO] testing connorwstein/exchange against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fconnorwstein%2Fexchange" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/connorwstein/exchange on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/connorwstein/exchange [INFO] finished tweaking git repo https://github.com/connorwstein/exchange [INFO] tweaked toml for git repo https://github.com/connorwstein/exchange written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/connorwstein/exchange already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 898b0a32c7602473b73ec1f9eff8a5513ed869875f586799082f4faad66d928c [INFO] running `Command { std: "docker" "start" "-a" "898b0a32c7602473b73ec1f9eff8a5513ed869875f586799082f4faad66d928c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "898b0a32c7602473b73ec1f9eff8a5513ed869875f586799082f4faad66d928c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "898b0a32c7602473b73ec1f9eff8a5513ed869875f586799082f4faad66d928c", kill_on_drop: false }` [INFO] [stdout] 898b0a32c7602473b73ec1f9eff8a5513ed869875f586799082f4faad66d928c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5861f0285748887316b3a4fa993435ea072eed6d12acf393d6487817209421f0 [INFO] running `Command { std: "docker" "start" "-a" "5861f0285748887316b3a4fa993435ea072eed6d12acf393d6487817209421f0", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.64 [INFO] [stderr] Compiling futures v0.1.29 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling serde v1.0.102 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling regex-syntax v0.6.12 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling lock_api v0.3.1 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling hyper v0.12.35 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling indexmap v1.3.0 [INFO] [stderr] Compiling url v2.1.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling tokio-executor v0.1.8 [INFO] [stderr] Compiling tokio-sync v0.1.7 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling regex v1.3.1 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling tokio-timer v0.2.11 [INFO] [stderr] Compiling tokio-current-thread v0.1.6 [INFO] [stderr] Compiling crossbeam-deque v0.7.1 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling tokio-threadpool v0.1.16 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling env_logger v0.5.13 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling http v0.1.19 [INFO] [stderr] Compiling tokio-buf v0.1.1 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling rand v0.7.2 [INFO] [stderr] Compiling tokio-reactor v0.1.10 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling serde_derive v1.0.102 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling diesel v1.4.3 [INFO] [stderr] Compiling serde_json v1.0.41 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling exchange v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `order_request` [INFO] [stdout] --> src/main.rs:146:25 [INFO] [stdout] | [INFO] [stdout] 146 | Err(order_request) => Box::new(future::ok( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/main.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | let payload = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/main.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let payload = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_order` [INFO] [stdout] --> src/order_book.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn find_order(&self, t: OpenLimitOrder) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_order` [INFO] [stdout] --> src/order_book.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn remove_order(&mut self, t: OpenLimitOrder) -> Result<&'static str, &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/order_book.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | panic!(result); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{:?}" format string to use the Debug implementation of `Result` [INFO] [stdout] | [INFO] [stdout] 198 | panic!("{:?}", result); [INFO] [stdout] | +++++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 198 | std::panic::panic_any(result); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/order_book.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | / self.add_order(OpenLimitOrder { [INFO] [stdout] 218 | | id: last_order.id, [INFO] [stdout] 219 | | price: last_order.price, [INFO] [stdout] 220 | | side: last_order.side, [INFO] [stdout] 221 | | amount: remaining.abs() as u32, [INFO] [stdout] 222 | | symbol: last_order.symbol, [INFO] [stdout] 223 | | }); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 50.74s [INFO] running `Command { std: "docker" "inspect" "5861f0285748887316b3a4fa993435ea072eed6d12acf393d6487817209421f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5861f0285748887316b3a4fa993435ea072eed6d12acf393d6487817209421f0", kill_on_drop: false }` [INFO] [stdout] 5861f0285748887316b3a4fa993435ea072eed6d12acf393d6487817209421f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4faadb504ce3af4a044a73199d7a0977f38d331df5d645b64fbd0e5fd98679ee [INFO] running `Command { std: "docker" "start" "-a" "4faadb504ce3af4a044a73199d7a0977f38d331df5d645b64fbd0e5fd98679ee", 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] [stderr] Compiling exchange v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `FillResult` [INFO] [stdout] --> src/order_book.rs:258:29 [INFO] [stdout] | [INFO] [stdout] 258 | use crate::order_book::{FillResult, OpenLimitOrder, OrderBook, Side, Symbol}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/order_book.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_request` [INFO] [stdout] --> src/main.rs:146:25 [INFO] [stdout] | [INFO] [stdout] 146 | Err(order_request) => Box::new(future::ok( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/main.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | let payload = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/main.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let payload = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/order_book.rs:450:26 [INFO] [stdout] | [INFO] [stdout] 450 | fn create_order_book(side: Side, orders: Vec) -> OrderBook { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/order_book.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | panic!(result); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{:?}" format string to use the Debug implementation of `Result` [INFO] [stdout] | [INFO] [stdout] 198 | panic!("{:?}", result); [INFO] [stdout] | +++++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 198 | std::panic::panic_any(result); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/order_book.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | / self.add_order(OpenLimitOrder { [INFO] [stdout] 218 | | id: last_order.id, [INFO] [stdout] 219 | | price: last_order.price, [INFO] [stdout] 220 | | side: last_order.side, [INFO] [stdout] 221 | | amount: remaining.abs() as u32, [INFO] [stdout] 222 | | symbol: last_order.symbol, [INFO] [stdout] 223 | | }); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.84s [INFO] running `Command { std: "docker" "inspect" "4faadb504ce3af4a044a73199d7a0977f38d331df5d645b64fbd0e5fd98679ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4faadb504ce3af4a044a73199d7a0977f38d331df5d645b64fbd0e5fd98679ee", kill_on_drop: false }` [INFO] [stdout] 4faadb504ce3af4a044a73199d7a0977f38d331df5d645b64fbd0e5fd98679ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] be42450815911243206ac7f261741abeec234d6f313fdecdb34a33da269c2da6 [INFO] running `Command { std: "docker" "start" "-a" "be42450815911243206ac7f261741abeec234d6f313fdecdb34a33da269c2da6", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `FillResult` [INFO] [stderr] --> src/order_book.rs:258:29 [INFO] [stderr] | [INFO] [stderr] 258 | use crate::order_book::{FillResult, OpenLimitOrder, OrderBook, Side, Symbol}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/order_book.rs:306:10 [INFO] [stderr] | [INFO] [stderr] 306 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `order_request` [INFO] [stderr] --> src/main.rs:146:25 [INFO] [stderr] | [INFO] [stderr] 146 | Err(order_request) => Box::new(future::ok( [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_request` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `payload` [INFO] [stderr] --> src/main.rs:156:17 [INFO] [stderr] | [INFO] [stderr] 156 | let payload = String::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `payload` [INFO] [stderr] --> src/main.rs:172:17 [INFO] [stderr] | [INFO] [stderr] 172 | let payload = String::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `side` [INFO] [stderr] --> src/order_book.rs:450:26 [INFO] [stderr] | [INFO] [stderr] 450 | fn create_order_book(side: Side, orders: Vec) -> OrderBook { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/order_book.rs:198:32 [INFO] [stderr] | [INFO] [stderr] 198 | panic!(result); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{:?}" format string to use the Debug implementation of `Result` [INFO] [stderr] | [INFO] [stderr] 198 | panic!("{:?}", result); [INFO] [stderr] | +++++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 198 | std::panic::panic_any(result); [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/order_book.rs:217:9 [INFO] [stderr] | [INFO] [stderr] 217 | / self.add_order(OpenLimitOrder { [INFO] [stderr] 218 | | id: last_order.id, [INFO] [stderr] 219 | | price: last_order.price, [INFO] [stderr] 220 | | side: last_order.side, [INFO] [stderr] 221 | | amount: remaining.abs() as u32, [INFO] [stderr] 222 | | symbol: last_order.symbol, [INFO] [stderr] 223 | | }); [INFO] [stderr] | |___________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `exchange` (bin "exchange" test) generated 8 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/exchange-f5e06a0e9157db56) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test order_book::tests::test_average_price ... ok [INFO] [stdout] test order_book::tests::test_order_fill_split ... ok [INFO] [stdout] test order_book::tests::test_order_fill ... ok [INFO] [stdout] test order_book::tests::test_orders ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "be42450815911243206ac7f261741abeec234d6f313fdecdb34a33da269c2da6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be42450815911243206ac7f261741abeec234d6f313fdecdb34a33da269c2da6", kill_on_drop: false }` [INFO] [stdout] be42450815911243206ac7f261741abeec234d6f313fdecdb34a33da269c2da6