[INFO] cloning repository https://github.com/leafyoung/algo_challenge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leafyoung/algo_challenge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleafyoung%2Falgo_challenge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleafyoung%2Falgo_challenge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 72be784d67fb1f9b73727a2f6082019de6410c82 [INFO] testing leafyoung/algo_challenge against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleafyoung%2Falgo_challenge" "/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/leafyoung/algo_challenge [INFO] finished tweaking git repo https://github.com/leafyoung/algo_challenge [INFO] tweaked toml for git repo https://github.com/leafyoung/algo_challenge written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/leafyoung/algo_challenge on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/leafyoung/algo_challenge 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc33923d06974da98c9d95b3d3036377a547f159208d31a7b982273f50083ec2 [INFO] running `Command { std: "docker" "start" "-a" "dc33923d06974da98c9d95b3d3036377a547f159208d31a7b982273f50083ec2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc33923d06974da98c9d95b3d3036377a547f159208d31a7b982273f50083ec2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc33923d06974da98c9d95b3d3036377a547f159208d31a7b982273f50083ec2", kill_on_drop: false }` [INFO] [stdout] dc33923d06974da98c9d95b3d3036377a547f159208d31a7b982273f50083ec2 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48928e1d833c98641784f4ef1c558b06f8b0ea0e866d28890a14b34d4f8fff1a [INFO] running `Command { std: "docker" "start" "-a" "48928e1d833c98641784f4ef1c558b06f8b0ea0e866d28890a14b34d4f8fff1a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling pin-project-lite v0.2.12 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling smallvec v1.11.0 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling rustix v0.38.8 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling regex-syntax v0.7.4 [INFO] [stderr] Compiling linux-raw-sys v0.4.5 [INFO] [stderr] Compiling openssl v0.10.56 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling prettyplease v0.1.25 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling fastrand v2.0.0 [INFO] [stderr] Compiling serde v1.0.183 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling petgraph v0.6.3 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling thiserror v1.0.44 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling socket2 v0.5.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling cc v1.0.82 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling which v4.4.0 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling regex-automata v0.3.6 [INFO] [stderr] Compiling serde_derive v1.0.183 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling cpufeatures v0.2.9 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling matchit v0.7.2 [INFO] [stderr] Compiling serde_json v1.0.104 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling data-encoding v2.4.0 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling base64 v0.21.2 [INFO] [stderr] Compiling openssl-sys v0.9.91 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling url v2.4.0 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling tempfile v3.7.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling regex v1.9.3 [INFO] [stderr] Compiling prost-derive v0.11.9 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.44 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling tokio v1.31.0 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling prost v0.11.9 [INFO] [stderr] Compiling prost-types v0.11.9 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling prost-build v0.11.9 [INFO] [stderr] Compiling tonic-build v0.9.2 [INFO] [stderr] Compiling tungstenite v0.20.0 [INFO] [stderr] Compiling algo_challenge v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling futures-executor v0.3.28 [INFO] [stderr] Compiling futures v0.3.28 [INFO] [stderr] Compiling tokio-util v0.7.8 [INFO] [stderr] Compiling tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-tungstenite v0.20.0 [INFO] [stderr] Compiling h2 v0.3.20 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling tonic v0.9.2 [INFO] [stdout] warning: unused imports: `OrderbookAggregatorServer` and `OrderbookAggregator` [INFO] [stdout] --> src/types.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | OrderbookAggregator, OrderbookAggregatorServer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/exchange/binance_client.rs:164:34 [INFO] [stdout] | [INFO] [stdout] 164 | .map(|x| (Level { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 168 | })) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 164 ~ .map(|x| Level { [INFO] [stdout] 165 | exchange: Exchange::Binance.to_string(), [INFO] [stdout] 166 | price: x.0.parse::().unwrap(), [INFO] [stdout] 167 | amount: x.1.parse::().unwrap() [INFO] [stdout] 168 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/exchange/binance_client.rs:173:34 [INFO] [stdout] | [INFO] [stdout] 173 | .map(|x| (Level { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 177 | })) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 173 ~ .map(|x| Level { [INFO] [stdout] 174 | exchange: Exchange::Binance.to_string(), [INFO] [stdout] 175 | price: x.0.parse::().unwrap(), [INFO] [stdout] 176 | amount: x.1.parse::().unwrap() [INFO] [stdout] 177 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/exchange/bitstamp_client.rs:149:34 [INFO] [stdout] | [INFO] [stdout] 149 | .map(|x| (Level { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 153 | })) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 ~ .map(|x| Level { [INFO] [stdout] 150 | exchange: Exchange::Bitstamp.to_string(), [INFO] [stdout] 151 | price: x.0.parse::().unwrap(), [INFO] [stdout] 152 | amount: x.1.parse::().unwrap() [INFO] [stdout] 153 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/exchange/bitstamp_client.rs:158:34 [INFO] [stdout] | [INFO] [stdout] 158 | .map(|x| (Level { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 162 | })) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 ~ .map(|x| Level { [INFO] [stdout] 159 | exchange: Exchange::Bitstamp.to_string(), [INFO] [stdout] 160 | price: x.0.parse::().unwrap(), [INFO] [stdout] 161 | amount: x.1.parse::().unwrap() [INFO] [stdout] 162 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orderbook_aggregator::orderbook_aggregator_client::OrderbookAggregatorClient` [INFO] [stdout] --> src/types.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | pub use orderbook_aggregator::orderbook_aggregator_client::OrderbookAggregatorClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `exchange` and `last_updated` are never read [INFO] [stdout] --> src/types.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct OrderBook { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 52 | pub exchange: Exchange, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 53 | pub last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBook` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::types` [INFO] [stdout] --> src/grpc.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::types::{ [INFO] [stdout] | ^^^^^ could not find `types` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `grpc` [INFO] [stdout] --> src/grpc.rs:92:2 [INFO] [stdout] | [INFO] [stdout] 92 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/grpc.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `algo_challenge` (bin "grpc") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/exchange/bitstamp_client.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct BookData { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 45 | // parse partially [INFO] [stdout] 46 | pub timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BookData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_updated` is never read [INFO] [stdout] --> src/types.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct OrderBook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 52 | pub exchange: Exchange, [INFO] [stdout] 53 | pub last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBook` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "48928e1d833c98641784f4ef1c558b06f8b0ea0e866d28890a14b34d4f8fff1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48928e1d833c98641784f4ef1c558b06f8b0ea0e866d28890a14b34d4f8fff1a", kill_on_drop: false }` [INFO] [stdout] 48928e1d833c98641784f4ef1c558b06f8b0ea0e866d28890a14b34d4f8fff1a