[INFO] cloning repository https://github.com/thomhuds/matrix_server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thomhuds/matrix_server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthomhuds%2Fmatrix_server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthomhuds%2Fmatrix_server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d146cdc0718330f03d0b43e61b36fceb881154d5 [INFO] building thomhuds/matrix_server against master#a7f375789bab1a4e4a291c963081a8ca7d2b6bd7 for pr-93180 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthomhuds%2Fmatrix_server" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thomhuds/matrix_server on toolchain a7f375789bab1a4e4a291c963081a8ca7d2b6bd7 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thomhuds/matrix_server [INFO] finished tweaking git repo https://github.com/thomhuds/matrix_server [INFO] tweaked toml for git repo https://github.com/thomhuds/matrix_server written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/thomhuds/matrix_server already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f0a458cfbe4c544743784b19d5b55a8317d592759c236b2e61c401fe6d374379 [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" "f0a458cfbe4c544743784b19d5b55a8317d592759c236b2e61c401fe6d374379", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f0a458cfbe4c544743784b19d5b55a8317d592759c236b2e61c401fe6d374379", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0a458cfbe4c544743784b19d5b55a8317d592759c236b2e61c401fe6d374379", kill_on_drop: false }` [INFO] [stdout] f0a458cfbe4c544743784b19d5b55a8317d592759c236b2e61c401fe6d374379 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a2b4513c0a6a207dad466da9d41f9bee051e59d96f4c464ccb658b2dae8f17b [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" "4a2b4513c0a6a207dad466da9d41f9bee051e59d96f4c464ccb658b2dae8f17b", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.61 [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-core v0.3.13 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling futures-sink v0.3.13 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.13 [INFO] [stderr] Compiling futures-task v0.3.13 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling async-trait v0.1.45 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling gimli v0.23.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling object v0.23.0 [INFO] [stderr] Compiling rustc-demangle v0.1.18 [INFO] [stderr] Compiling const_fn v0.4.5 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling enum_extract v0.1.1 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling standback v0.2.15 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling time v0.2.25 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling tracing-core v0.2.0 (https://github.com/rosehuds/tracing#6b5f4521) [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling tokio v1.2.0 [INFO] [stderr] Compiling sharded-slab v0.1.1 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling futures-channel v0.3.13 [INFO] [stderr] Compiling tinyvec v1.1.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling itertools v0.10.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling http v0.2.3 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling blake2b_simd v0.5.11 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling tracing v0.1.25 [INFO] [stderr] Compiling tracing-log v0.2.0 (https://github.com/rosehuds/tracing#6b5f4521) [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling mio v0.7.9 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling crossbeam-channel v0.4.4 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling crossbeam-epoch v0.9.3 [INFO] [stderr] Compiling addr2line v0.14.1 [INFO] [stderr] Compiling sha-1 v0.9.4 [INFO] [stderr] Compiling rust-argon2 v0.5.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling idna v0.2.2 [INFO] [stderr] Compiling backtrace v0.3.56 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling sled v0.34.6 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling crossbeam v0.7.3 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling pin-project-internal v1.0.5 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling tracing-attributes v0.2.0 (https://github.com/rosehuds/tracing#6b5f4521) [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling actix-macros v0.2.0 [INFO] [stderr] Compiling displaydoc v0.1.7 [INFO] [stderr] Compiling async-recursion v0.3.2 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling futures-util v0.3.13 [INFO] [stderr] Compiling actix-rt v2.1.0 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling pin-project v1.0.5 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling tracing v0.2.0 (https://github.com/rosehuds/tracing#6b5f4521) [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling futures-executor v0.3.13 [INFO] [stderr] Compiling serde v1.0.124 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling futures v0.3.13 [INFO] [stderr] Compiling trust-dns-proto v0.19.6 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling trust-dns-resolver v0.19.6 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling tracing-serde v0.2.0 (https://github.com/rosehuds/tracing#6b5f4521) [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling bincode v1.3.2 [INFO] [stderr] Compiling actix-http v2.2.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.0 (https://github.com/rosehuds/tracing#6b5f4521) [INFO] [stderr] Compiling serde_canonical v0.1.0 [INFO] [stderr] Compiling tracing-error v0.2.0 (https://github.com/rosehuds/tracing#6b5f4521) [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling actix-web v3.3.2 [INFO] [stderr] Compiling actix-cors v0.5.4 [INFO] [stderr] Compiling kerux v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `io::Error as IoError` [INFO] [stdout] --> src/error.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, io::Error as IoError, str::Utf8Error, string::FromUtf8Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ser::SerializeStruct` [INFO] [stdout] --> src/events/ephemeral.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize, ser::SerializeStruct}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `time::Instant` [INFO] [stdout] --> src/events/ephemeral.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{time::Instant, collections::{HashMap, HashSet}}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `room::Membership` [INFO] [stdout] --> src/storage/mem.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | events::{ephemeral::Typing, room::Membership, Event, EventContent, PduV4, UnhashedPdu}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/room.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | let mut db = state.db_pool.get_handle().await?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/room.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | let mut db = state.db_pool.get_handle().await?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/room_events.rs:480:9 [INFO] [stdout] | [INFO] [stdout] 480 | let mut db = state.db_pool.get_handle().await?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/room_events.rs:513:9 [INFO] [stdout] | [INFO] [stdout] 513 | let mut db = state.db_pool.get_handle().await?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/client/auth.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | error::{Error, ErrorKind}, storage::{Storage, StorageManager}, util::MatrixId, ServerState [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/client/auth.rs:13:51 [INFO] [stdout] | [INFO] [stdout] 13 | error::{Error, ErrorKind}, storage::{Storage, StorageManager}, util::MatrixId, ServerState [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/client/ephemeral.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | storage::{Storage, StorageManager}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/client/ephemeral.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | storage::{Storage, StorageManager}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/client/room.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | storage::{Storage, StorageManager, UserProfile}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/client/room.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | storage::{Storage, StorageManager, UserProfile}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/client/room_events.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | storage::{EventQuery, Storage, StorageManager, QueryType}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/client/room_events.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | storage::{EventQuery, Storage, StorageManager, QueryType}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/client/user.rs:10:90 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{ServerState, client::auth::AccessToken, error::{Error, ErrorKind}, storage::{Storage, StorageManager, UserProfile}, util::Mat... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/client/user.rs:10:99 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{ServerState, client::auth::AccessToken, error::{Error, ErrorKind}, storage::{Storage, StorageManager, UserProfile}, util::Mat... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/util/mod.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{storage::{Storage, StorageManager}, ServerState}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/util/mod.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{storage::{Storage, StorageManager}, ServerState}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auth_event_keys_needed` [INFO] [stdout] --> src/state/mod.rs:137:21 [INFO] [stdout] | [INFO] [stdout] 137 | let auth_event_keys_needed = auth_types_for_event(&event); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auth_event_keys_needed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auth_event_keys_needed` [INFO] [stdout] --> src/state/mod.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | let auth_event_keys_needed = auth_types_for_event(&event); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auth_event_keys_needed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/storage/mem.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | Err(e) => Ok(false), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/storage/mem.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let hash = pdu.hashes.sha256.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `login_type` [INFO] [stdout] --> src/client/auth.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | login_type: LoginType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `LoginRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `token` [INFO] [stdout] --> src/client/auth.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | token: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LoginRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `initial_device_display_name` [INFO] [stdout] --> src/client/auth.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | initial_device_display_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LoginRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `medium` [INFO] [stdout] --> src/client/auth.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | medium: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> src/client/auth.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `country` [INFO] [stdout] --> src/client/auth.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | country: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `phone` [INFO] [stdout] --> src/client/auth.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | phone: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `auth` [INFO] [stdout] --> src/client/auth.rs:164:5 [INFO] [stdout] | [INFO] [stdout] 164 | auth: serde_json::Value, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `RegisterRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bind_email` [INFO] [stdout] --> src/client/auth.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | bind_email: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `RegisterRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bind_msisdn` [INFO] [stdout] --> src/client/auth.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | bind_msisdn: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `RegisterRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `initial_device_display_name` [INFO] [stdout] --> src/client/auth.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | initial_device_display_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `RegisterRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `room_alias_name` [INFO] [stdout] --> src/client/room.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | room_alias_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `invite_3pid` [INFO] [stdout] --> src/client/room.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | invite_3pid: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id_server` [INFO] [stdout] --> src/client/room.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | id_server: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `medium` [INFO] [stdout] --> src/client/room.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | medium: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> src/client/room.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `filter` [INFO] [stdout] --> src/client/room_events.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | filter: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SyncRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/room_events.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `set_presence` [INFO] [stdout] --> src/client/room_events.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | set_presence: SetPresence, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SyncRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/room_events.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `at` [INFO] [stdout] --> src/client/room_events.rs:419:5 [INFO] [stdout] | [INFO] [stdout] 419 | at: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `limit` [INFO] [stdout] --> src/client/user.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | limit: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Email` [INFO] [stdout] --> src/client/user.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 194 | Email, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Msisdn` [INFO] [stdout] --> src/client/user.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | Msisdn, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `room_id` [INFO] [stdout] --> src/state/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | room_id: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/state/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `map` [INFO] [stdout] --> src/state/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | map: HashMap<(Cow<'static, str>, Cow<'static, str>), String>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/state/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/state/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get<'s, 'k: 's>(&'s self, (event_type, state_key): (&'k str, &'k str)) -> Option<&'s str> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_content` [INFO] [stdout] --> src/state/mod.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn get_content(&self, db: &dyn Storage, state_key: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert_event` [INFO] [stdout] --> src/state/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn insert_event(&mut self, pdu: &PduV4) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `StateResolver` [INFO] [stdout] --> src/state/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct StateResolver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/state/mod.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(db: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resolve` [INFO] [stdout] --> src/state/mod.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn resolve(&self, room_id: &str, event: &PduV4) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resolve_v2` [INFO] [stdout] --> src/state/mod.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn resolve_v2(&self, room_id: &str, event: &PduV4) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `auth_chains` [INFO] [stdout] --> src/state/mod.rs:234:14 [INFO] [stdout] | [INFO] [stdout] 234 | async fn auth_chains(&self, room_id: &str, event_ids: &[String]) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `auth_difference` [INFO] [stdout] --> src/state/mod.rs:252:14 [INFO] [stdout] | [INFO] [stdout] 252 | async fn auth_difference(&self, room_id: &str, event_ids: &[String]) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_topological_power_ordering` [INFO] [stdout] --> src/state/mod.rs:275:14 [INFO] [stdout] | [INFO] [stdout] 275 | async fn reverse_topological_power_ordering(&self, room_id: &str, event_ids: HashSet) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_power_event` [INFO] [stdout] --> src/state/mod.rs:325:4 [INFO] [stdout] | [INFO] [stdout] 325 | fn is_power_event(pdu: &PduV4) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `auth_types_for_event` [INFO] [stdout] --> src/state/mod.rs:335:4 [INFO] [stdout] | [INFO] [stdout] 335 | fn auth_types_for_event(pdu: &PduV4) -> HashSet<(&str, &str)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mainline_cmp` [INFO] [stdout] --> src/state/mod.rs:359:4 [INFO] [stdout] | [INFO] [stdout] 359 | fn mainline_cmp(x: &(PduV4, usize), y: &(PduV4, usize)) -> Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `auth_check_v1` [INFO] [stdout] --> src/validate/auth.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn auth_check_v1(db: &dyn Storage, pdu: &PduV4, state: &State) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/storage/sled.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | / ordering_tree.transaction(|txn| { [INFO] [stdout] 414 | | dbg!(); [INFO] [stdout] 415 | | use ConflictableTransactionError::Abort; [INFO] [stdout] 416 | | if let Some(mut old_depth) = txn.get_value::<_, Depth>("depth").map_err(Abort)? { [INFO] [stdout] ... | [INFO] [stdout] 439 | | Ok(()) [INFO] [stdout] 440 | | }); [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: 63 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5m 28s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: time-macros-impl v0.1.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 20` [INFO] running `Command { std: "docker" "inspect" "4a2b4513c0a6a207dad466da9d41f9bee051e59d96f4c464ccb658b2dae8f17b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a2b4513c0a6a207dad466da9d41f9bee051e59d96f4c464ccb658b2dae8f17b", kill_on_drop: false }` [INFO] [stdout] 4a2b4513c0a6a207dad466da9d41f9bee051e59d96f4c464ccb658b2dae8f17b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cde32239bc10933102b1dd8c05b38f28e6a7215c8a71a3a26652f6c64df17a7 [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" "6cde32239bc10933102b1dd8c05b38f28e6a7215c8a71a3a26652f6c64df17a7", kill_on_drop: false }` [INFO] [stderr] Compiling kerux v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `io::Error as IoError` [INFO] [stdout] --> src/error.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, io::Error as IoError, str::Utf8Error, string::FromUtf8Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ser::SerializeStruct` [INFO] [stdout] --> src/events/ephemeral.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize, ser::SerializeStruct}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `time::Instant` [INFO] [stdout] --> src/events/ephemeral.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{time::Instant, collections::{HashMap, HashSet}}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `room::Membership` [INFO] [stdout] --> src/storage/mem.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | events::{ephemeral::Typing, room::Membership, Event, EventContent, PduV4, UnhashedPdu}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/room.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | let mut db = state.db_pool.get_handle().await?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/room.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | let mut db = state.db_pool.get_handle().await?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/room_events.rs:480:9 [INFO] [stdout] | [INFO] [stdout] 480 | let mut db = state.db_pool.get_handle().await?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/room_events.rs:513:9 [INFO] [stdout] | [INFO] [stdout] 513 | let mut db = state.db_pool.get_handle().await?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/client/auth.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | error::{Error, ErrorKind}, storage::{Storage, StorageManager}, util::MatrixId, ServerState [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/client/auth.rs:13:51 [INFO] [stdout] | [INFO] [stdout] 13 | error::{Error, ErrorKind}, storage::{Storage, StorageManager}, util::MatrixId, ServerState [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/client/ephemeral.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | storage::{Storage, StorageManager}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/client/ephemeral.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | storage::{Storage, StorageManager}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/client/room.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | storage::{Storage, StorageManager, UserProfile}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/client/room.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | storage::{Storage, StorageManager, UserProfile}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/client/room_events.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | storage::{EventQuery, Storage, StorageManager, QueryType}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/client/room_events.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | storage::{EventQuery, Storage, StorageManager, QueryType}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/client/user.rs:10:90 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{ServerState, client::auth::AccessToken, error::{Error, ErrorKind}, storage::{Storage, StorageManager, UserProfile}, util::Mat... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/client/user.rs:10:99 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{ServerState, client::auth::AccessToken, error::{Error, ErrorKind}, storage::{Storage, StorageManager, UserProfile}, util::Mat... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Storage` [INFO] [stdout] --> src/util/mod.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{storage::{Storage, StorageManager}, ServerState}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageManager` [INFO] [stdout] --> src/util/mod.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{storage::{Storage, StorageManager}, ServerState}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auth_event_keys_needed` [INFO] [stdout] --> src/state/mod.rs:137:21 [INFO] [stdout] | [INFO] [stdout] 137 | let auth_event_keys_needed = auth_types_for_event(&event); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auth_event_keys_needed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auth_event_keys_needed` [INFO] [stdout] --> src/state/mod.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | let auth_event_keys_needed = auth_types_for_event(&event); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auth_event_keys_needed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/storage/mem.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | Err(e) => Ok(false), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/storage/mem.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let hash = pdu.hashes.sha256.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `login_type` [INFO] [stdout] --> src/client/auth.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | login_type: LoginType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `LoginRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `token` [INFO] [stdout] --> src/client/auth.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | token: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LoginRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `initial_device_display_name` [INFO] [stdout] --> src/client/auth.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | initial_device_display_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LoginRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `medium` [INFO] [stdout] --> src/client/auth.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | medium: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> src/client/auth.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `country` [INFO] [stdout] --> src/client/auth.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | country: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `phone` [INFO] [stdout] --> src/client/auth.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | phone: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `auth` [INFO] [stdout] --> src/client/auth.rs:164:5 [INFO] [stdout] | [INFO] [stdout] 164 | auth: serde_json::Value, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `RegisterRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bind_email` [INFO] [stdout] --> src/client/auth.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | bind_email: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `RegisterRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bind_msisdn` [INFO] [stdout] --> src/client/auth.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | bind_msisdn: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `RegisterRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `initial_device_display_name` [INFO] [stdout] --> src/client/auth.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | initial_device_display_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `RegisterRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/auth.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `room_alias_name` [INFO] [stdout] --> src/client/room.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | room_alias_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `invite_3pid` [INFO] [stdout] --> src/client/room.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | invite_3pid: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id_server` [INFO] [stdout] --> src/client/room.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | id_server: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `medium` [INFO] [stdout] --> src/client/room.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | medium: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> src/client/room.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `filter` [INFO] [stdout] --> src/client/room_events.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | filter: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SyncRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/room_events.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `set_presence` [INFO] [stdout] --> src/client/room_events.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | set_presence: SetPresence, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SyncRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/room_events.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `at` [INFO] [stdout] --> src/client/room_events.rs:419:5 [INFO] [stdout] | [INFO] [stdout] 419 | at: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `limit` [INFO] [stdout] --> src/client/user.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | limit: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Email` [INFO] [stdout] --> src/client/user.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 194 | Email, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Msisdn` [INFO] [stdout] --> src/client/user.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | Msisdn, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `room_id` [INFO] [stdout] --> src/state/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | room_id: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/state/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `map` [INFO] [stdout] --> src/state/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | map: HashMap<(Cow<'static, str>, Cow<'static, str>), String>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/state/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/state/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get<'s, 'k: 's>(&'s self, (event_type, state_key): (&'k str, &'k str)) -> Option<&'s str> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_content` [INFO] [stdout] --> src/state/mod.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn get_content(&self, db: &dyn Storage, state_key: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert_event` [INFO] [stdout] --> src/state/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn insert_event(&mut self, pdu: &PduV4) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `StateResolver` [INFO] [stdout] --> src/state/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct StateResolver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/state/mod.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(db: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resolve` [INFO] [stdout] --> src/state/mod.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn resolve(&self, room_id: &str, event: &PduV4) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resolve_v2` [INFO] [stdout] --> src/state/mod.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn resolve_v2(&self, room_id: &str, event: &PduV4) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `auth_chains` [INFO] [stdout] --> src/state/mod.rs:234:14 [INFO] [stdout] | [INFO] [stdout] 234 | async fn auth_chains(&self, room_id: &str, event_ids: &[String]) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `auth_difference` [INFO] [stdout] --> src/state/mod.rs:252:14 [INFO] [stdout] | [INFO] [stdout] 252 | async fn auth_difference(&self, room_id: &str, event_ids: &[String]) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_topological_power_ordering` [INFO] [stdout] --> src/state/mod.rs:275:14 [INFO] [stdout] | [INFO] [stdout] 275 | async fn reverse_topological_power_ordering(&self, room_id: &str, event_ids: HashSet) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_power_event` [INFO] [stdout] --> src/state/mod.rs:325:4 [INFO] [stdout] | [INFO] [stdout] 325 | fn is_power_event(pdu: &PduV4) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `auth_types_for_event` [INFO] [stdout] --> src/state/mod.rs:335:4 [INFO] [stdout] | [INFO] [stdout] 335 | fn auth_types_for_event(pdu: &PduV4) -> HashSet<(&str, &str)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mainline_cmp` [INFO] [stdout] --> src/state/mod.rs:359:4 [INFO] [stdout] | [INFO] [stdout] 359 | fn mainline_cmp(x: &(PduV4, usize), y: &(PduV4, usize)) -> Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `auth_check_v1` [INFO] [stdout] --> src/validate/auth.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn auth_check_v1(db: &dyn Storage, pdu: &PduV4, state: &State) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/storage/sled.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | / ordering_tree.transaction(|txn| { [INFO] [stdout] 414 | | dbg!(); [INFO] [stdout] 415 | | use ConflictableTransactionError::Abort; [INFO] [stdout] 416 | | if let Some(mut old_depth) = txn.get_value::<_, Depth>("depth").map_err(Abort)? { [INFO] [stdout] ... | [INFO] [stdout] 439 | | Ok(()) [INFO] [stdout] 440 | | }); [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: 63 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 10.40s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: time-macros-impl v0.1.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 21` [INFO] running `Command { std: "docker" "inspect" "6cde32239bc10933102b1dd8c05b38f28e6a7215c8a71a3a26652f6c64df17a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cde32239bc10933102b1dd8c05b38f28e6a7215c8a71a3a26652f6c64df17a7", kill_on_drop: false }` [INFO] [stdout] 6cde32239bc10933102b1dd8c05b38f28e6a7215c8a71a3a26652f6c64df17a7