[INFO] cloning repository https://github.com/nyeogmi/batircd [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nyeogmi/batircd" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyeogmi%2Fbatircd", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyeogmi%2Fbatircd'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 55cfe1e712617d15a109fcf075c7a610e9812596 [INFO] checking nyeogmi/batircd against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyeogmi%2Fbatircd" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nyeogmi/batircd on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nyeogmi/batircd [INFO] finished tweaking git repo https://github.com/nyeogmi/batircd [INFO] tweaked toml for git repo https://github.com/nyeogmi/batircd written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nyeogmi/batircd 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded parking_lot_core v0.9.3 [INFO] [stderr] Downloaded socket2 v0.4.4 [INFO] [stderr] Downloaded tokio-macros v1.7.0 [INFO] [stderr] Downloaded parking_lot v0.12.0 [INFO] [stderr] Downloaded once_cell v1.10.0 [INFO] [stderr] Downloaded mio v0.8.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8d3b27e633b4fc8febbf7ddd5918ca687da38f497256ac52e35264e9f9f33338 [INFO] running `Command { std: "docker" "start" "-a" "8d3b27e633b4fc8febbf7ddd5918ca687da38f497256ac52e35264e9f9f33338", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8d3b27e633b4fc8febbf7ddd5918ca687da38f497256ac52e35264e9f9f33338", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d3b27e633b4fc8febbf7ddd5918ca687da38f497256ac52e35264e9f9f33338", kill_on_drop: false }` [INFO] [stdout] 8d3b27e633b4fc8febbf7ddd5918ca687da38f497256ac52e35264e9f9f33338 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa1f474ea5ac44c132ae88af96c1347fab6949717c38460a6970882d6387bf14 [INFO] running `Command { std: "docker" "start" "-a" "fa1f474ea5ac44c132ae88af96c1347fab6949717c38460a6970882d6387bf14", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling slotmap v1.0.6 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Checking tokio v1.18.2 [INFO] [stderr] Checking batircd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/parse.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageIn` and `R2U` [INFO] [stdout] --> src/user.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{room::RoomID, protocol::{R2U, U2R, IRCString, Command, ToUser, U2U}, cancel::Cancel, sock::{Sock, MessageIn, MessageOut}, par... [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `ops::Not` [INFO] [stdout] --> src/world.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Not}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Key` and `SlotMap` [INFO] [stdout] --> src/world.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use slotmap::{SlotMap, Key}; [INFO] [stdout] | ^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/parse.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UnboundedReceiver`, `UnboundedSender`, and `broadcast` [INFO] [stdout] --> src/world.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::{sync::{broadcast, mpsc::{UnboundedReceiver, UnboundedSender}}, net::TcpListener}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageIn` and `R2U` [INFO] [stdout] --> src/user.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{room::RoomID, protocol::{R2U, U2R, IRCString, Command, ToUser, U2U}, cancel::Cancel, sock::{Sock, MessageIn, MessageOut}, par... [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RoomID`, `Room`, `UserID`, and `User` [INFO] [stdout] --> src/world.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{room::{Room, RoomID}, user::{User, UserID}, sock::Sock, directory::{Directory, DirectoryRoot}}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `ops::Not` [INFO] [stdout] --> src/world.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Not}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Key` and `SlotMap` [INFO] [stdout] --> src/world.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use slotmap::{SlotMap, Key}; [INFO] [stdout] | ^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UnboundedReceiver`, `UnboundedSender`, and `broadcast` [INFO] [stdout] --> src/world.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::{sync::{broadcast, mpsc::{UnboundedReceiver, UnboundedSender}}, net::TcpListener}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RoomID`, `Room`, `UserID`, and `User` [INFO] [stdout] --> src/world.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{room::{Room, RoomID}, user::{User, UserID}, sock::Sock, directory::{Directory, DirectoryRoot}}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/user.rs:201:33 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn send_room(&mut self, room: RoomID, msg: U2R) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/user.rs:201:47 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn send_room(&mut self, room: RoomID, msg: U2R) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rooms` is never read [INFO] [stdout] --> src/directory.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct DirectoryData { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 24 | rooms: SlotMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `user_drop`, `user_get_mailbox`, `user_by_nick`, and `user_get_nick` are never used [INFO] [stdout] --> src/directory.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Directory { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn user_drop(&self, user_id: UserID) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn user_get_mailbox(&self, user_id: UserID) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn user_by_nick(&self, nick: &IRCString) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn user_get_nick(&self, user_id: UserID) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `user_drop` and `user_get_nick` are never used [INFO] [stdout] --> src/directory.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl DirectoryData { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | fn user_drop(&mut self, user_id: UserID) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn user_get_nick(&self, user_id: UserID) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user` is never read [INFO] [stdout] --> src/protocol.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | Part { user: UserID }, [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `U2R` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Kill`, `Join`, and `Privmsg` are never constructed [INFO] [stdout] --> src/protocol.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum U2R { // user to room [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 41 | Kill {}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | Join { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | Privmsg { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `U2R` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Join`, `Part`, and `Privmsg` are never constructed [INFO] [stdout] --> src/protocol.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum R2U { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 55 | Join { user: UserID }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | Part { user: UserID }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | Privmsg { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `R2U` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Room` is never constructed [INFO] [stdout] --> src/protocol.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum ToUser { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 68 | Room { room_id: RoomID, message: R2U }, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `mailbox`, `cancel`, and `snapshot` are never read [INFO] [stdout] --> src/room.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: RoomID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^ ^^^^^^^ [INFO] [stdout] 12 | cancel: Cancel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | [INFO] [stdout] 14 | snapshot: watch::Receiver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoomState` is never constructed [INFO] [stdout] --> src/room.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct RoomState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `n_members` is never read [INFO] [stdout] --> src/room.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RoomSnapshot { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 33 | pub n_members: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RoomSnapshot` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Member` is never constructed [INFO] [stdout] --> src/room.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Member { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/room.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Room { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 42 | pub fn new(id: RoomID) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/room.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 71 | impl RoomState { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 72 | async fn flow(mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn touch_snapshot(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | async fn send(&mut self, user_id: UserID, msg: R2U) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | async fn broadcast(&mut self, msg: R2U) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub async fn kill(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub async fn join(&mut self, user: UserID, mailbox: mpsc::Sender<(RoomID, R2U)>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub async fn part(&mut self, user: UserID) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr`, `cancel1`, and `cancel2` are never read [INFO] [stdout] --> src/sock.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Sock { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | cancel1: Cancel, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | cancel2: Cancel, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time` is never read [INFO] [stdout] --> src/sock.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct MessageIn { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 143 | pub time: Instant, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `cancel` are never read [INFO] [stdout] --> src/user.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: UserID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | cancel: Cancel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mailbox` is never read [INFO] [stdout] --> src/user.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct UserState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 23 | id: UserID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mailbox` is never read [INFO] [stdout] --> src/user.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Membership { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 46 | mailbox: mpsc::Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/user.rs:201:33 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn send_room(&mut self, room: RoomID, msg: U2R) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/user.rs:201:47 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn send_room(&mut self, room: RoomID, msg: U2R) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rooms` is never read [INFO] [stdout] --> src/directory.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct DirectoryData { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 24 | rooms: SlotMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `user_drop`, `user_get_mailbox`, `user_by_nick`, and `user_get_nick` are never used [INFO] [stdout] --> src/directory.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Directory { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn user_drop(&self, user_id: UserID) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn user_get_mailbox(&self, user_id: UserID) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn user_by_nick(&self, nick: &IRCString) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn user_get_nick(&self, user_id: UserID) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `user_drop` and `user_get_nick` are never used [INFO] [stdout] --> src/directory.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl DirectoryData { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | fn user_drop(&mut self, user_id: UserID) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn user_get_nick(&self, user_id: UserID) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user` is never read [INFO] [stdout] --> src/protocol.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | Part { user: UserID }, [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `U2R` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Kill`, `Join`, and `Privmsg` are never constructed [INFO] [stdout] --> src/protocol.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum U2R { // user to room [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 41 | Kill {}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | Join { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | Privmsg { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `U2R` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Join`, `Part`, and `Privmsg` are never constructed [INFO] [stdout] --> src/protocol.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum R2U { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 55 | Join { user: UserID }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | Part { user: UserID }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | Privmsg { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `R2U` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Room` is never constructed [INFO] [stdout] --> src/protocol.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum ToUser { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 68 | Room { room_id: RoomID, message: R2U }, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `mailbox`, `cancel`, and `snapshot` are never read [INFO] [stdout] --> src/room.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: RoomID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^ ^^^^^^^ [INFO] [stdout] 12 | cancel: Cancel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | [INFO] [stdout] 14 | snapshot: watch::Receiver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoomState` is never constructed [INFO] [stdout] --> src/room.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct RoomState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `n_members` is never read [INFO] [stdout] --> src/room.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RoomSnapshot { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 33 | pub n_members: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RoomSnapshot` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Member` is never constructed [INFO] [stdout] --> src/room.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Member { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/room.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Room { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 42 | pub fn new(id: RoomID) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/room.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 71 | impl RoomState { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 72 | async fn flow(mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn touch_snapshot(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | async fn send(&mut self, user_id: UserID, msg: R2U) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | async fn broadcast(&mut self, msg: R2U) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub async fn kill(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub async fn join(&mut self, user: UserID, mailbox: mpsc::Sender<(RoomID, R2U)>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub async fn part(&mut self, user: UserID) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr`, `cancel1`, and `cancel2` are never read [INFO] [stdout] --> src/sock.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Sock { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | cancel1: Cancel, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | cancel2: Cancel, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time` is never read [INFO] [stdout] --> src/sock.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct MessageIn { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 143 | pub time: Instant, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `cancel` are never read [INFO] [stdout] --> src/user.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: UserID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | cancel: Cancel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mailbox` is never read [INFO] [stdout] --> src/user.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct UserState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 23 | id: UserID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mailbox` is never read [INFO] [stdout] --> src/user.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Membership { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 46 | mailbox: mpsc::Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.67s [INFO] running `Command { std: "docker" "inspect" "fa1f474ea5ac44c132ae88af96c1347fab6949717c38460a6970882d6387bf14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa1f474ea5ac44c132ae88af96c1347fab6949717c38460a6970882d6387bf14", kill_on_drop: false }` [INFO] [stdout] fa1f474ea5ac44c132ae88af96c1347fab6949717c38460a6970882d6387bf14 [INFO] checking nyeogmi/batircd against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyeogmi%2Fbatircd" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nyeogmi/batircd on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nyeogmi/batircd [INFO] finished tweaking git repo https://github.com/nyeogmi/batircd [INFO] tweaked toml for git repo https://github.com/nyeogmi/batircd written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/nyeogmi/batircd 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d90b8fd5974c35ca58dca136a7cd8c5bbfe0b00152b74284d88f7cb0fea79ff [INFO] running `Command { std: "docker" "start" "-a" "5d90b8fd5974c35ca58dca136a7cd8c5bbfe0b00152b74284d88f7cb0fea79ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d90b8fd5974c35ca58dca136a7cd8c5bbfe0b00152b74284d88f7cb0fea79ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d90b8fd5974c35ca58dca136a7cd8c5bbfe0b00152b74284d88f7cb0fea79ff", kill_on_drop: false }` [INFO] [stdout] 5d90b8fd5974c35ca58dca136a7cd8c5bbfe0b00152b74284d88f7cb0fea79ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63478be865993159094150ebfb1bebc9b3e0abf68960a539a5f7b0a05e309982 [INFO] running `Command { std: "docker" "start" "-a" "63478be865993159094150ebfb1bebc9b3e0abf68960a539a5f7b0a05e309982", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling slotmap v1.0.6 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Checking tokio v1.18.2 [INFO] [stderr] Checking batircd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/parse.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageIn` and `R2U` [INFO] [stdout] --> src/user.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{room::RoomID, protocol::{R2U, U2R, IRCString, Command, ToUser, U2U}, cancel::Cancel, sock::{Sock, MessageIn, MessageOut}, par... [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `ops::Not` [INFO] [stdout] --> src/world.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Not}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Key` and `SlotMap` [INFO] [stdout] --> src/world.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use slotmap::{SlotMap, Key}; [INFO] [stdout] | ^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UnboundedReceiver`, `UnboundedSender`, and `broadcast` [INFO] [stdout] --> src/world.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::{sync::{broadcast, mpsc::{UnboundedReceiver, UnboundedSender}}, net::TcpListener}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RoomID`, `Room`, `UserID`, and `User` [INFO] [stdout] --> src/world.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{room::{Room, RoomID}, user::{User, UserID}, sock::Sock, directory::{Directory, DirectoryRoot}}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/parse.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageIn` and `R2U` [INFO] [stdout] --> src/user.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{room::RoomID, protocol::{R2U, U2R, IRCString, Command, ToUser, U2U}, cancel::Cancel, sock::{Sock, MessageIn, MessageOut}, par... [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `ops::Not` [INFO] [stdout] --> src/world.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Not}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Key` and `SlotMap` [INFO] [stdout] --> src/world.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use slotmap::{SlotMap, Key}; [INFO] [stdout] | ^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UnboundedReceiver`, `UnboundedSender`, and `broadcast` [INFO] [stdout] --> src/world.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::{sync::{broadcast, mpsc::{UnboundedReceiver, UnboundedSender}}, net::TcpListener}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RoomID`, `Room`, `UserID`, and `User` [INFO] [stdout] --> src/world.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{room::{Room, RoomID}, user::{User, UserID}, sock::Sock, directory::{Directory, DirectoryRoot}}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/user.rs:201:33 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn send_room(&mut self, room: RoomID, msg: U2R) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/user.rs:201:47 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn send_room(&mut self, room: RoomID, msg: U2R) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rooms` is never read [INFO] [stdout] --> src/directory.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct DirectoryData { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 24 | rooms: SlotMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `user_drop`, `user_get_mailbox`, `user_by_nick`, and `user_get_nick` are never used [INFO] [stdout] --> src/directory.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Directory { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn user_drop(&self, user_id: UserID) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn user_get_mailbox(&self, user_id: UserID) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn user_by_nick(&self, nick: &IRCString) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn user_get_nick(&self, user_id: UserID) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `user_drop` and `user_get_nick` are never used [INFO] [stdout] --> src/directory.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl DirectoryData { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | fn user_drop(&mut self, user_id: UserID) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn user_get_nick(&self, user_id: UserID) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user` is never read [INFO] [stdout] --> src/protocol.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | Part { user: UserID }, [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `U2R` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Kill`, `Join`, and `Privmsg` are never constructed [INFO] [stdout] --> src/protocol.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum U2R { // user to room [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 41 | Kill {}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | Join { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | Privmsg { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `U2R` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Join`, `Part`, and `Privmsg` are never constructed [INFO] [stdout] --> src/protocol.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum R2U { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 55 | Join { user: UserID }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | Part { user: UserID }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | Privmsg { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `R2U` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Room` is never constructed [INFO] [stdout] --> src/protocol.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum ToUser { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 68 | Room { room_id: RoomID, message: R2U }, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `mailbox`, `cancel`, and `snapshot` are never read [INFO] [stdout] --> src/room.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: RoomID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^ ^^^^^^^ [INFO] [stdout] 12 | cancel: Cancel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | [INFO] [stdout] 14 | snapshot: watch::Receiver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoomState` is never constructed [INFO] [stdout] --> src/room.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct RoomState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `n_members` is never read [INFO] [stdout] --> src/room.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RoomSnapshot { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 33 | pub n_members: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RoomSnapshot` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Member` is never constructed [INFO] [stdout] --> src/room.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Member { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/room.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Room { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 42 | pub fn new(id: RoomID) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/room.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 71 | impl RoomState { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 72 | async fn flow(mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn touch_snapshot(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | async fn send(&mut self, user_id: UserID, msg: R2U) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | async fn broadcast(&mut self, msg: R2U) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub async fn kill(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub async fn join(&mut self, user: UserID, mailbox: mpsc::Sender<(RoomID, R2U)>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub async fn part(&mut self, user: UserID) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr`, `cancel1`, and `cancel2` are never read [INFO] [stdout] --> src/sock.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Sock { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | cancel1: Cancel, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | cancel2: Cancel, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time` is never read [INFO] [stdout] --> src/sock.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct MessageIn { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 143 | pub time: Instant, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `cancel` are never read [INFO] [stdout] --> src/user.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: UserID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | cancel: Cancel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mailbox` is never read [INFO] [stdout] --> src/user.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct UserState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 23 | id: UserID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mailbox` is never read [INFO] [stdout] --> src/user.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Membership { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 46 | mailbox: mpsc::Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(()) [INFO] [stdout] | ^^---- [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/cancel.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 7 | let (s, r) = oneshot::channel(); [INFO] [stdout] | - - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 8 | (Self(Some(s)), r) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn user_create(&self, conn: Sock) -> Option { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 49 | let dir = self.clone(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | self.data.upgrade().map(|a| a.lock().unwrap().user_create(dir, conn)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn user_create(&self, conn: Sock) -> Option { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 49 | let dir = self.clone(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | self.data.upgrade().map(|a| a.lock().unwrap().user_create(dir, conn)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn user_create(&self, conn: Sock) -> Option { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 49 | let dir = self.clone(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | self.data.upgrade().map(|a| a.lock().unwrap().user_create(dir, conn)) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | self.data.upgrade().map(|a| a.lock().unwrap().user_drop(user_id)); [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:58:42 [INFO] [stdout] | [INFO] [stdout] 58 | self.data.upgrade().and_then(|a| a.lock().unwrap().user_get_mailbox(user_id)) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:62:42 [INFO] [stdout] | [INFO] [stdout] 62 | self.data.upgrade().and_then(|a| a.lock().unwrap().user_by_nick(nick)) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:66:42 [INFO] [stdout] | [INFO] [stdout] 66 | self.data.upgrade().and_then(|a| a.lock().unwrap().user_get_nick(user_id)) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:102:36 [INFO] [stdout] | [INFO] [stdout] 101 | fn user_create(&mut self, dir: Directory, conn: Sock) -> UserID { [INFO] [stdout] | -------------- ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 102 | self.users.insert_with_key(|uid| User::new(uid, conn, dir)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sock.rs:25:70 [INFO] [stdout] | [INFO] [stdout] 18 | let (r, w) = socket.into_split(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | [INFO] [stdout] 20 | let (cancel1, receive_cancel1) = Cancel::new(); [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 24 | let (tx, rx) = mpsc::unbounded_channel(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 25 | tokio::spawn(async { Sock::_read(r, tx, receive_cancel1).await }); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sock.rs:30:71 [INFO] [stdout] | [INFO] [stdout] 18 | let (r, w) = socket.into_split(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | let (cancel2, receive_cancel2) = Cancel::new(); [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 29 | let (tx, rx) = mpsc::unbounded_channel(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 30 | tokio::spawn(async { Sock::_write(w, rx, receive_cancel2).await }); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/user.rs:68:48 [INFO] [stdout] | [INFO] [stdout] 54 | let user_state = UserState { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 68 | tokio::spawn(async { user_state.flow().await }); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/user.rs:201:33 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn send_room(&mut self, room: RoomID, msg: U2R) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/user.rs:201:47 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn send_room(&mut self, room: RoomID, msg: U2R) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `batircd` (bin "batircd" test) due to 14 previous errors; 26 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `rooms` is never read [INFO] [stdout] --> src/directory.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct DirectoryData { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 24 | rooms: SlotMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `user_drop`, `user_get_mailbox`, `user_by_nick`, and `user_get_nick` are never used [INFO] [stdout] --> src/directory.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Directory { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn user_drop(&self, user_id: UserID) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn user_get_mailbox(&self, user_id: UserID) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn user_by_nick(&self, nick: &IRCString) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn user_get_nick(&self, user_id: UserID) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `user_drop` and `user_get_nick` are never used [INFO] [stdout] --> src/directory.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl DirectoryData { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | fn user_drop(&mut self, user_id: UserID) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn user_get_nick(&self, user_id: UserID) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user` is never read [INFO] [stdout] --> src/protocol.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | Part { user: UserID }, [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `U2R` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Kill`, `Join`, and `Privmsg` are never constructed [INFO] [stdout] --> src/protocol.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum U2R { // user to room [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 41 | Kill {}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | Join { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | Privmsg { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `U2R` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Join`, `Part`, and `Privmsg` are never constructed [INFO] [stdout] --> src/protocol.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum R2U { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 55 | Join { user: UserID }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | Part { user: UserID }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | Privmsg { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `R2U` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Room` is never constructed [INFO] [stdout] --> src/protocol.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum ToUser { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 68 | Room { room_id: RoomID, message: R2U }, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `mailbox`, `cancel`, and `snapshot` are never read [INFO] [stdout] --> src/room.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: RoomID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^ ^^^^^^^ [INFO] [stdout] 12 | cancel: Cancel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | [INFO] [stdout] 14 | snapshot: watch::Receiver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoomState` is never constructed [INFO] [stdout] --> src/room.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct RoomState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `n_members` is never read [INFO] [stdout] --> src/room.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RoomSnapshot { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 33 | pub n_members: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RoomSnapshot` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Member` is never constructed [INFO] [stdout] --> src/room.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Member { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/room.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Room { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 42 | pub fn new(id: RoomID) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/room.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 71 | impl RoomState { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 72 | async fn flow(mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn touch_snapshot(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | async fn send(&mut self, user_id: UserID, msg: R2U) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | async fn broadcast(&mut self, msg: R2U) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub async fn kill(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub async fn join(&mut self, user: UserID, mailbox: mpsc::Sender<(RoomID, R2U)>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub async fn part(&mut self, user: UserID) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr`, `cancel1`, and `cancel2` are never read [INFO] [stdout] --> src/sock.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Sock { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | cancel1: Cancel, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | cancel2: Cancel, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time` is never read [INFO] [stdout] --> src/sock.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct MessageIn { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 143 | pub time: Instant, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `cancel` are never read [INFO] [stdout] --> src/user.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: UserID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | cancel: Cancel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mailbox` is never read [INFO] [stdout] --> src/user.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct UserState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 23 | id: UserID, mailbox: mpsc::Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mailbox` is never read [INFO] [stdout] --> src/user.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Membership { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 46 | mailbox: mpsc::Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(()) [INFO] [stdout] | ^^---- [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/cancel.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 7 | let (s, r) = oneshot::channel(); [INFO] [stdout] | - - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 8 | (Self(Some(s)), r) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn user_create(&self, conn: Sock) -> Option { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 49 | let dir = self.clone(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | self.data.upgrade().map(|a| a.lock().unwrap().user_create(dir, conn)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn user_create(&self, conn: Sock) -> Option { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 49 | let dir = self.clone(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | self.data.upgrade().map(|a| a.lock().unwrap().user_create(dir, conn)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn user_create(&self, conn: Sock) -> Option { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 49 | let dir = self.clone(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | self.data.upgrade().map(|a| a.lock().unwrap().user_create(dir, conn)) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | self.data.upgrade().map(|a| a.lock().unwrap().user_drop(user_id)); [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:58:42 [INFO] [stdout] | [INFO] [stdout] 58 | self.data.upgrade().and_then(|a| a.lock().unwrap().user_get_mailbox(user_id)) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:62:42 [INFO] [stdout] | [INFO] [stdout] 62 | self.data.upgrade().and_then(|a| a.lock().unwrap().user_by_nick(nick)) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:66:42 [INFO] [stdout] | [INFO] [stdout] 66 | self.data.upgrade().and_then(|a| a.lock().unwrap().user_get_nick(user_id)) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/directory.rs:102:36 [INFO] [stdout] | [INFO] [stdout] 101 | fn user_create(&mut self, dir: Directory, conn: Sock) -> UserID { [INFO] [stdout] | -------------- ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 102 | self.users.insert_with_key(|uid| User::new(uid, conn, dir)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sock.rs:25:70 [INFO] [stdout] | [INFO] [stdout] 18 | let (r, w) = socket.into_split(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | [INFO] [stdout] 20 | let (cancel1, receive_cancel1) = Cancel::new(); [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 24 | let (tx, rx) = mpsc::unbounded_channel(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 25 | tokio::spawn(async { Sock::_read(r, tx, receive_cancel1).await }); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sock.rs:30:71 [INFO] [stdout] | [INFO] [stdout] 18 | let (r, w) = socket.into_split(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | let (cancel2, receive_cancel2) = Cancel::new(); [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 29 | let (tx, rx) = mpsc::unbounded_channel(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 30 | tokio::spawn(async { Sock::_write(w, rx, receive_cancel2).await }); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/user.rs:68:48 [INFO] [stdout] | [INFO] [stdout] 54 | let user_state = UserState { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 68 | tokio::spawn(async { user_state.flow().await }); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `batircd` (bin "batircd") due to 14 previous errors; 26 warnings emitted [INFO] running `Command { std: "docker" "inspect" "63478be865993159094150ebfb1bebc9b3e0abf68960a539a5f7b0a05e309982", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63478be865993159094150ebfb1bebc9b3e0abf68960a539a5f7b0a05e309982", kill_on_drop: false }` [INFO] [stdout] 63478be865993159094150ebfb1bebc9b3e0abf68960a539a5f7b0a05e309982