[INFO] cloning repository https://github.com/brandonblock/crabbux [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brandonblock/crabbux" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrandonblock%2Fcrabbux", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrandonblock%2Fcrabbux'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 208bdcb009aa5b00aa218da0db5a2ab55af9b0fc [INFO] checking brandonblock/crabbux against try#b8ee37b59c6e1f39bae18b85e057975ab0d89308 for pr-139587-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrandonblock%2Fcrabbux" "/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/brandonblock/crabbux on toolchain b8ee37b59c6e1f39bae18b85e057975ab0d89308 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b8ee37b59c6e1f39bae18b85e057975ab0d89308" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/brandonblock/crabbux [INFO] finished tweaking git repo https://github.com/brandonblock/crabbux [INFO] tweaked toml for git repo https://github.com/brandonblock/crabbux written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/brandonblock/crabbux 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" "+b8ee37b59c6e1f39bae18b85e057975ab0d89308" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+b8ee37b59c6e1f39bae18b85e057975ab0d89308" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6bd96d9c28b1997e5d383e89f83ff455231d5a25cd3e11baaa25121ecc25c25a [INFO] running `Command { std: "docker" "start" "-a" "6bd96d9c28b1997e5d383e89f83ff455231d5a25cd3e11baaa25121ecc25c25a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bd96d9c28b1997e5d383e89f83ff455231d5a25cd3e11baaa25121ecc25c25a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bd96d9c28b1997e5d383e89f83ff455231d5a25cd3e11baaa25121ecc25c25a", kill_on_drop: false }` [INFO] [stdout] 6bd96d9c28b1997e5d383e89f83ff455231d5a25cd3e11baaa25121ecc25c25a [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+b8ee37b59c6e1f39bae18b85e057975ab0d89308" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cfbf4b09075b92daba76b8430199e092e0de608f1b30f09317b59c1620097b3c [INFO] running `Command { std: "docker" "start" "-a" "cfbf4b09075b92daba76b8430199e092e0de608f1b30f09317b59c1620097b3c", kill_on_drop: false }` [INFO] [stderr] Checking crabbux v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `matching::MatchingEngine` [INFO] [stdout] --> src/core.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use matching::MatchingEngine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `matching::MatchingEngine` [INFO] [stdout] --> src/core.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use matching::MatchingEngine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/core/matching.rs:98:23 [INFO] [stdout] | [INFO] [stdout] 98 | Some((price, orderbook_entry)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orderbook_entry` [INFO] [stdout] --> src/core/matching.rs:98:30 [INFO] [stdout] | [INFO] [stdout] 98 | Some((price, orderbook_entry)) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/matching.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut remaining_amount = order.amount; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/matching.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut matches = vec![]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ordinal`, `bids`, `asks`, and `history` are never read [INFO] [stdout] --> src/core/matching.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MatchingEngine { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 12 | /// The last sequence number [INFO] [stdout] 13 | pub ordinal: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub bids: BTreeMap>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | /// The "Ask" or "Sell" side of the order book. Ordered by ordinal number. [INFO] [stdout] 18 | pub asks: BTreeMap>, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub history: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MatchingEngine` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `process`, and `match_order` are never used [INFO] [stdout] --> src/core/matching.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl MatchingEngine { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 25 | /// Creates a new [`MatchingEngine`] with an ordinal of 0 and empty books [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn process(&mut self, order: Order) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn match_order<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Buy` and `Sell` are never constructed [INFO] [stdout] --> src/core/types.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Side { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 6 | /// Want to buy [INFO] [stdout] 7 | Buy, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | /// Want to sell [INFO] [stdout] 9 | Sell, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Side` 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: method `into_partial_order` is never used [INFO] [stdout] --> src/core/types.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Order { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn into_partial_order(self, ordinal: u64, remaining: u64) -> PartialOrder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `take_from` is never used [INFO] [stdout] --> src/core/types.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl PartialOrder { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn take_from(pos: &mut PartialOrder, take: u64, price: u64) -> PartialOrder { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account` and `amount` are never read [INFO] [stdout] --> src/tx.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | Deposit { account: String, amount: u64 }, [INFO] [stdout] | ------- ^^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Tx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account` and `amount` are never read [INFO] [stdout] --> src/tx.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | Withdraw { account: String, amount: u64 }, [INFO] [stdout] | -------- ^^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Tx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/core/matching.rs:98:23 [INFO] [stdout] | [INFO] [stdout] 98 | Some((price, orderbook_entry)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orderbook_entry` [INFO] [stdout] --> src/core/matching.rs:98:30 [INFO] [stdout] | [INFO] [stdout] 98 | Some((price, orderbook_entry)) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/matching.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut remaining_amount = order.amount; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/matching.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut matches = vec![]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `take_from` is never used [INFO] [stdout] --> src/core/types.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl PartialOrder { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn take_from(pos: &mut PartialOrder, take: u64, price: u64) -> PartialOrder { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account` and `amount` are never read [INFO] [stdout] --> src/tx.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | Deposit { account: String, amount: u64 }, [INFO] [stdout] | ------- ^^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Tx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account` and `amount` are never read [INFO] [stdout] --> src/tx.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | Withdraw { account: String, amount: u64 }, [INFO] [stdout] | -------- ^^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Tx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "cfbf4b09075b92daba76b8430199e092e0de608f1b30f09317b59c1620097b3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfbf4b09075b92daba76b8430199e092e0de608f1b30f09317b59c1620097b3c", kill_on_drop: false }` [INFO] [stdout] cfbf4b09075b92daba76b8430199e092e0de608f1b30f09317b59c1620097b3c