[INFO] cloning repository https://github.com/mmai/webtarot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mmai/webtarot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fwebtarot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fwebtarot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76d263f3ecf7da496bfe63a3e7f4fa69c7337bad [INFO] testing mmai/webtarot against master#b70888601af92f6cdc0364abab3446e418b91d36 for pr-86479 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fwebtarot" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mmai/webtarot on toolchain b70888601af92f6cdc0364abab3446e418b91d36 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mmai/webtarot [INFO] finished tweaking git repo https://github.com/mmai/webtarot [INFO] tweaked toml for git repo https://github.com/mmai/webtarot written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/mmai/webtarot already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 48b0d5159bbbcfa048b37be9d7e79c1ba895356bd0e3d0055e71708b5b01c1a7 [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" "48b0d5159bbbcfa048b37be9d7e79c1ba895356bd0e3d0055e71708b5b01c1a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48b0d5159bbbcfa048b37be9d7e79c1ba895356bd0e3d0055e71708b5b01c1a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48b0d5159bbbcfa048b37be9d7e79c1ba895356bd0e3d0055e71708b5b01c1a7", kill_on_drop: false }` [INFO] [stdout] 48b0d5159bbbcfa048b37be9d7e79c1ba895356bd0e3d0055e71708b5b01c1a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27282a37dd1c45752af639b8e40b57da404a33b1148cda307fde18b4b0e71762 [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" "27282a37dd1c45752af639b8e40b57da404a33b1148cda307fde18b4b0e71762", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling syn v1.0.67 [INFO] [stderr] Compiling libc v0.2.92 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.73 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling bumpalo v3.6.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-core v0.3.13 [INFO] [stderr] Compiling wasm-bindgen v0.2.73 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling futures-task v0.3.13 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling openssl v0.10.33 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling pin-project-internal v0.4.28 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling strum v0.19.5 [INFO] [stderr] Compiling tinystr v0.3.4 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling futures v0.1.31 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling yew v0.17.4 [INFO] [stderr] Compiling boolinator v2.4.0 [INFO] [stderr] Compiling cfg-match v0.2.1 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling futures-channel v0.3.13 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling http v0.2.3 [INFO] [stderr] Compiling openssl-sys v0.9.61 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling memoffset v0.6.3 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling im-rc v14.3.0 [INFO] [stderr] Compiling unic-langid-impl v0.9.0 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling rust-embed-utils v5.1.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling crossbeam-channel v0.3.9 [INFO] [stderr] Compiling tracing v0.1.25 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling idna v0.2.2 [INFO] [stderr] Compiling gettext v0.4.0 [INFO] [stderr] Compiling unic-langid v0.9.0 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling tr v0.1.6 [INFO] [stderr] Compiling fluent-langneg v0.13.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling listenfd v0.3.3 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.0 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling env_logger v0.8.3 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling tokio-executor v0.1.10 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_xoshiro v0.4.0 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling tokio-timer v0.2.13 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling sled v0.34.6 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling sha-1 v0.9.4 [INFO] [stderr] Compiling headers v0.3.4 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling multipart v0.17.1 [INFO] [stderr] Compiling sized-chunks v0.5.3 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.73 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.73 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling pin-project-internal v1.0.6 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling strum_macros v0.19.4 [INFO] [stderr] Compiling rust-embed-impl v5.9.0 [INFO] [stderr] Compiling async-trait v0.1.48 [INFO] [stderr] Compiling yew-macro v0.17.0 [INFO] [stderr] Compiling weblog-proc-macro v0.3.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.73 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling rust-embed v5.9.0 [INFO] [stderr] Compiling futures-util v0.3.13 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling js-sys v0.3.50 [INFO] [stderr] Compiling console_error_panic_hook v0.1.6 [INFO] [stderr] Compiling pin-project v0.4.28 [INFO] [stderr] Compiling pin-project v1.0.6 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.13 [INFO] [stderr] Compiling tokio-tungstenite v0.11.0 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling futures v0.3.13 [INFO] [stderr] Compiling web-sys v0.3.50 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.23 [INFO] [stderr] Compiling hyper v0.13.10 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling bincode v1.3.2 [INFO] [stderr] Compiling tarotgame v0.6.1 (/opt/rustwide/workdir/tarotgame) [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling sled v0.29.2 [INFO] [stderr] Compiling webgame_protocol v0.6.2 (https://github.com/mmai/webgame?tag=v0.7.6#492ed1f8) [INFO] [stderr] Compiling i18n-config v0.2.2 [INFO] [stderr] Compiling webtarot_protocol v0.7.6 (/opt/rustwide/workdir/webtarot_protocol) [INFO] [stderr] Compiling i18n-embed-impl v0.4.0 [INFO] [stderr] Compiling webtarot_bot v0.4.3 (/opt/rustwide/workdir/webtarot_bot) [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::net::{UnixStream,UnixListener}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_seeded_hands` [INFO] [stdout] --> webtarot_bot/src/player.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use tarotgame::{deal_seeded_hands, cards::{Deck, Card, Hand, Suit, Rank}, deal::can_play, bid::Target, points::strength, pos::PlayerPos, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayEvent` [INFO] [stdout] --> webtarot_bot/src/player.rs:12:186 [INFO] [stdout] | [INFO] [stdout] 12 | ...idCommand, CallKingCommand, MakeDogCommand, Turn, PlayerRole, PlayEvent, TarotVariant, VariantSettings}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> webtarot_bot/src/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nicknamer` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let nicknamer = Mutex::new(NickNamer::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nicknamer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> webtarot_bot/src/player.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | .find(|(idx, pstat)| pstat.played.has(king)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pstat` [INFO] [stdout] --> webtarot_bot/src/player.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | .map(|(idx, pstat)| idx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pstat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play_event` [INFO] [stdout] --> webtarot_bot/src/player.rs:344:32 [INFO] [stdout] | [INFO] [stdout] 344 | Message::PlayEvent(play_event) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_play_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystate` [INFO] [stdout] --> webtarot_bot/src/player.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let mystate = self.my_state().clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> webtarot_bot/src/player.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | let now = time::Instant::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vingtetun` [INFO] [stdout] --> webtarot_bot/src/player.rs:869:13 [INFO] [stdout] | [INFO] [stdout] 869 | let vingtetun = Card::new(Suit::Trump, Rank::Rank21); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vingtetun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mylowest` [INFO] [stdout] --> webtarot_bot/src/player.rs:885:25 [INFO] [stdout] | [INFO] [stdout] 885 | if let Some(mylowest) = hand.suit_lowest_over_card(Suit::Trump, winner_card){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mylowest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:658:25 [INFO] [stdout] | [INFO] [stdout] 658 | let mut myhighest = my_highest.unwrap(); [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: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021. [INFO] [stdout] --> webtarot_bot/src/player.rs:515:47 [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see issue #66145 [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.iter() [INFO] [stdout] | ^^^^ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = IntoIterator::into_iter(suits) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] 293 | | pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] 294 | | ); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | self.in_out.send(&Command::NewGame(variant)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | self.in_out.send(&Command::InviteBot); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | self.in_out.send(&Command::InviteBot); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | self.in_out.send(&Command::InviteBot); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | self.in_out.send(&Command::InviteBot); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | self.in_out.send(&Command::MarkReady); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:384:21 [INFO] [stdout] | [INFO] [stdout] 384 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | ... self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | self.socket.close(None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `GamePlayCommand`, `GamePlayerState`, `GameStateSnapshot`, `Message`, `PlayCommand`, `PlayerAction` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use webtarot_protocol::{Message, Command, GameStateSnapshot, PlayerAction, GamePlayCommand, PlayCommand, GamePlayerState}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthenticateCommand`, `JoinGameCommand`, `PlayerInfo` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use webgame_protocol::{AuthenticateCommand, JoinGameCommand, PlayerInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::player` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::player; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::net::{UnixStream,UnixListener}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_seeded_hands` [INFO] [stdout] --> webtarot_bot/src/player.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use tarotgame::{deal_seeded_hands, cards::{Deck, Card, Hand, Suit, Rank}, deal::can_play, bid::Target, points::strength, pos::PlayerPos, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayEvent` [INFO] [stdout] --> webtarot_bot/src/player.rs:12:186 [INFO] [stdout] | [INFO] [stdout] 12 | ...idCommand, CallKingCommand, MakeDogCommand, Turn, PlayerRole, PlayEvent, TarotVariant, VariantSettings}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::connect` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tungstenite::connect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::protocol::WebSocket` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tungstenite::protocol::WebSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `GamePlayCommand`, `GamePlayerState`, `GameStateSnapshot`, `Message`, `PlayCommand`, `PlayerAction` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | use webtarot_protocol::{Message, Command, GameStateSnapshot, PlayerAction, GamePlayCommand, PlayCommand, GamePlayerState}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthenticateCommand`, `JoinGameCommand`, `PlayerInfo` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use webgame_protocol::{AuthenticateCommand, JoinGameCommand, PlayerInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::player` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::player; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling warp v0.2.5 [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> webtarot_bot/src/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> webtarot_bot/src/explorer.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | .find(|(i, n)| **n < 255) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nicknamer` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let nicknamer = Mutex::new(NickNamer::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nicknamer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> webtarot_bot/src/player.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | .find(|(idx, pstat)| pstat.played.has(king)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pstat` [INFO] [stdout] --> webtarot_bot/src/player.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | .map(|(idx, pstat)| idx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pstat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play_event` [INFO] [stdout] --> webtarot_bot/src/player.rs:344:32 [INFO] [stdout] | [INFO] [stdout] 344 | Message::PlayEvent(play_event) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_play_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystate` [INFO] [stdout] --> webtarot_bot/src/player.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let mystate = self.my_state().clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> webtarot_bot/src/player.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | let now = time::Instant::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vingtetun` [INFO] [stdout] --> webtarot_bot/src/player.rs:869:13 [INFO] [stdout] | [INFO] [stdout] 869 | let vingtetun = Card::new(Suit::Trump, Rank::Rank21); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vingtetun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mylowest` [INFO] [stdout] --> webtarot_bot/src/player.rs:885:25 [INFO] [stdout] | [INFO] [stdout] 885 | if let Some(mylowest) = hand.suit_lowest_over_card(Suit::Trump, winner_card){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mylowest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:658:25 [INFO] [stdout] | [INFO] [stdout] 658 | let mut myhighest = my_highest.unwrap(); [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: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021. [INFO] [stdout] --> webtarot_bot/src/player.rs:515:47 [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see issue #66145 [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.iter() [INFO] [stdout] | ^^^^ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = IntoIterator::into_iter(suits) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] 293 | | pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] 294 | | ); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | self.in_out.send(&Command::NewGame(variant)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | self.in_out.send(&Command::InviteBot); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | self.in_out.send(&Command::InviteBot); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | self.in_out.send(&Command::InviteBot); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | self.in_out.send(&Command::InviteBot); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | self.in_out.send(&Command::MarkReady); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:384:21 [INFO] [stdout] | [INFO] [stdout] 384 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | ... self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | self.socket.close(None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sled-extensions v0.2.0 [INFO] [stderr] Compiling gloo-events v0.1.1 [INFO] [stderr] Compiling gloo-timers v0.2.1 [INFO] [stderr] Compiling gloo-console-timer v0.1.0 [INFO] [stderr] Compiling i18n-embed v0.6.1 [INFO] [stderr] Compiling weblog v0.3.0 [INFO] [stderr] Compiling gloo-file v0.1.0 [INFO] [stderr] Compiling gloo v0.2.1 [INFO] [stderr] Compiling webgame_server v0.7.5 (https://github.com/mmai/webgame?tag=v0.7.6#492ed1f8) [INFO] [stdout] error: internal compiler error: unexpected concrete region in borrowck: ReStatic [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/warp-0.2.5/src/filters/sse.rs:457:5 [INFO] [stdout] | [INFO] [stdout] 457 | / pub fn stream( [INFO] [stdout] 458 | | self, [INFO] [stdout] 459 | | event_stream: S, [INFO] [stdout] 460 | | ) -> impl TryStream< [INFO] [stdout] ... | [INFO] [stdout] 476 | | } [INFO] [stdout] 477 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: delayed at compiler/rustc_mir/src/borrow_check/region_infer/opaque_types.rs:87:44 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: internal compiler error: unexpected concrete region in borrowck: ReStatic [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/warp-0.2.5/src/filters/sse.rs:492:1 [INFO] [stdout] | [INFO] [stdout] 492 | / pub fn keep( [INFO] [stdout] 493 | | event_stream: S, [INFO] [stdout] 494 | | keep_interval: impl Into>, [INFO] [stdout] 495 | | ) -> impl TryStream< [INFO] [stdout] ... | [INFO] [stdout] 514 | | } [INFO] [stdout] 515 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: delayed at compiler/rustc_mir/src/borrow_check/region_infer/opaque_types.rs:87:44 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', compiler/rustc_errors/src/lib.rs:1050:13 [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x7fb1fd29bf50 - std::backtrace_rs::backtrace::libunwind::trace::h99dbb39dca18857d [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stderr] 1: 0x7fb1fd29bf50 - std::backtrace_rs::backtrace::trace_unsynchronized::h832861927e9cfedf [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stderr] 2: 0x7fb1fd29bf50 - std::sys_common::backtrace::_print_fmt::h3d18154c77dcf310 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stderr] 3: 0x7fb1fd29bf50 - ::fmt::he312f4ad5b9bb346 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stderr] 4: 0x7fb1fd309bbc - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/core/src/fmt/mod.rs:1115:17 [INFO] [stderr] 5: 0x7fb1fd28d835 - std::io::Write::write_fmt::h6aced00850e8186f [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/io/mod.rs:1665:15 [INFO] [stderr] 6: 0x7fb1fd29fc6b - std::sys_common::backtrace::_print::h65d996766de40da4 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stderr] 7: 0x7fb1fd29fc6b - std::sys_common::backtrace::print::h40df9727e635f303 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stderr] 8: 0x7fb1fd29fc6b - std::panicking::default_hook::{{closure}}::hd2da4327dea91a51 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:208:50 [INFO] [stderr] 9: 0x7fb1fd29f741 - std::panicking::default_hook::h3d55120ad6ada158 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:225:9 [INFO] [stderr] 10: 0x7fb1fda7c901 - rustc_driver::DEFAULT_HOOK::{{closure}}::{{closure}}::h98690b446fb8b04c [INFO] [stderr] 11: 0x7fb1eeee8e33 - as core::ops::function::Fn>::call::h67c294be8d39f2a4 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/alloc/src/boxed.rs:1586:9 [INFO] [stderr] 12: 0x7fb1eeed5d8a - proc_macro::bridge::client::::enter::{{closure}}::{{closure}}::hcf8ab711ada2926a [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/proc_macro/src/bridge/client.rs:320:21 [INFO] [stderr] 13: 0x7fb1fd2a0499 - std::panicking::rust_panic_with_hook::hf85dd0bb545e3b55 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:626:17 [INFO] [stderr] 14: 0x7fb1fd29ff57 - std::panicking::begin_panic_handler::{{closure}}::h736ae969434da9fa [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:519:13 [INFO] [stderr] 15: 0x7fb1fd29c42c - std::sys_common::backtrace::__rust_end_short_backtrace::h6133bb80b1d6c3e0 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stderr] 16: 0x7fb1fd29feb9 - rust_begin_unwind [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:515:5 [INFO] [stderr] 17: 0x7fb1fd268eab - std::panicking::begin_panic_fmt::hf70e90a601287d8b [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:457:5 [INFO] [stderr] 18: 0x7fb1ffecdab9 - rustc_errors::HandlerInner::flush_delayed::h400415fe09e32e42 [INFO] [stderr] 19: 0x7fb1ffecc51d - ::drop::h99b093f7064b7696 [INFO] [stderr] 20: 0x7fb1ff585196 - core::ptr::drop_in_place::hf782bb3707a77e2d [INFO] [stderr] 21: 0x7fb1ff586ffe - as core::ops::drop::Drop>::drop::h22504b7a2bf4f3e1 [INFO] [stderr] 22: 0x7fb1ff55b64d - core::ptr::drop_in_place::h04cee182ac6141b7 [INFO] [stderr] 23: 0x7fb1ff55ad93 - rustc_span::with_source_map::h35aa4a6792e2f0de [INFO] [stderr] 24: 0x7fb1ff56c46a - rustc_interface::interface::create_compiler_and_run::h600b31664ea7498c [INFO] [stderr] 25: 0x7fb1ff55ed49 - scoped_tls::ScopedKey::set::h95fded8ea1ce829a [INFO] [stderr] 26: 0x7fb1ff55b18a - std::sys_common::backtrace::__rust_begin_short_backtrace::hcb9f52ef891273be [INFO] [stderr] 27: 0x7fb1ff55a475 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h7d639d5804de8241 [INFO] [stderr] 28: 0x7fb1fd2aca27 - as core::ops::function::FnOnce>::call_once::h09f167e08fc945ff [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/alloc/src/boxed.rs:1572:9 [INFO] [stderr] 29: 0x7fb1fd2aca27 - as core::ops::function::FnOnce>::call_once::hf814fe85eeb118e0 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/alloc/src/boxed.rs:1572:9 [INFO] [stderr] 30: 0x7fb1fd2aca27 - std::sys::unix::thread::Thread::new::thread_start::hb71b17934c5f5e68 [INFO] [stderr] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys/unix/thread.rs:91:17 [INFO] [stderr] 31: 0x7fb1fd1c8609 - start_thread [INFO] [stderr] 32: 0x7fb1fd0dc293 - clone [INFO] [stderr] 33: 0x0 - [INFO] [stderr] [INFO] [stderr] error: internal compiler error: unexpected panic [INFO] [stderr] [INFO] [stderr] note: the compiler unexpectedly panicked. this is a bug. [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md [INFO] [stderr] [INFO] [stderr] note: rustc 1.56.0-nightly (b70888601 2021-07-28) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: -C embed-bitcode=no -C debuginfo=2 --crate-type lib [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] end of query stack [INFO] [stderr] error: could not compile `warp` [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "27282a37dd1c45752af639b8e40b57da404a33b1148cda307fde18b4b0e71762", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27282a37dd1c45752af639b8e40b57da404a33b1148cda307fde18b4b0e71762", kill_on_drop: false }` [INFO] [stdout] 27282a37dd1c45752af639b8e40b57da404a33b1148cda307fde18b4b0e71762