[INFO] cloning repository https://github.com/overrule/ICE_Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/overrule/ICE_Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foverrule%2FICE_Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foverrule%2FICE_Exchange'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5b60af5e49e60f9c104aae053a86b0f52119015f [INFO] checking overrule/ICE_Exchange against try#b2fb67b8b6007ced9ad3f3b752a6fec899e7859c for pr-138915 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foverrule%2FICE_Exchange" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/overrule/ICE_Exchange on toolchain b2fb67b8b6007ced9ad3f3b752a6fec899e7859c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/overrule/ICE_Exchange [INFO] finished tweaking git repo https://github.com/overrule/ICE_Exchange [INFO] tweaked toml for git repo https://github.com/overrule/ICE_Exchange written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/overrule/ICE_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" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded digest v0.10.5 [INFO] [stderr] Downloaded priority-queue v1.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41f08247d336ec8e55c14e21a58118e240b088821369b306fa806ef208f0ae46 [INFO] running `Command { std: "docker" "start" "-a" "41f08247d336ec8e55c14e21a58118e240b088821369b306fa806ef208f0ae46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41f08247d336ec8e55c14e21a58118e240b088821369b306fa806ef208f0ae46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41f08247d336ec8e55c14e21a58118e240b088821369b306fa806ef208f0ae46", kill_on_drop: false }` [INFO] [stdout] 41f08247d336ec8e55c14e21a58118e240b088821369b306fa806ef208f0ae46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 161229bf74d763613634c03470f93f4bc72f4bbbd708ec19ea1d2a14758f9154 [INFO] running `Command { std: "docker" "start" "-a" "161229bf74d763613634c03470f93f4bc72f4bbbd708ec19ea1d2a14758f9154", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling priority-queue v1.2.3 [INFO] [stderr] Checking block-buffer v0.10.3 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.5 [INFO] [stderr] Checking md-5 v0.10.5 [INFO] [stderr] Checking ICE_Exchange v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `orderbook` [INFO] [stdout] --> src/exchange/stock_future.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod orderbook; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `orderbook`, create file "src/exchange/stock_future/orderbook.rs" or "src/exchange/stock_future/orderbook/mod.rs" [INFO] [stdout] = note: if there is a `mod orderbook` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `orderbook` [INFO] [stdout] --> src/exchange/stock_future.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod orderbook; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `orderbook`, create file "src/exchange/stock_future/orderbook.rs" or "src/exchange/stock_future/orderbook/mod.rs" [INFO] [stdout] = note: if there is a `mod orderbook` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::stock` [INFO] [stdout] --> src/exchange/stock_future.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::stock::Stock; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `exchange::stock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Eq` [INFO] [stdout] --> src/contest_dates.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Exchange` [INFO] [stdout] --> src/exchange/stock_option.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | Exchange, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::stock` [INFO] [stdout] --> src/exchange/stock_future.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::stock::Stock; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `exchange::stock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Eq` [INFO] [stdout] --> src/contest_dates.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Exchange` [INFO] [stdout] --> src/exchange/stock_option.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | Exchange, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/exchange/stock_future.rs:27:58 [INFO] [stdout] | [INFO] [stdout] 27 | self.total_stock_obligation[tr.user1.user_id] -= tr.size; [INFO] [stdout] | ^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/exchange/stock_future.rs:27:58 [INFO] [stdout] | [INFO] [stdout] 27 | self.total_stock_obligation[tr.user1.user_id] -= tr.size; [INFO] [stdout] | ^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract-assign `u32` from `i32` [INFO] [stdout] --> src/exchange/stock_future.rs:27:55 [INFO] [stdout] | [INFO] [stdout] 27 | self.total_stock_obligation[tr.user1.user_id] -= tr.size; [INFO] [stdout] | ^^ no implementation for `i32 -= u32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SubAssign` is not implemented for `i32` [INFO] [stdout] = help: the following other types implement trait `SubAssign`: [INFO] [stdout] `i32` implements `SubAssign<&i32>` [INFO] [stdout] `i32` implements `SubAssign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/exchange/stock_future.rs:28:58 [INFO] [stdout] | [INFO] [stdout] 28 | self.total_stock_obligation[tr.user2.user_id] += tr.size; [INFO] [stdout] | ^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `u32` to `i32` [INFO] [stdout] --> src/exchange/stock_future.rs:28:55 [INFO] [stdout] | [INFO] [stdout] 28 | self.total_stock_obligation[tr.user2.user_id] += tr.size; [INFO] [stdout] | ^^ no implementation for `i32 += u32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `i32` [INFO] [stdout] = help: the following other types implement trait `AddAssign`: [INFO] [stdout] `i32` implements `AddAssign<&i32>` [INFO] [stdout] `i32` implements `AddAssign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract-assign `u32` from `i32` [INFO] [stdout] --> src/exchange/stock_future.rs:27:55 [INFO] [stdout] | [INFO] [stdout] 27 | self.total_stock_obligation[tr.user1.user_id] -= tr.size; [INFO] [stdout] | ^^ no implementation for `i32 -= u32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SubAssign` is not implemented for `i32` [INFO] [stdout] = help: the following other types implement trait `SubAssign`: [INFO] [stdout] `i32` implements `SubAssign<&i32>` [INFO] [stdout] `i32` implements `SubAssign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/exchange/stock_future.rs:28:58 [INFO] [stdout] | [INFO] [stdout] 28 | self.total_stock_obligation[tr.user2.user_id] += tr.size; [INFO] [stdout] | ^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `u32` to `i32` [INFO] [stdout] --> src/exchange/stock_future.rs:28:55 [INFO] [stdout] | [INFO] [stdout] 28 | self.total_stock_obligation[tr.user2.user_id] += tr.size; [INFO] [stdout] | ^^ no implementation for `i32 += u32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `i32` [INFO] [stdout] = help: the following other types implement trait `AddAssign`: [INFO] [stdout] `i32` implements `AddAssign<&i32>` [INFO] [stdout] `i32` implements `AddAssign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.trade_ptr` as mutable more than once at a time [INFO] [stdout] --> src/orderbook.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 103 | let update_bid = self.trade_ptr.get_mut(&best_bid.tradeID).unwrap(); [INFO] [stdout] | -------------- first mutable borrow occurs here [INFO] [stdout] 104 | let update_ask = self.trade_ptr.get_mut(&best_ask.tradeID).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] 105 | update_ask.user_order.filled += trade_qty; [INFO] [stdout] 106 | update_bid.user_order.filled += trade_qty; [INFO] [stdout] | ----------------------------------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.trade_ptr` as mutable more than once at a time [INFO] [stdout] --> src/orderbook.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 103 | let update_bid = self.trade_ptr.get_mut(&best_bid.tradeID).unwrap(); [INFO] [stdout] | -------------- first mutable borrow occurs here [INFO] [stdout] 104 | let update_ask = self.trade_ptr.get_mut(&best_ask.tradeID).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] 105 | update_ask.user_order.filled += trade_qty; [INFO] [stdout] 106 | update_bid.user_order.filled += trade_qty; [INFO] [stdout] | ----------------------------------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0499, E0583. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0499, E0583. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ICE_Exchange` (bin "ICE_Exchange") due to 7 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ICE_Exchange` (bin "ICE_Exchange" test) due to 7 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "161229bf74d763613634c03470f93f4bc72f4bbbd708ec19ea1d2a14758f9154", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "161229bf74d763613634c03470f93f4bc72f4bbbd708ec19ea1d2a14758f9154", kill_on_drop: false }` [INFO] [stdout] 161229bf74d763613634c03470f93f4bc72f4bbbd708ec19ea1d2a14758f9154