[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 master#d7bd9cd469ff6871420007f091ef52fc32d2ca99 for pr-121417 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fconnorwstein%2Fexchange" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/connorwstein/exchange on toolchain d7bd9cd469ff6871420007f091ef52fc32d2ca99 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d7bd9cd469ff6871420007f091ef52fc32d2ca99" "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-7-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d7bd9cd469ff6871420007f091ef52fc32d2ca99" "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 [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing connorwstein/exchange against try#393ef12c970fbc7f294cd96c35cb76f9591bc1d6 for pr-121417 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fconnorwstein%2Fexchange" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/connorwstein/exchange on toolchain 393ef12c970fbc7f294cd96c35cb76f9591bc1d6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "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-7-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "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 [ERROR] error running command: no output for 300 seconds [INFO] testing connorwstein/exchange against try#393ef12c970fbc7f294cd96c35cb76f9591bc1d6 for pr-121417 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fconnorwstein%2Fexchange" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/connorwstein/exchange on toolchain 393ef12c970fbc7f294cd96c35cb76f9591bc1d6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "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-7-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f5e5e1a88103f0965268f774abae1aedeb572bb6029a1670a53b3357943aa49 [INFO] running `Command { std: "docker" "start" "-a" "3f5e5e1a88103f0965268f774abae1aedeb572bb6029a1670a53b3357943aa49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f5e5e1a88103f0965268f774abae1aedeb572bb6029a1670a53b3357943aa49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f5e5e1a88103f0965268f774abae1aedeb572bb6029a1670a53b3357943aa49", kill_on_drop: false }` [INFO] [stdout] 3f5e5e1a88103f0965268f774abae1aedeb572bb6029a1670a53b3357943aa49 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d491c57508e84735cd9aa8e6a0e23c36522c24f01ec09f8ef1c6c7cc158dfbfd [INFO] running `Command { std: "docker" "start" "-a" "d491c57508e84735cd9aa8e6a0e23c36522c24f01ec09f8ef1c6c7cc158dfbfd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.64 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling futures v0.1.29 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling byteorder v1.3.2 [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 scopeguard v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling smallvec v0.6.10 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Compiling lock_api v0.3.1 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling serde v1.0.102 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling indexmap v1.3.0 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling unicode-normalization v0.1.8 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling c2-chacha v0.2.3 [INFO] [stderr] Compiling hyper v0.12.35 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling regex-syntax v0.6.12 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling aho-corasick v0.7.6 [INFO] [stderr] Compiling try-lock v0.2.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling crossbeam-deque v0.7.1 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling http v0.1.19 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling rand v0.7.2 [INFO] [stderr] Compiling tokio-executor v0.1.8 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling tokio-sync v0.1.7 [INFO] [stderr] Compiling tokio-buf v0.1.1 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling tokio-current-thread v0.1.6 [INFO] [stderr] Compiling tokio-threadpool v0.1.16 [INFO] [stderr] Compiling tokio-timer v0.2.11 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling tokio-reactor v0.1.10 [INFO] [stderr] Compiling termcolor v1.0.5 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling url v2.1.0 [INFO] [stderr] Compiling regex v1.3.1 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling env_logger v0.5.13 [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: the item `String` is imported redundantly [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/order_book.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [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] = note: `#[warn(unused_variables)]` on by default [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: `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] [INFO] [stdout] warning: methods `find_order` and `remove_order` are never used [INFO] [stdout] --> src/order_book.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl OrderBook { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn find_order(&self, t: OpenLimitOrder) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn remove_order(&mut self, t: OpenLimitOrder) -> Result<&'static str, &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 217 | let _ = self.add_order(OpenLimitOrder { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/order_book.rs:242:46 [INFO] [stdout] | [INFO] [stdout] 242 | let mut orders_used = orders_used.clone().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[OpenLimitOrder]` does not implement `Clone`, so calling `clone` on `&[OpenLimitOrder]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.39s [INFO] running `Command { std: "docker" "inspect" "d491c57508e84735cd9aa8e6a0e23c36522c24f01ec09f8ef1c6c7cc158dfbfd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d491c57508e84735cd9aa8e6a0e23c36522c24f01ec09f8ef1c6c7cc158dfbfd", kill_on_drop: false }` [INFO] [stdout] d491c57508e84735cd9aa8e6a0e23c36522c24f01ec09f8ef1c6c7cc158dfbfd [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a45e5a4dad1175c4008578518bb7597f393ad58ba0807ffac36405d45d327bb [INFO] running `Command { std: "docker" "start" "-a" "0a45e5a4dad1175c4008578518bb7597f393ad58ba0807ffac36405d45d327bb", kill_on_drop: false }` [INFO] [stderr] Compiling exchange v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/order_book.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] [INFO] [stdout] [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] [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: `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] = 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: `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] [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: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 217 | let _ = self.add_order(OpenLimitOrder { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/order_book.rs:242:46 [INFO] [stdout] | [INFO] [stdout] 242 | let mut orders_used = orders_used.clone().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[OpenLimitOrder]` does not implement `Clone`, so calling `clone` on `&[OpenLimitOrder]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.73s [INFO] running `Command { std: "docker" "inspect" "0a45e5a4dad1175c4008578518bb7597f393ad58ba0807ffac36405d45d327bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a45e5a4dad1175c4008578518bb7597f393ad58ba0807ffac36405d45d327bb", kill_on_drop: false }` [INFO] [stdout] 0a45e5a4dad1175c4008578518bb7597f393ad58ba0807ffac36405d45d327bb [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9217b551f365ff55818afd13da46d533208600d56413066a6583fa51e1b30d8f [INFO] running `Command { std: "docker" "start" "-a" "9217b551f365ff55818afd13da46d533208600d56413066a6583fa51e1b30d8f", kill_on_drop: false }` [INFO] [stderr] warning: the item `String` is imported redundantly [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use std::string::String; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:115:13 [INFO] [stderr] | [INFO] [stderr] = note: the item `String` is already defined here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the item `Vec` is imported redundantly [INFO] [stderr] --> src/main.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use std::vec::Vec; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:115:13 [INFO] [stderr] | [INFO] [stderr] = note: the item `Vec` is already defined here [INFO] [stderr] [INFO] [stderr] warning: the item `Box` is imported redundantly [INFO] [stderr] --> src/order_book.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::boxed::Box; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:115:13 [INFO] [stderr] | [INFO] [stderr] = note: the item `Box` is already defined here [INFO] [stderr] [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] 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: `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] = 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: `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] 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: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [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: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 217 | let _ = self.add_order(OpenLimitOrder { [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/order_book.rs:242:46 [INFO] [stderr] | [INFO] [stderr] 242 | let mut orders_used = orders_used.clone().to_vec(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `[OpenLimitOrder]` does not implement `Clone`, so calling `clone` on `&[OpenLimitOrder]` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `exchange` (bin "exchange" test) generated 12 warnings (run `cargo fix --bin "exchange" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/exchange-d7ec0f9d1d978351) [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" "9217b551f365ff55818afd13da46d533208600d56413066a6583fa51e1b30d8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9217b551f365ff55818afd13da46d533208600d56413066a6583fa51e1b30d8f", kill_on_drop: false }` [INFO] [stdout] 9217b551f365ff55818afd13da46d533208600d56413066a6583fa51e1b30d8f