[INFO] cloning repository https://github.com/Simhyeon/cardserver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Simhyeon/cardserver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimhyeon%2Fcardserver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimhyeon%2Fcardserver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 200b7c3794d4da29c0334a07c04c1c799e11fc51 [INFO] testing Simhyeon/cardserver against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimhyeon%2Fcardserver" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Simhyeon/cardserver [INFO] finished tweaking git repo https://github.com/Simhyeon/cardserver [INFO] tweaked toml for git repo https://github.com/Simhyeon/cardserver written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Simhyeon/cardserver on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Simhyeon/cardserver 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strum_macros v0.20.1 [INFO] [stderr] Downloaded miow v0.3.6 [INFO] [stderr] Downloaded pin-project-lite v0.2.0 [INFO] [stderr] Downloaded strum v0.20.0 [INFO] [stderr] Downloaded dtoa v0.4.7 [INFO] [stderr] Downloaded uuid v0.8.1 [INFO] [stderr] Downloaded pin-project v1.0.2 [INFO] [stderr] Downloaded pin-project-internal v1.0.2 [INFO] [stderr] Downloaded tokio-macros v0.2.6 [INFO] [stderr] Downloaded syn v1.0.57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0aeef82a1121130914e287857f8f6c4ee7a5c06eb12f61f6b319d19a0d303145 [INFO] running `Command { std: "docker" "start" "-a" "0aeef82a1121130914e287857f8f6c4ee7a5c06eb12f61f6b319d19a0d303145", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0aeef82a1121130914e287857f8f6c4ee7a5c06eb12f61f6b319d19a0d303145", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0aeef82a1121130914e287857f8f6c4ee7a5c06eb12f61f6b319d19a0d303145", kill_on_drop: false }` [INFO] [stdout] 0aeef82a1121130914e287857f8f6c4ee7a5c06eb12f61f6b319d19a0d303145 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 4769228741b0545ae8a3ea008849a8d265fdb5ceac14d728b74fcf8a013bd668 [INFO] running `Command { std: "docker" "start" "-a" "4769228741b0545ae8a3ea008849a8d265fdb5ceac14d728b74fcf8a013bd668", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-core v0.3.8 [INFO] [stderr] Compiling futures-sink v0.3.8 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling tinyvec v1.1.0 [INFO] [stderr] Compiling futures-io v0.3.8 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling pin-project-lite v0.1.11 [INFO] [stderr] Compiling form_urlencoded v1.0.0 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling http v0.2.2 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling getrandom v0.2.0 [INFO] [stderr] Compiling pin-project-lite v0.2.0 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling tracing v0.1.22 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling unicode-normalization v0.1.16 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling input_buffer v0.3.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling utf-8 v0.7.5 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling sha-1 v0.8.2 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling rand_core v0.6.0 [INFO] [stderr] Compiling sha-1 v0.9.2 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling tower-service v0.3.0 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling dtoa v0.4.7 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling urlencoding v1.1.1 [INFO] [stderr] Compiling strum v0.20.0 [INFO] [stderr] Compiling headers v0.3.2 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling rand v0.8.0 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling multipart v0.17.0 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling strum_macros v0.20.1 [INFO] [stderr] Compiling tokio v0.2.24 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling pin-project v1.0.2 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling tokio-tungstenite v0.11.0 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling hyper v0.13.9 [INFO] [stderr] Compiling warp v0.2.5 [INFO] [stderr] Compiling card_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerAction` [INFO] [stdout] --> src/handlers.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::models::{Connection, UserRequest, PlayerAction, ServerResponse, ResponseType, ResponseValue, InternalRequest, IntReqType, IntR... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Distribution` and `Uniform` [INFO] [stdout] --> src/test.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::distributions::{Distribution, Uniform}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arc` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::routes::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::routes::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `req` is never read [INFO] [stdout] --> src/handlers.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut req: InternalRequest = InternalRequest::dummy(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `req` is never read [INFO] [stdout] --> src/handlers.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | let mut req: UserRequest = UserRequest::dummy(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/handlers.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{FutureExt, StreamExt, SinkExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/test.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut cards: Vec = vec![ [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/test.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut cards_2 = vec![]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/test.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut merged = cards.iter().chain(cards_2.iter()).cloned().collect::>(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `room_id` is never read [INFO] [stdout] --> src/models.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 27 | pub room_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models.rs:744:12 [INFO] [stdout] | [INFO] [stdout] 743 | impl Card { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 744 | pub fn new(card_type: CardType, number: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manual_comb_test` is never used [INFO] [stdout] --> src/test.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn manual_comb_test() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand_comb_test` is never used [INFO] [stdout] --> src/test.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn rand_comb_test() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handlers.rs:184:44 [INFO] [stdout] | [INFO] [stdout] 184 | let room_id_clone = room_id.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.52s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.17.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "4769228741b0545ae8a3ea008849a8d265fdb5ceac14d728b74fcf8a013bd668", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4769228741b0545ae8a3ea008849a8d265fdb5ceac14d728b74fcf8a013bd668", kill_on_drop: false }` [INFO] [stdout] 4769228741b0545ae8a3ea008849a8d265fdb5ceac14d728b74fcf8a013bd668 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ed739b7ecff90505d81830f9f595fa0d94de3e19304908260351c0aac7664795 [INFO] running `Command { std: "docker" "start" "-a" "ed739b7ecff90505d81830f9f595fa0d94de3e19304908260351c0aac7664795", kill_on_drop: false }` [INFO] [stderr] Compiling card_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerAction` [INFO] [stdout] --> src/handlers.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::models::{Connection, UserRequest, PlayerAction, ServerResponse, ResponseType, ResponseValue, InternalRequest, IntReqType, IntR... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Distribution` and `Uniform` [INFO] [stdout] --> src/test.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::distributions::{Distribution, Uniform}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arc` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::routes::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::routes::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `req` is never read [INFO] [stdout] --> src/handlers.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut req: InternalRequest = InternalRequest::dummy(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `req` is never read [INFO] [stdout] --> src/handlers.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | let mut req: UserRequest = UserRequest::dummy(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/handlers.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{FutureExt, StreamExt, SinkExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/test.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut cards: Vec = vec![ [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/test.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut cards_2 = vec![]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/test.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut merged = cards.iter().chain(cards_2.iter()).cloned().collect::>(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `room_id` is never read [INFO] [stdout] --> src/models.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 27 | pub room_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models.rs:744:12 [INFO] [stdout] | [INFO] [stdout] 743 | impl Card { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 744 | pub fn new(card_type: CardType, number: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manual_comb_test` is never used [INFO] [stdout] --> src/test.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn manual_comb_test() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handlers.rs:184:44 [INFO] [stdout] | [INFO] [stdout] 184 | let room_id_clone = room_id.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.01s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.17.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "ed739b7ecff90505d81830f9f595fa0d94de3e19304908260351c0aac7664795", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed739b7ecff90505d81830f9f595fa0d94de3e19304908260351c0aac7664795", kill_on_drop: false }` [INFO] [stdout] ed739b7ecff90505d81830f9f595fa0d94de3e19304908260351c0aac7664795 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 8ebb3f6c591ea08ad6fe44975c9bfc5003914c7a261eed4b2af9f0d853243db3 [INFO] running `Command { std: "docker" "start" "-a" "8ebb3f6c591ea08ad6fe44975c9bfc5003914c7a261eed4b2af9f0d853243db3", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/models.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `PlayerAction` [INFO] [stderr] --> src/handlers.rs:10:46 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::models::{Connection, UserRequest, PlayerAction, ServerResponse, ResponseType, ResponseValue, InternalRequest, IntReqType, IntR... [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Distribution` and `Uniform` [INFO] [stderr] --> src/test.rs:3:27 [INFO] [stderr] | [INFO] [stderr] 3 | use rand::distributions::{Distribution, Uniform}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Arc` [INFO] [stderr] --> src/main.rs:6:17 [INFO] [stderr] | [INFO] [stderr] 6 | use std::sync::{Arc, RwLock}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::routes::*` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::routes::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: value assigned to `req` is never read [INFO] [stderr] --> src/handlers.rs:160:13 [INFO] [stderr] | [INFO] [stderr] 160 | let mut req: InternalRequest = InternalRequest::dummy(); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `req` is never read [INFO] [stderr] --> src/handlers.rs:224:13 [INFO] [stderr] | [INFO] [stderr] 224 | let mut req: UserRequest = UserRequest::dummy(); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused import: `SinkExt` [INFO] [stderr] --> src/handlers.rs:7:37 [INFO] [stderr] | [INFO] [stderr] 7 | use futures::{FutureExt, StreamExt, SinkExt}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/test.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | let mut cards: Vec = vec![ [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/test.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | let mut cards_2 = vec![]; [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/test.rs:62:9 [INFO] [stderr] | [INFO] [stderr] 62 | let mut merged = cards.iter().chain(cards_2.iter()).cloned().collect::>(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: field `room_id` is never read [INFO] [stderr] --> src/models.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 26 | pub struct Connection { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 27 | pub room_id: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models.rs:744:12 [INFO] [stderr] | [INFO] [stderr] 743 | impl Card { [INFO] [stderr] | --------- associated function in this implementation [INFO] [stderr] 744 | pub fn new(card_type: CardType, number: u8) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `manual_comb_test` is never used [INFO] [stderr] --> src/test.rs:27:4 [INFO] [stderr] | [INFO] [stderr] 27 | fn manual_comb_test() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/handlers.rs:184:44 [INFO] [stderr] | [INFO] [stderr] 184 | let room_id_clone = room_id.clone().to_string(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `card_server` (bin "card_server" test) generated 15 warnings (run `cargo fix --bin "card_server" --tests` to apply 9 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.17.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/card_server-86c19f8365b1d0fe) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test::function_name_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8ebb3f6c591ea08ad6fe44975c9bfc5003914c7a261eed4b2af9f0d853243db3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ebb3f6c591ea08ad6fe44975c9bfc5003914c7a261eed4b2af9f0d853243db3", kill_on_drop: false }` [INFO] [stdout] 8ebb3f6c591ea08ad6fe44975c9bfc5003914c7a261eed4b2af9f0d853243db3