[INFO] cloning repository https://github.com/derek623/keyrock_task [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/derek623/keyrock_task" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fderek623%2Fkeyrock_task", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fderek623%2Fkeyrock_task'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7df9cca104802b87a8bdaa80c342e3bc8d3ecf2b [INFO] checking derek623/keyrock_task against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fderek623%2Fkeyrock_task" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/derek623/keyrock_task [INFO] finished tweaking git repo https://github.com/derek623/keyrock_task [INFO] tweaked toml for git repo https://github.com/derek623/keyrock_task written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/derek623/keyrock_task on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/derek623/keyrock_task 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/server/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f752f1d3da0bf2fb8ab6235be1f7e6b0608ec24717e5a96aa2d156900ff0185c [INFO] running `Command { std: "docker" "start" "-a" "f752f1d3da0bf2fb8ab6235be1f7e6b0608ec24717e5a96aa2d156900ff0185c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f752f1d3da0bf2fb8ab6235be1f7e6b0608ec24717e5a96aa2d156900ff0185c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f752f1d3da0bf2fb8ab6235be1f7e6b0608ec24717e5a96aa2d156900ff0185c", kill_on_drop: false }` [INFO] [stdout] f752f1d3da0bf2fb8ab6235be1f7e6b0608ec24717e5a96aa2d156900ff0185c [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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2845a5bd975ae4beab9551c3a06e40f2b8597a9da8c4d644d03e3ce1fc485bc8 [INFO] running `Command { std: "docker" "start" "-a" "2845a5bd975ae4beab9551c3a06e40f2b8597a9da8c4d644d03e3ce1fc485bc8", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/server/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling log v0.4.18 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling tokio v1.28.2 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Compiling rustix v0.37.19 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Compiling rustversion v1.0.12 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling tempfile v3.6.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling prettyplease v0.1.25 [INFO] [stderr] Compiling regex-syntax v0.7.2 [INFO] [stderr] Compiling petgraph v0.6.3 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling openssl v0.10.54 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling openssl-sys v0.9.88 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling axum v0.6.18 [INFO] [stderr] Checking lock_api v0.4.10 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Checking crossbeam-epoch v0.9.15 [INFO] [stderr] Checking sha1 v0.10.5 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking matchit v0.7.0 [INFO] [stderr] Checking data-encoding v2.4.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking time-core v0.1.1 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Compiling serde_json v1.0.96 [INFO] [stderr] Checking num-complex v0.4.3 [INFO] [stderr] Checking min-max-heap v1.3.0 [INFO] [stderr] Checking time v0.3.22 [INFO] [stderr] Checking crossbeam v0.8.2 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking term v0.7.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling which v4.4.0 [INFO] [stderr] Compiling regex v1.8.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking is-terminal v0.4.7 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling tracing-attributes v0.1.25 [INFO] [stderr] Compiling pin-project-internal v1.1.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Compiling prost-derive v0.11.9 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling variant_count v1.1.0 [INFO] [stderr] Checking pin-project v1.1.0 [INFO] [stderr] Checking flume v0.10.14 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking thiserror v1.0.40 [INFO] [stderr] Compiling prost v0.11.9 [INFO] [stderr] Compiling prost-types v0.11.9 [INFO] [stderr] Compiling prost-build v0.11.9 [INFO] [stderr] Checking tungstenite v0.19.0 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Compiling tonic-build v0.9.2 [INFO] [stderr] Checking h2 v0.3.19 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-tungstenite v0.19.0 [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir/client) [INFO] [stderr] Checking dark-std v0.2.4 [INFO] [stderr] Checking csv v1.2.2 [INFO] [stderr] Checking fastdate v0.1.39 [INFO] [stderr] Checking fast_log v1.5.55 [INFO] [stderr] Checking prettytable-rs v0.10.0 [INFO] [stderr] Checking hyper v0.14.26 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.9.2 [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/client-2957f17a882ad221/out/orderbook.rs:265:42 [INFO] [stdout] | [INFO] [stdout] 265 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 266 | | let inner = inner.0; [INFO] [stdout] 267 | | let method = BookSummarySvc(inner); [INFO] [stdout] 268 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] ... | [INFO] [stdout] 279 | | Ok(res) [INFO] [stdout] 280 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/client-2957f17a882ad221/out/orderbook.rs:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/client-2957f17a882ad221/out/orderbook.rs:284:41 [INFO] [stdout] | [INFO] [stdout] 284 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 285 | | Ok( [INFO] [stdout] 286 | | http::Response::builder() [INFO] [stdout] 287 | | .status(200) [INFO] [stdout] ... | [INFO] [stdout] 293 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/client-2957f17a882ad221/out/orderbook.rs:285:25 [INFO] [stdout] | [INFO] [stdout] 285 | / Ok( [INFO] [stdout] 286 | | http::Response::builder() [INFO] [stdout] 287 | | .status(200) [INFO] [stdout] 288 | | .header("grpc-status", "12") [INFO] [stdout] ... | [INFO] [stdout] 291 | | .unwrap(), [INFO] [stdout] 292 | | ) [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/client-2957f17a882ad221/out/orderbook.rs:265:42 [INFO] [stdout] | [INFO] [stdout] 265 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 266 | | let inner = inner.0; [INFO] [stdout] 267 | | let method = BookSummarySvc(inner); [INFO] [stdout] 268 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] ... | [INFO] [stdout] 279 | | Ok(res) [INFO] [stdout] 280 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/client-2957f17a882ad221/out/orderbook.rs:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/client-2957f17a882ad221/out/orderbook.rs:284:41 [INFO] [stdout] | [INFO] [stdout] 284 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 285 | | Ok( [INFO] [stdout] 286 | | http::Response::builder() [INFO] [stdout] 287 | | .status(200) [INFO] [stdout] ... | [INFO] [stdout] 293 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/client-2957f17a882ad221/out/orderbook.rs:285:25 [INFO] [stdout] | [INFO] [stdout] 285 | / Ok( [INFO] [stdout] 286 | | http::Response::builder() [INFO] [stdout] 287 | | .status(200) [INFO] [stdout] 288 | | .header("grpc-status", "12") [INFO] [stdout] ... | [INFO] [stdout] 291 | | .unwrap(), [INFO] [stdout] 292 | | ) [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `client` (bin "client" test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `client` (bin "client") due to 4 previous errors [INFO] [stdout] warning: constant `INVALID_SIZE` is never used [INFO] [stdout] --> server/src/aggregator.rs:289:11 [INFO] [stdout] | [INFO] [stdout] 289 | const INVALID_SIZE: usize = Exchange::VARIANT_COUNT + 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> server/src/market_data_source.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(VariantCount, Debug, FromPrimitive, Copy, Clone, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Exchange` [INFO] [stdout] 17 | pub enum Exchange { [INFO] [stdout] | -------- `Exchange` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/server-da156ffa8a8cc958/out/orderbook.rs:265:42 [INFO] [stdout] | [INFO] [stdout] 265 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 266 | | let inner = inner.0; [INFO] [stdout] 267 | | let method = BookSummarySvc(inner); [INFO] [stdout] 268 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] ... | [INFO] [stdout] 279 | | Ok(res) [INFO] [stdout] 280 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/server-da156ffa8a8cc958/out/orderbook.rs:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/server-da156ffa8a8cc958/out/orderbook.rs:284:41 [INFO] [stdout] | [INFO] [stdout] 284 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 285 | | Ok( [INFO] [stdout] 286 | | http::Response::builder() [INFO] [stdout] 287 | | .status(200) [INFO] [stdout] ... | [INFO] [stdout] 293 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/server-da156ffa8a8cc958/out/orderbook.rs:285:25 [INFO] [stdout] | [INFO] [stdout] 285 | / Ok( [INFO] [stdout] 286 | | http::Response::builder() [INFO] [stdout] 287 | | .status(200) [INFO] [stdout] 288 | | .header("grpc-status", "12") [INFO] [stdout] ... | [INFO] [stdout] 291 | | .unwrap(), [INFO] [stdout] 292 | | ) [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `server` (bin "server") due to 4 previous errors; 2 warnings emitted [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> server/src/market_data_source.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(VariantCount, Debug, FromPrimitive, Copy, Clone, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Exchange` [INFO] [stdout] 17 | pub enum Exchange { [INFO] [stdout] | -------- `Exchange` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/server-da156ffa8a8cc958/out/orderbook.rs:265:42 [INFO] [stdout] | [INFO] [stdout] 265 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 266 | | let inner = inner.0; [INFO] [stdout] 267 | | let method = BookSummarySvc(inner); [INFO] [stdout] 268 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] ... | [INFO] [stdout] 279 | | Ok(res) [INFO] [stdout] 280 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/server-da156ffa8a8cc958/out/orderbook.rs:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/server-da156ffa8a8cc958/out/orderbook.rs:284:41 [INFO] [stdout] | [INFO] [stdout] 284 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 285 | | Ok( [INFO] [stdout] 286 | | http::Response::builder() [INFO] [stdout] 287 | | .status(200) [INFO] [stdout] ... | [INFO] [stdout] 293 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/server-da156ffa8a8cc958/out/orderbook.rs:285:25 [INFO] [stdout] | [INFO] [stdout] 285 | / Ok( [INFO] [stdout] 286 | | http::Response::builder() [INFO] [stdout] 287 | | .status(200) [INFO] [stdout] 288 | | .header("grpc-status", "12") [INFO] [stdout] ... | [INFO] [stdout] 291 | | .unwrap(), [INFO] [stdout] 292 | | ) [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `server` (bin "server" test) due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "2845a5bd975ae4beab9551c3a06e40f2b8597a9da8c4d644d03e3ce1fc485bc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2845a5bd975ae4beab9551c3a06e40f2b8597a9da8c4d644d03e3ce1fc485bc8", kill_on_drop: false }` [INFO] [stdout] 2845a5bd975ae4beab9551c3a06e40f2b8597a9da8c4d644d03e3ce1fc485bc8