[INFO] cloning repository https://github.com/Atte/discord-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Atte/discord-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtte%2Fdiscord-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtte%2Fdiscord-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a01f37271d72ec68197469bca1aee627b131936f [INFO] checking Atte/discord-bot/a01f37271d72ec68197469bca1aee627b131936f against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtte%2Fdiscord-bot" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Atte/discord-bot on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Atte/discord-bot [INFO] finished tweaking git repo https://github.com/Atte/discord-bot [INFO] tweaked toml for git repo https://github.com/Atte/discord-bot written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Atte/discord-bot 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d1bacbd3b04ff5bfb599a1f915deb3f0f999b70c3b67c06e48ce7d9e56f24259 [INFO] running `Command { std: "docker" "start" "-a" "d1bacbd3b04ff5bfb599a1f915deb3f0f999b70c3b67c06e48ce7d9e56f24259", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d1bacbd3b04ff5bfb599a1f915deb3f0f999b70c3b67c06e48ce7d9e56f24259", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1bacbd3b04ff5bfb599a1f915deb3f0f999b70c3b67c06e48ce7d9e56f24259", kill_on_drop: false }` [INFO] [stdout] d1bacbd3b04ff5bfb599a1f915deb3f0f999b70c3b67c06e48ce7d9e56f24259 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a8b6786f9816c8bdaaf5327b0815aa13bfcdfda376c44410fbe6bf89a1d2b984 [INFO] running `Command { std: "docker" "start" "-a" "a8b6786f9816c8bdaaf5327b0815aa13bfcdfda376c44410fbe6bf89a1d2b984", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling cc v1.1.7 [INFO] [stderr] Checking indexmap v2.3.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling serde_json v1.0.122 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustls v0.23.12 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking flate2 v1.0.31 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking matches v0.1.10 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling rustc_version_runtime v0.2.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking gimli v0.28.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking owo-colors v3.5.0 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Checking winnow v0.6.18 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling serenity v0.12.2 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking rustls-pemfile v2.1.3 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking levenshtein v1.0.5 [INFO] [stderr] Checking custom_derive v0.1.7 [INFO] [stderr] Checking nom v1.2.4 [INFO] [stderr] Checking typemap_rev v0.3.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking uwl v0.6.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking conv v0.3.3 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking tabwriter v1.4.0 [INFO] [stderr] Checking nonzero_ext v0.3.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking meval v0.2.0 [INFO] [stderr] Checking mock_instant v0.3.2 [INFO] [stderr] Checking tempfile v3.11.0 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tokio v1.39.2 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling command_attr v0.5.2 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking rustls-webpki v0.102.6 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling serde_with_macros v3.9.0 [INFO] [stderr] Checking color-spantrace v0.2.1 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking color-eyre v0.6.3 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking proptest v1.5.0 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-rustls v0.25.0 [INFO] [stderr] Checking async-compression v0.4.12 [INFO] [stderr] Checking tokio-rustls v0.26.0 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_spanned v0.6.7 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_bytes v0.11.15 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking serde_cow v0.1.2 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking secrecy v0.8.0 [INFO] [stderr] Checking toml_edit v0.22.20 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking trust-dns-proto v0.21.2 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking serde_with v3.9.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking trust-dns-resolver v0.21.2 [INFO] [stderr] Checking bson v2.11.0 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking mongodb v2.8.2 [INFO] [stderr] Checking hyper-rustls v0.27.2 [INFO] [stderr] Checking reqwest v0.12.5 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking discord-bot v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/main.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use std::{sync::Arc, time::Duration}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | unused [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/discord/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OptionExt` [INFO] [stdout] --> src/discord/commands/ranks.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use color_eyre::eyre::{eyre, OptionExt, Result}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `derpibooru_embed` and `derpibooru_search` [INFO] [stdout] --> src/discord/commands/mod.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub use gib::{derpibooru_embed, derpibooru_search}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/main.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use std::{sync::Arc, time::Duration}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | unused [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/discord/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OptionExt` [INFO] [stdout] --> src/discord/commands/ranks.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use color_eyre::eyre::{eyre, OptionExt, Result}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `derpibooru_embed` and `derpibooru_search` [INFO] [stdout] --> src/discord/commands/mod.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub use gib::{derpibooru_embed, derpibooru_search}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/discord/commands/ranks.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | let mut ranks = Ranks::from_guild(ctx, guild_id).await?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/discord/commands/ranks.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | let mut ranks = Ranks::from_guild(ctx, guild_id).await?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shy_artists` is never read [INFO] [stdout] --> src/config.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct GibConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | pub shy_artists: HashSet, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GibConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rate` and `delete_old_messages` are never read [INFO] [stdout] --> src/config.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct CronConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 88 | pub rate: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | #[serde(default)] [INFO] [stdout] 90 | pub delete_old_messages: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CronConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `url` is never read [INFO] [stdout] --> src/config.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct BerrytubeConfig { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 95 | pub url: SubstitutingString, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BerrytubeConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `guild`, `api_key`, `calendar_key`, `recurring_subcalendars`, `oneoff_subcalendars`, and `location` are never read [INFO] [stdout] --> src/config.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 99 | pub struct TeamupConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 100 | pub guild: GuildId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 101 | pub api_key: SubstitutingString, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 102 | pub calendar_key: SubstitutingString, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 103 | #[serde(default)] [INFO] [stdout] 104 | pub recurring_subcalendars: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 105 | #[serde(default)] [INFO] [stdout] 106 | pub oneoff_subcalendars: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 107 | pub location: SubstitutingString, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TeamupConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key`, `temperature`, `prompt`, `examples`, `bot_replacements`, and `user_replacements` are never read [INFO] [stdout] --> src/config.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct OpenAiConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 112 | pub api_key: SubstitutingString, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 113 | pub temperature: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 114 | pub prompt: SubstitutingString, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 115 | #[serde(default)] [INFO] [stdout] 116 | pub examples: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 117 | #[serde(default)] [INFO] [stdout] 118 | pub bot_replacements: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 119 | #[serde(default)] [INFO] [stdout] 120 | pub user_replacements: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/config.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 124 | pub struct BattlegroundsConfig { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 125 | pub api: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 126 | #[serde(default)] [INFO] [stdout] 127 | pub debug: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 128 | pub guild: GuildId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 129 | pub player_role: RoleId, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 130 | pub playing_role: RoleId, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 131 | pub lobby_channel: ChannelId, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 132 | pub arena_channel: ChannelId, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 133 | pub max_idle_rounds: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 134 | pub min_players: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BattlegroundsConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `safe_reply` is never used [INFO] [stdout] --> src/discord/safe_reply.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait SafeReply { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 15 | async fn safe_reply(&self, ctx: &Context, content: impl Into + Send) [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/discord/commands/ranks.rs:86:30 [INFO] [stdout] | [INFO] [stdout] 86 | members: guild [INFO] [stdout] | ______________________________^ [INFO] [stdout] 87 | | .members [INFO] [stdout] 88 | | .values() [INFO] [stdout] 89 | | .filter(|member| member.roles.iter().any(|id| id == &role.id)) [INFO] [stdout] 90 | | .cloned() [INFO] [stdout] 91 | | .collect(), [INFO] [stdout] | |__________________________________^ [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/discord/commands/ranks.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 112 | fn of_user(&self, user: impl Into) -> Self { [INFO] [stdout] | ----------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 115 | / self.0 [INFO] [stdout] 116 | | .iter() [INFO] [stdout] 117 | | .filter(|rank| rank.members.iter().any(|member| member.user.id == user_id)) [INFO] [stdout] 118 | | .cloned() [INFO] [stdout] 119 | | .collect(), [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/discord/commands/gib.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 109 | .filter_map(|doc| async move { [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 110 | doc.ok().and_then(|doc| { [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/discord/event_handler.rs:26:56 [INFO] [stdout] | [INFO] [stdout] 26 | async fn ready(&self, ctx: Context, _ready: Ready) { [INFO] [stdout] | ___________________________------------__-------------__^ [INFO] [stdout] | | | | [INFO] [stdout] | | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 27 | | if let Some(activity) = { [INFO] [stdout] 28 | | let data = ctx.data.read().await; [INFO] [stdout] 29 | | data.get::() [INFO] [stdout] ... | [INFO] [stdout] 33 | | } [INFO] [stdout] 34 | | } [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/discord/event_handler.rs:36:61 [INFO] [stdout] | [INFO] [stdout] 36 | async fn message(&self, ctx: Context, message: Message) { [INFO] [stdout] | _____________________________------------__----------------__^ [INFO] [stdout] | | | | [INFO] [stdout] | | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 37 | | if message.author.bot { [INFO] [stdout] 38 | | return; [INFO] [stdout] 39 | | } [INFO] [stdout] ... | [INFO] [stdout] 70 | | } [INFO] [stdout] 71 | | } [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/discord/event_handler.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 75 | ctx: Context, [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 79 | ) { [INFO] [stdout] | _______^ [INFO] [stdout] 80 | | if let Some(guild_id) = guild_id { [INFO] [stdout] 81 | | if let Some(message) = ctx [INFO] [stdout] 82 | | .cache [INFO] [stdout] ... | [INFO] [stdout] 92 | | } [INFO] [stdout] 93 | | } [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/discord/event_handler.rs:101:7 [INFO] [stdout] | [INFO] [stdout] 97 | ctx: Context, [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 101 | ) { [INFO] [stdout] | _______^ [INFO] [stdout] 102 | | if let Some(guild_id) = guild_id { [INFO] [stdout] 103 | | for message_id in messages_ids { [INFO] [stdout] 104 | | if let Some(message) = ctx [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] 117 | | } [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/discord/event_handler.rs:119:77 [INFO] [stdout] | [INFO] [stdout] 119 | async fn guild_member_addition(&self, ctx: Context, mut member: Member) { [INFO] [stdout] | ___________________________________________------------______--------------__^ [INFO] [stdout] | | | | [INFO] [stdout] | | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 120 | | if let Err(err) = log_channel::member_added(&ctx, member.guild_id, &member.user).await { [INFO] [stdout] 121 | | error!("Unable to log member addition: {err:?}"); [INFO] [stdout] 122 | | } [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] 134 | | } [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/discord/event_handler.rs:142:7 [INFO] [stdout] | [INFO] [stdout] 138 | ctx: Context, [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 139 | guild_id: GuildId, [INFO] [stdout] 140 | user: User, [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 141 | _member: Option, [INFO] [stdout] | ----------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 142 | ) { [INFO] [stdout] | _______^ [INFO] [stdout] 143 | | if let Err(err) = log_channel::member_removed(&ctx, guild_id, &user).await { [INFO] [stdout] 144 | | error!("Unable to log member removal: {err:?}"); [INFO] [stdout] 145 | | } [INFO] [stdout] 146 | | } [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/discord/event_handler.rs:154:7 [INFO] [stdout] | [INFO] [stdout] 150 | ctx: Context, [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 151 | old_member: Option, [INFO] [stdout] | -------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 152 | new_member: Option, [INFO] [stdout] | -------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 153 | _event: GuildMemberUpdateEvent, [INFO] [stdout] | ------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 154 | ) { [INFO] [stdout] | _______^ [INFO] [stdout] 155 | | let Some(new_member) = new_member else { [INFO] [stdout] 156 | | return; [INFO] [stdout] 157 | | }; [INFO] [stdout] ... | [INFO] [stdout] 165 | | } [INFO] [stdout] 166 | | } [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/discord/event_handler.rs:168:68 [INFO] [stdout] | [INFO] [stdout] 168 | async fn reaction_add(&self, ctx: Context, reaction: Reaction) { [INFO] [stdout] | __________________________________------------__------------------__^ [INFO] [stdout] | | | | [INFO] [stdout] | | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 169 | | if let Err(err) = rules_check::handle_reaction(ctx, reaction).await { [INFO] [stdout] 170 | | error!("Error handling rule reaction: {err:?}"); [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [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/discord/safe_reply.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 31 | content: impl Into + Send, [INFO] [stdout] | --------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 32 | ) -> Result { [INFO] [stdout] | __________________________^ [INFO] [stdout] 33 | | Ok(self.safe_reply_paged(ctx, content, 1).await?.remove(0)) [INFO] [stdout] 34 | | } [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/discord/safe_reply.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 39 | content: impl Into + Send, [INFO] [stdout] | --------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 40 | max_pages: usize, [INFO] [stdout] 41 | ) -> Result> { [INFO] [stdout] | _______________________________^ [INFO] [stdout] 42 | | let mut safe_opts = ContentSafeOptions::default().show_discriminator(false); [INFO] [stdout] 43 | | if let Some(guild_id) = self.guild_id { [INFO] [stdout] 44 | | safe_opts = safe_opts.display_as_member_from(guild_id); [INFO] [stdout] ... | [INFO] [stdout] 75 | | Ok(responses) [INFO] [stdout] 76 | | } [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; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `discord-bot` (bin "discord-bot") due to 14 previous errors; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `shy_artists` is never read [INFO] [stdout] --> src/config.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct GibConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | pub shy_artists: HashSet, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GibConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rate` and `delete_old_messages` are never read [INFO] [stdout] --> src/config.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct CronConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 88 | pub rate: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | #[serde(default)] [INFO] [stdout] 90 | pub delete_old_messages: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CronConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `url` is never read [INFO] [stdout] --> src/config.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct BerrytubeConfig { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 95 | pub url: SubstitutingString, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BerrytubeConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `guild`, `api_key`, `calendar_key`, `recurring_subcalendars`, `oneoff_subcalendars`, and `location` are never read [INFO] [stdout] --> src/config.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 99 | pub struct TeamupConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 100 | pub guild: GuildId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 101 | pub api_key: SubstitutingString, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 102 | pub calendar_key: SubstitutingString, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 103 | #[serde(default)] [INFO] [stdout] 104 | pub recurring_subcalendars: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 105 | #[serde(default)] [INFO] [stdout] 106 | pub oneoff_subcalendars: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 107 | pub location: SubstitutingString, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TeamupConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key`, `temperature`, `prompt`, `examples`, `bot_replacements`, and `user_replacements` are never read [INFO] [stdout] --> src/config.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct OpenAiConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 112 | pub api_key: SubstitutingString, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 113 | pub temperature: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 114 | pub prompt: SubstitutingString, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 115 | #[serde(default)] [INFO] [stdout] 116 | pub examples: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 117 | #[serde(default)] [INFO] [stdout] 118 | pub bot_replacements: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 119 | #[serde(default)] [INFO] [stdout] 120 | pub user_replacements: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/config.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 124 | pub struct BattlegroundsConfig { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 125 | pub api: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 126 | #[serde(default)] [INFO] [stdout] 127 | pub debug: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 128 | pub guild: GuildId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 129 | pub player_role: RoleId, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 130 | pub playing_role: RoleId, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 131 | pub lobby_channel: ChannelId, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 132 | pub arena_channel: ChannelId, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 133 | pub max_idle_rounds: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 134 | pub min_players: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BattlegroundsConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `safe_reply` is never used [INFO] [stdout] --> src/discord/safe_reply.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait SafeReply { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 15 | async fn safe_reply(&self, ctx: &Context, content: impl Into + Send) [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/discord/commands/ranks.rs:86:30 [INFO] [stdout] | [INFO] [stdout] 86 | members: guild [INFO] [stdout] | ______________________________^ [INFO] [stdout] 87 | | .members [INFO] [stdout] 88 | | .values() [INFO] [stdout] 89 | | .filter(|member| member.roles.iter().any(|id| id == &role.id)) [INFO] [stdout] 90 | | .cloned() [INFO] [stdout] 91 | | .collect(), [INFO] [stdout] | |__________________________________^ [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/discord/commands/ranks.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 112 | fn of_user(&self, user: impl Into) -> Self { [INFO] [stdout] | ----------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 115 | / self.0 [INFO] [stdout] 116 | | .iter() [INFO] [stdout] 117 | | .filter(|rank| rank.members.iter().any(|member| member.user.id == user_id)) [INFO] [stdout] 118 | | .cloned() [INFO] [stdout] 119 | | .collect(), [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/discord/commands/gib.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 109 | .filter_map(|doc| async move { [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 110 | doc.ok().and_then(|doc| { [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/discord/event_handler.rs:26:56 [INFO] [stdout] | [INFO] [stdout] 26 | async fn ready(&self, ctx: Context, _ready: Ready) { [INFO] [stdout] | ___________________________------------__-------------__^ [INFO] [stdout] | | | | [INFO] [stdout] | | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 27 | | if let Some(activity) = { [INFO] [stdout] 28 | | let data = ctx.data.read().await; [INFO] [stdout] 29 | | data.get::() [INFO] [stdout] ... | [INFO] [stdout] 33 | | } [INFO] [stdout] 34 | | } [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/discord/event_handler.rs:36:61 [INFO] [stdout] | [INFO] [stdout] 36 | async fn message(&self, ctx: Context, message: Message) { [INFO] [stdout] | _____________________________------------__----------------__^ [INFO] [stdout] | | | | [INFO] [stdout] | | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 37 | | if message.author.bot { [INFO] [stdout] 38 | | return; [INFO] [stdout] 39 | | } [INFO] [stdout] ... | [INFO] [stdout] 70 | | } [INFO] [stdout] 71 | | } [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/discord/event_handler.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 75 | ctx: Context, [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 79 | ) { [INFO] [stdout] | _______^ [INFO] [stdout] 80 | | if let Some(guild_id) = guild_id { [INFO] [stdout] 81 | | if let Some(message) = ctx [INFO] [stdout] 82 | | .cache [INFO] [stdout] ... | [INFO] [stdout] 92 | | } [INFO] [stdout] 93 | | } [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/discord/event_handler.rs:101:7 [INFO] [stdout] | [INFO] [stdout] 97 | ctx: Context, [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 101 | ) { [INFO] [stdout] | _______^ [INFO] [stdout] 102 | | if let Some(guild_id) = guild_id { [INFO] [stdout] 103 | | for message_id in messages_ids { [INFO] [stdout] 104 | | if let Some(message) = ctx [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] 117 | | } [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/discord/event_handler.rs:119:77 [INFO] [stdout] | [INFO] [stdout] 119 | async fn guild_member_addition(&self, ctx: Context, mut member: Member) { [INFO] [stdout] | ___________________________________________------------______--------------__^ [INFO] [stdout] | | | | [INFO] [stdout] | | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 120 | | if let Err(err) = log_channel::member_added(&ctx, member.guild_id, &member.user).await { [INFO] [stdout] 121 | | error!("Unable to log member addition: {err:?}"); [INFO] [stdout] 122 | | } [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] 134 | | } [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/discord/event_handler.rs:142:7 [INFO] [stdout] | [INFO] [stdout] 138 | ctx: Context, [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 139 | guild_id: GuildId, [INFO] [stdout] 140 | user: User, [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 141 | _member: Option, [INFO] [stdout] | ----------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 142 | ) { [INFO] [stdout] | _______^ [INFO] [stdout] 143 | | if let Err(err) = log_channel::member_removed(&ctx, guild_id, &user).await { [INFO] [stdout] 144 | | error!("Unable to log member removal: {err:?}"); [INFO] [stdout] 145 | | } [INFO] [stdout] 146 | | } [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/discord/event_handler.rs:154:7 [INFO] [stdout] | [INFO] [stdout] 150 | ctx: Context, [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 151 | old_member: Option, [INFO] [stdout] | -------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 152 | new_member: Option, [INFO] [stdout] | -------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 153 | _event: GuildMemberUpdateEvent, [INFO] [stdout] | ------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 154 | ) { [INFO] [stdout] | _______^ [INFO] [stdout] 155 | | let Some(new_member) = new_member else { [INFO] [stdout] 156 | | return; [INFO] [stdout] 157 | | }; [INFO] [stdout] ... | [INFO] [stdout] 165 | | } [INFO] [stdout] 166 | | } [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/discord/event_handler.rs:168:68 [INFO] [stdout] | [INFO] [stdout] 168 | async fn reaction_add(&self, ctx: Context, reaction: Reaction) { [INFO] [stdout] | __________________________________------------__------------------__^ [INFO] [stdout] | | | | [INFO] [stdout] | | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 169 | | if let Err(err) = rules_check::handle_reaction(ctx, reaction).await { [INFO] [stdout] 170 | | error!("Error handling rule reaction: {err:?}"); [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [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/discord/safe_reply.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 31 | content: impl Into + Send, [INFO] [stdout] | --------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 32 | ) -> Result { [INFO] [stdout] | __________________________^ [INFO] [stdout] 33 | | Ok(self.safe_reply_paged(ctx, content, 1).await?.remove(0)) [INFO] [stdout] 34 | | } [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/discord/safe_reply.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 39 | content: impl Into + Send, [INFO] [stdout] | --------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 40 | max_pages: usize, [INFO] [stdout] 41 | ) -> Result> { [INFO] [stdout] | _______________________________^ [INFO] [stdout] 42 | | let mut safe_opts = ContentSafeOptions::default().show_discriminator(false); [INFO] [stdout] 43 | | if let Some(guild_id) = self.guild_id { [INFO] [stdout] 44 | | safe_opts = safe_opts.display_as_member_from(guild_id); [INFO] [stdout] ... | [INFO] [stdout] 75 | | Ok(responses) [INFO] [stdout] 76 | | } [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; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `discord-bot` (bin "discord-bot" test) due to 14 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a8b6786f9816c8bdaaf5327b0815aa13bfcdfda376c44410fbe6bf89a1d2b984", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8b6786f9816c8bdaaf5327b0815aa13bfcdfda376c44410fbe6bf89a1d2b984", kill_on_drop: false }` [INFO] [stdout] a8b6786f9816c8bdaaf5327b0815aa13bfcdfda376c44410fbe6bf89a1d2b984