[INFO] cloning repository https://github.com/Magowtham/trading_engine_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Magowtham/trading_engine_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMagowtham%2Ftrading_engine_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMagowtham%2Ftrading_engine_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7a19d0750b9101c0bee2dfe920be103f07ad3d2f [INFO] checking Magowtham/trading_engine_rust against master#426a60abc213b28a7c7198e475476b6e650d871f for pr-129199 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMagowtham%2Ftrading_engine_rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Magowtham/trading_engine_rust on toolchain 426a60abc213b28a7c7198e475476b6e650d871f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+426a60abc213b28a7c7198e475476b6e650d871f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Magowtham/trading_engine_rust [INFO] finished tweaking git repo https://github.com/Magowtham/trading_engine_rust [INFO] tweaked toml for git repo https://github.com/Magowtham/trading_engine_rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Magowtham/trading_engine_rust 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" "+426a60abc213b28a7c7198e475476b6e650d871f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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] checking Magowtham/trading_engine_rust against try#2c70eb47850052381670935f807d41647a7dc992 for pr-129199 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMagowtham%2Ftrading_engine_rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Magowtham/trading_engine_rust on toolchain 2c70eb47850052381670935f807d41647a7dc992 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c70eb47850052381670935f807d41647a7dc992" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Magowtham/trading_engine_rust [INFO] finished tweaking git repo https://github.com/Magowtham/trading_engine_rust [INFO] tweaked toml for git repo https://github.com/Magowtham/trading_engine_rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Magowtham/trading_engine_rust 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" "+2c70eb47850052381670935f807d41647a7dc992" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+2c70eb47850052381670935f807d41647a7dc992" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d6ff1e0fdc3749a5b12f60524ee01cbef53b87174cec55e76d6f387aec27ef0a [INFO] running `Command { std: "docker" "start" "-a" "d6ff1e0fdc3749a5b12f60524ee01cbef53b87174cec55e76d6f387aec27ef0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6ff1e0fdc3749a5b12f60524ee01cbef53b87174cec55e76d6f387aec27ef0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6ff1e0fdc3749a5b12f60524ee01cbef53b87174cec55e76d6f387aec27ef0a", kill_on_drop: false }` [INFO] [stdout] d6ff1e0fdc3749a5b12f60524ee01cbef53b87174cec55e76d6f387aec27ef0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+2c70eb47850052381670935f807d41647a7dc992" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab10b8658321afb2166288db53fefcaa20e03dcef17f17ce18111332e2e67f92 [INFO] running `Command { std: "docker" "start" "-a" "ab10b8658321afb2166288db53fefcaa20e03dcef17f17ce18111332e2e67f92", kill_on_drop: false }` [INFO] [stderr] Checking trading_engine_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/main.rs:82:42 [INFO] [stdout] | [INFO] [stdout] 82 | let limit=self.bids.get() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 83 | }, [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/main.rs:82:42 [INFO] [stdout] | [INFO] [stdout] 82 | let limit=self.bids.get() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 83 | }, [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `HashMap` [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 65 | struct OrderBook { [INFO] [stdout] 66 | asks:HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the following types would have to `impl` their required traits for this operation to be valid [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | struct Price { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | must implement `Eq` [INFO] [stdout] | must implement `Hash` [INFO] [stdout] ... [INFO] [stdout] 31 | struct Limit { [INFO] [stdout] | ^^^^^^^^^^^^ must implement `PartialEq` [INFO] [stdout] = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Limit` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 31 + #[derive(PartialEq)] [INFO] [stdout] 32 | struct Limit { [INFO] [stdout] | [INFO] [stdout] help: consider annotating `Price` with `#[derive(Eq, Hash, PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Eq, Hash, PartialEq)] [INFO] [stdout] 11 | struct Price { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `HashMap` [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 65 | struct OrderBook { [INFO] [stdout] 66 | asks:HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the following types would have to `impl` their required traits for this operation to be valid [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | struct Price { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | must implement `Eq` [INFO] [stdout] | must implement `Hash` [INFO] [stdout] ... [INFO] [stdout] 31 | struct Limit { [INFO] [stdout] | ^^^^^^^^^^^^ must implement `PartialEq` [INFO] [stdout] = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Limit` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 31 + #[derive(PartialEq)] [INFO] [stdout] 32 | struct Limit { [INFO] [stdout] | [INFO] [stdout] help: consider annotating `Price` with `#[derive(Eq, Hash, PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Eq, Hash, PartialEq)] [INFO] [stdout] 11 | struct Price { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `HashMap` [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 67 | bids:HashMap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the following types would have to `impl` their required traits for this operation to be valid [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | struct Price { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | must implement `Eq` [INFO] [stdout] | must implement `Hash` [INFO] [stdout] ... [INFO] [stdout] 31 | struct Limit { [INFO] [stdout] | ^^^^^^^^^^^^ must implement `PartialEq` [INFO] [stdout] = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Limit` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 31 + #[derive(PartialEq)] [INFO] [stdout] 32 | struct Limit { [INFO] [stdout] | [INFO] [stdout] help: consider annotating `Price` with `#[derive(Eq, Hash, PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Eq, Hash, PartialEq)] [INFO] [stdout] 11 | struct Price { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `HashMap` [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 67 | bids:HashMap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the following types would have to `impl` their required traits for this operation to be valid [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | struct Price { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | must implement `Eq` [INFO] [stdout] | must implement `Hash` [INFO] [stdout] ... [INFO] [stdout] 31 | struct Limit { [INFO] [stdout] | ^^^^^^^^^^^^ must implement `PartialEq` [INFO] [stdout] = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Limit` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 31 + #[derive(PartialEq)] [INFO] [stdout] 32 | struct Limit { [INFO] [stdout] | [INFO] [stdout] help: consider annotating `Price` with `#[derive(Eq, Hash, PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Eq, Hash, PartialEq)] [INFO] [stdout] 11 | struct Price { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Price: Eq` is not satisfied [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | -- in this derive macro expansion [INFO] [stdout] 65 | struct OrderBook { [INFO] [stdout] 66 | asks:HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `Price`, which is required by `HashMap: Eq` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Eq` is implemented for `HashMap` [INFO] [stdout] = note: required for `HashMap` to implement `Eq` [INFO] [stdout] note: required by a bound in `AssertParamIsEq` [INFO] [stdout] --> /rustc/2c70eb47850052381670935f807d41647a7dc992/library/core/src/cmp.rs:358:1 [INFO] [stdout] = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Price` with `#[derive(Eq)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Eq)] [INFO] [stdout] 11 | struct Price { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Price: Eq` is not satisfied [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | -- in this derive macro expansion [INFO] [stdout] 65 | struct OrderBook { [INFO] [stdout] 66 | asks:HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `Price`, which is required by `HashMap: Eq` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Eq` is implemented for `HashMap` [INFO] [stdout] = note: required for `HashMap` to implement `Eq` [INFO] [stdout] note: required by a bound in `AssertParamIsEq` [INFO] [stdout] --> /rustc/2c70eb47850052381670935f807d41647a7dc992/library/core/src/cmp.rs:358:1 [INFO] [stdout] = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Price` with `#[derive(Eq)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Eq)] [INFO] [stdout] 11 | struct Price { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Price: Hash` is not satisfied [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | -- in this derive macro expansion [INFO] [stdout] 65 | struct OrderBook { [INFO] [stdout] 66 | asks:HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Hash` is not implemented for `Price`, which is required by `HashMap: Eq` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Eq` is implemented for `HashMap` [INFO] [stdout] = note: required for `HashMap` to implement `Eq` [INFO] [stdout] note: required by a bound in `AssertParamIsEq` [INFO] [stdout] --> /rustc/2c70eb47850052381670935f807d41647a7dc992/library/core/src/cmp.rs:358:1 [INFO] [stdout] = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Price` with `#[derive(Hash)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Hash)] [INFO] [stdout] 11 | struct Price { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Price: Hash` is not satisfied [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | -- in this derive macro expansion [INFO] [stdout] 65 | struct OrderBook { [INFO] [stdout] 66 | asks:HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Hash` is not implemented for `Price`, which is required by `HashMap: Eq` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Eq` is implemented for `HashMap` [INFO] [stdout] = note: required for `HashMap` to implement `Eq` [INFO] [stdout] note: required by a bound in `AssertParamIsEq` [INFO] [stdout] --> /rustc/2c70eb47850052381670935f807d41647a7dc992/library/core/src/cmp.rs:358:1 [INFO] [stdout] = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Price` with `#[derive(Hash)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Hash)] [INFO] [stdout] 11 | struct Price { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Limit: Eq` is not satisfied [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | -- in this derive macro expansion [INFO] [stdout] 65 | struct OrderBook { [INFO] [stdout] 66 | asks:HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `Limit`, which is required by `HashMap: Eq` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Eq` is implemented for `HashMap` [INFO] [stdout] = note: required for `HashMap` to implement `Eq` [INFO] [stdout] note: required by a bound in `AssertParamIsEq` [INFO] [stdout] --> /rustc/2c70eb47850052381670935f807d41647a7dc992/library/core/src/cmp.rs:358:1 [INFO] [stdout] = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Limit: Eq` is not satisfied [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | -- in this derive macro expansion [INFO] [stdout] 65 | struct OrderBook { [INFO] [stdout] 66 | asks:HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `Limit`, which is required by `HashMap: Eq` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Eq` is implemented for `HashMap` [INFO] [stdout] = note: required for `HashMap` to implement `Eq` [INFO] [stdout] note: required by a bound in `AssertParamIsEq` [INFO] [stdout] --> /rustc/2c70eb47850052381670935f807d41647a7dc992/library/core/src/cmp.rs:358:1 [INFO] [stdout] = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `HashMap: Hash` is not satisfied [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | ---- in this derive macro expansion [INFO] [stdout] 65 | struct OrderBook { [INFO] [stdout] 66 | asks:HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Hash` is not implemented for `HashMap` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `HashMap: Hash` is not satisfied [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | ---- in this derive macro expansion [INFO] [stdout] 65 | struct OrderBook { [INFO] [stdout] 66 | asks:HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Hash` is not implemented for `HashMap` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `HashMap: Hash` is not satisfied [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | ---- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 67 | bids:HashMap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Hash` is not implemented for `HashMap` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `HashMap: Hash` is not satisfied [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Debug,PartialEq,Eq,Hash)] [INFO] [stdout] | ---- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 67 | bids:HashMap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Hash` is not implemented for `HashMap` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `get` exists for struct `HashMap`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:82:37 [INFO] [stdout] | [INFO] [stdout] 10 | struct Price { [INFO] [stdout] | ------------ doesn't satisfy `Price: Eq` or `Price: Hash` [INFO] [stdout] ... [INFO] [stdout] 82 | let limit=self.bids.get() [INFO] [stdout] | ^^^ method cannot be called on `HashMap` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Price: Eq` [INFO] [stdout] `Price: Hash` [INFO] [stdout] help: consider annotating `Price` with `#[derive(Eq, Hash, PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Eq, Hash, PartialEq)] [INFO] [stdout] 11 | struct Price { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `get` exists for struct `HashMap`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:82:37 [INFO] [stdout] | [INFO] [stdout] 10 | struct Price { [INFO] [stdout] | ------------ doesn't satisfy `Price: Eq` or `Price: Hash` [INFO] [stdout] ... [INFO] [stdout] 82 | let limit=self.bids.get() [INFO] [stdout] | ^^^ method cannot be called on `HashMap` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Price: Eq` [INFO] [stdout] `Price: Hash` [INFO] [stdout] help: consider annotating `Price` with `#[derive(Eq, Hash, PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 10 + #[derive(Eq, Hash, PartialEq)] [INFO] [stdout] 11 | struct Price { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0369, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0369, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trading_engine_rust` (bin "trading_engine_rust") due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `trading_engine_rust` (bin "trading_engine_rust" test) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "ab10b8658321afb2166288db53fefcaa20e03dcef17f17ce18111332e2e67f92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab10b8658321afb2166288db53fefcaa20e03dcef17f17ce18111332e2e67f92", kill_on_drop: false }` [INFO] [stdout] ab10b8658321afb2166288db53fefcaa20e03dcef17f17ce18111332e2e67f92