[INFO] cloning repository https://github.com/asher09/exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/asher09/exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fasher09%2Fexchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fasher09%2Fexchange'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e1e220c19c917477f58c6342e8981d6a5106bb37 [INFO] checking asher09/exchange against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fasher09%2Fexchange" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/asher09/exchange [INFO] finished tweaking git repo https://github.com/asher09/exchange [INFO] tweaked toml for git repo https://github.com/asher09/exchange written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/asher09/exchange on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/asher09/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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8d51064f2b717519400d8e5595fba8ffe23722553f102b39b23696cc271eb027 [INFO] running `Command { std: "docker" "start" "-a" "8d51064f2b717519400d8e5595fba8ffe23722553f102b39b23696cc271eb027", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8d51064f2b717519400d8e5595fba8ffe23722553f102b39b23696cc271eb027", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d51064f2b717519400d8e5595fba8ffe23722553f102b39b23696cc271eb027", kill_on_drop: false }` [INFO] [stdout] 8d51064f2b717519400d8e5595fba8ffe23722553f102b39b23696cc271eb027 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae110ec2b1299d8009fda3b01ec2c70c95e8e9000558c8fd6c51e7a82a1ad6b1 [INFO] running `Command { std: "docker" "start" "-a" "ae110ec2b1299d8009fda3b01ec2c70c95e8e9000558c8fd6c51e7a82a1ad6b1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking brotli-decompressor v5.0.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Checking bytestring v1.4.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking actix-service v2.0.3 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Checking tokio v1.47.0 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking impl-more v0.1.9 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking brotli v8.0.1 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking actix-http v3.11.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking actix-web v4.11.0 [INFO] [stderr] Checking week-3 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `quantity` in this scope [INFO] [stdout] --> src/orderbook.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | qty: quantity, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `quantity` in this scope [INFO] [stdout] --> src/orderbook.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | qty: quantity, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Depth` in this scope [INFO] [stdout] --> src/orderbook.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_depth(&self) -> Depth { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::output::Depth; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/main.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | ... let orderbook = Arc::new(Mutex::Orderbook::new()); // Arc- becomes accessible to all the threads | Mutex- threads will lock before ... [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/main.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 15 | ... let orderbook = Arc::new(Mutex::Orderbook::new()); // Arc- becomes accessible to all the threads | Mutex- threads will lock before ... [INFO] [stdout] | ^^^^^ use of undeclared type `Mutex` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::orderbook::Orderbook; [INFO] [stdout] | [INFO] [stdout] help: if you import `Orderbook`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 15 - let orderbook = Arc::new(Mutex::Orderbook::new()); // Arc- becomes accessible to all the threads | Mutex- threads will lock before updating [INFO] [stdout] 15 + let orderbook = Arc::new(Orderbook::new()); // Arc- becomes accessible to all the threads | Mutex- threads will lock before updating [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orderbook::Orderbook` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{orderbook::Orderbook, routes::{create_order, delete_order, get_order}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/routes.rs:3:70 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{input::{CreateOrderInput, DeleteOrderInput}, orderbook::{self, Orderbook}, output::{CreateOrderResponse, DeleteOrderResponse,... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/orderbook.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | if(side == Side::Buy) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - if(side == Side::Buy) { [INFO] [stdout] 29 + if side == Side::Buy { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `quantity` in this scope [INFO] [stdout] --> src/orderbook.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | qty: quantity, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `quantity` in this scope [INFO] [stdout] --> src/orderbook.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | qty: quantity, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Depth` in this scope [INFO] [stdout] --> src/orderbook.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_depth(&self) -> Depth { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::output::Depth; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/main.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | ... let orderbook = Arc::new(Mutex::Orderbook::new()); // Arc- becomes accessible to all the threads | Mutex- threads will lock before ... [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/main.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 15 | ... let orderbook = Arc::new(Mutex::Orderbook::new()); // Arc- becomes accessible to all the threads | Mutex- threads will lock before ... [INFO] [stdout] | ^^^^^ use of undeclared type `Mutex` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::orderbook::Orderbook; [INFO] [stdout] | [INFO] [stdout] help: if you import `Orderbook`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 15 - let orderbook = Arc::new(Mutex::Orderbook::new()); // Arc- becomes accessible to all the threads | Mutex- threads will lock before updating [INFO] [stdout] 15 + let orderbook = Arc::new(Orderbook::new()); // Arc- becomes accessible to all the threads | Mutex- threads will lock before updating [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orderbook::Orderbook` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{orderbook::Orderbook, routes::{create_order, delete_order, get_order}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/routes.rs:3:70 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{input::{CreateOrderInput, DeleteOrderInput}, orderbook::{self, Orderbook}, output::{CreateOrderResponse, DeleteOrderResponse,... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/orderbook.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | if(side == Side::Buy) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - if(side == Side::Buy) { [INFO] [stdout] 29 + if side == Side::Buy { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this method are incorrect [INFO] [stdout] --> src/routes.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | orderbook.create_order(price, quantity, user_id, side); [INFO] [stdout] | ^^^^^^^^^^^^ ----- ------- expected `u32`, found `String` [INFO] [stdout] | | [INFO] [stdout] | expected `u32`, found `f64` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/orderbook.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn create_order(&mut self, user_id: u32, qty: u32, price: u32, side: Side) { [INFO] [stdout] | ^^^^^^^^^^^^ ------------ ---------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orderbook` [INFO] [stdout] --> src/routes.rs:23:64 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn delete_order( Json(body): Json, orderbook: Data) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/routes.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let order_id = body.order_id; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Side` doesn't implement `Debug` [INFO] [stdout] --> src/input.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 8 | pub side: Side [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `Side` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `Side` or manually `impl Debug for Side` [INFO] [stdout] help: consider annotating `Side` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 12+ #[derive(Debug)] [INFO] [stdout] 13| pub enum Side { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this method are incorrect [INFO] [stdout] --> src/routes.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | orderbook.create_order(price, quantity, user_id, side); [INFO] [stdout] | ^^^^^^^^^^^^ ----- ------- expected `u32`, found `String` [INFO] [stdout] | | [INFO] [stdout] | expected `u32`, found `f64` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/orderbook.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn create_order(&mut self, user_id: u32, qty: u32, price: u32, side: Side) { [INFO] [stdout] | ^^^^^^^^^^^^ ------------ ---------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orderbook` [INFO] [stdout] --> src/routes.rs:23:64 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn delete_order( Json(body): Json, orderbook: Data) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/routes.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let order_id = body.order_id; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/orderbook.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | asks: Vec::new() [INFO] [stdout] | ^^^^^^^^^^ expected `HashMap>`, found `Vec<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap>` [INFO] [stdout] found struct `Vec<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Side` doesn't implement `Debug` [INFO] [stdout] --> src/input.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 8 | pub side: Side [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `Side` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `Side` or manually `impl Debug for Side` [INFO] [stdout] help: consider annotating `Side` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 12+ #[derive(Debug)] [INFO] [stdout] 13| pub enum Side { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `order_id_index` on type `&mut Orderbook` [INFO] [stdout] --> src/orderbook.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | let order_id = self.order_id_index; [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `bids`, `asks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `order_id_index` on type `&mut Orderbook` [INFO] [stdout] --> src/orderbook.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | self.order_id_index += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `bids`, `asks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/orderbook.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | asks: Vec::new() [INFO] [stdout] | ^^^^^^^^^^ expected `HashMap>`, found `Vec<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap>` [INFO] [stdout] found struct `Vec<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `order_id_index` on type `&mut Orderbook` [INFO] [stdout] --> src/orderbook.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | let order_id = self.order_id_index; [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `bids`, `asks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `order_id_index` on type `&mut Orderbook` [INFO] [stdout] --> src/orderbook.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | self.order_id_index += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `bids`, `asks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0433, E0609. [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, E0412, E0425, E0433, E0609. [INFO] [stdout] [INFO] [stderr] error: could not compile `week-3` (bin "week-3" test) due to 10 previous errors; 5 warnings emitted [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `week-3` (bin "week-3") due to 10 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ae110ec2b1299d8009fda3b01ec2c70c95e8e9000558c8fd6c51e7a82a1ad6b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae110ec2b1299d8009fda3b01ec2c70c95e8e9000558c8fd6c51e7a82a1ad6b1", kill_on_drop: false }` [INFO] [stdout] ae110ec2b1299d8009fda3b01ec2c70c95e8e9000558c8fd6c51e7a82a1ad6b1