[INFO] cloning repository https://github.com/Staneesh/dices [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Staneesh/dices" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStaneesh%2Fdices", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStaneesh%2Fdices'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a7ffda061875ea47edd8b387adac5fb88d06570a [INFO] testing Staneesh/dices against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStaneesh%2Fdices" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Staneesh/dices on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Staneesh/dices [INFO] finished tweaking git repo https://github.com/Staneesh/dices [INFO] tweaked toml for git repo https://github.com/Staneesh/dices written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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 tungstenite v0.17.2 [INFO] [stderr] Downloaded async-tungstenite v0.17.2 [INFO] [stderr] Downloaded mongodb v1.2.5 [INFO] [stderr] Downloaded os_info v3.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d0762d47a397f947c7170c6cfc37cbec7eee9f42b055abe3908f09232b281bd5 [INFO] running `Command { std: "docker" "start" "-a" "d0762d47a397f947c7170c6cfc37cbec7eee9f42b055abe3908f09232b281bd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0762d47a397f947c7170c6cfc37cbec7eee9f42b055abe3908f09232b281bd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0762d47a397f947c7170c6cfc37cbec7eee9f42b055abe3908f09232b281bd5", kill_on_drop: false }` [INFO] [stdout] d0762d47a397f947c7170c6cfc37cbec7eee9f42b055abe3908f09232b281bd5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56252d974d74848fd22ac5ec559f2dc14053783c5803b2395c249001cf3a4ccb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "56252d974d74848fd22ac5ec559f2dc14053783c5803b2395c249001cf3a4ccb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling httparse v1.7.0 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling input_buffer v0.3.1 [INFO] [stderr] Compiling tracing-core v0.1.25 [INFO] [stderr] Compiling rustls-pemfile v0.2.1 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling err-derive v0.2.4 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling os_info v3.2.0 [INFO] [stderr] Compiling tracing v0.1.33 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling pbkdf2 v0.8.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling sha-1 v0.10.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling rustls v0.18.1 [INFO] [stderr] Compiling webpki-roots v0.20.0 [INFO] [stderr] Compiling rustls v0.17.0 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling typed-builder v0.4.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tungstenite v0.17.2 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.14.1 [INFO] [stderr] Compiling tokio-rustls v0.13.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling trust-dns-proto v0.19.7 [INFO] [stderr] Compiling async-tungstenite v0.17.2 [INFO] [stderr] Compiling trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling serde_with v1.12.1 [INFO] [stderr] Compiling bson v1.2.4 [INFO] [stderr] Compiling client_lib v0.1.0 (/opt/rustwide/workdir/client_lib) [INFO] [stdout] warning: unused variable: `dices_count` [INFO] [stdout] --> client_lib/src/game_manager.rs:39:34 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn submit_bet(&mut self, dices_count: u64, number_on_dice: u64) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dices_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number_on_dice` [INFO] [stdout] --> client_lib/src/game_manager.rs:39:52 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn submit_bet(&mut self, dices_count: u64, number_on_dice: u64) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_number_on_dice` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hyper v0.13.10 [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling client_cli v0.1.0 (/opt/rustwide/workdir/client_cli) [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> client_cli/src/main.rs:29:43 [INFO] [stdout] | [INFO] [stdout] 29 | MessageFromServer::YourMove { username } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `username: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> client_cli/src/main.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | if let Ok(r1) = io::stdin().read_line(&mut pick) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> client_cli/src/main.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | if let Ok(r1) = io::stdin().read_line(&mut bet) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hyper-rustls v0.21.0 [INFO] [stderr] Compiling reqwest v0.10.10 [INFO] [stderr] Compiling mongodb v1.2.5 [INFO] [stderr] Compiling game_server v0.1.0 (/opt/rustwide/workdir/game_server) [INFO] [stdout] error[E0432]: unresolved import `tokio::stream::StreamExt` [INFO] [stdout] --> game_server/src/ws.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no `StreamExt` in `stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::prelude` [INFO] [stdout] --> game_server/src/ws.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | prelude::*, [INFO] [stdout] | ^^^^^^^ could not find `prelude` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Error as IoError` [INFO] [stdout] --> game_server/src/ws.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, error::Error, io::Error as IoError, net::SocketAddr, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> game_server/src/ws.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `options::FindOptions` [INFO] [stdout] --> game_server/src/ws.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | options::FindOptions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> game_server/src/ws.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut client_options = ClientOptions::parse("mongodb://localhost:27017") [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for struct `WebSocketStream` in the current scope [INFO] [stdout] --> game_server/src/ws.rs:76:53 [INFO] [stdout] | [INFO] [stdout] 76 | let login_message = parse_message(ws_stream.next().await.unwrap().unwrap()).unwrap(); [INFO] [stdout] | ^^^^ method not found in `WebSocketStream>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: [INFO] [stdout] | [INFO] [stdout] 1 | use futures::StreamExt; [INFO] [stdout] | [INFO] [stdout] 1 | use serde_json::de::Read; [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Iterator; [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::pattern::Searcher; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for struct `tokio::sync::mpsc::UnboundedReceiver` in the current scope [INFO] [stdout] --> game_server/src/ws.rs:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | let a = rx.next(); [INFO] [stdout] | ^^^^ method not found in `tokio::sync::mpsc::UnboundedReceiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for struct `WebSocketStream` in the current scope [INFO] [stdout] --> game_server/src/ws.rs:105:27 [INFO] [stdout] | [INFO] [stdout] 105 | let b = ws_stream.next(); [INFO] [stdout] | ^^^^ method not found in `WebSocketStream>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: [INFO] [stdout] | [INFO] [stdout] 1 | use futures::StreamExt; [INFO] [stdout] | [INFO] [stdout] 1 | use serde_json::de::Read; [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Iterator; [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::pattern::Searcher; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> game_server/src/ws.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 103 | / loop { [INFO] [stdout] 104 | | let a = rx.next(); [INFO] [stdout] 105 | | let b = ws_stream.next(); [INFO] [stdout] 106 | | [INFO] [stdout] ... | [INFO] [stdout] 118 | | } [INFO] [stdout] 119 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 120 | [INFO] [stdout] 121 | peer_map.lock().await.remove(&user); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> game_server/src/ws.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let mut listener = try_socket.expect("Failed to bind"); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `game_server` due to 6 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "56252d974d74848fd22ac5ec559f2dc14053783c5803b2395c249001cf3a4ccb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56252d974d74848fd22ac5ec559f2dc14053783c5803b2395c249001cf3a4ccb", kill_on_drop: false }` [INFO] [stdout] 56252d974d74848fd22ac5ec559f2dc14053783c5803b2395c249001cf3a4ccb