[INFO] cloning repository https://github.com/anhphan156/RegistrationBot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/anhphan156/RegistrationBot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanhphan156%2FRegistrationBot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanhphan156%2FRegistrationBot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7ad11296c79683f3f5d95e5a99e80f65d136a8c5 [INFO] building anhphan156/RegistrationBot against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanhphan156%2FRegistrationBot" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-0-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/anhphan156/RegistrationBot [INFO] finished tweaking git repo https://github.com/anhphan156/RegistrationBot [INFO] tweaked toml for git repo https://github.com/anhphan156/RegistrationBot written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/anhphan156/RegistrationBot on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/anhphan156/RegistrationBot 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tempfile v3.19.0 [INFO] [stderr] Downloaded time v0.3.39 [INFO] [stderr] Downloaded deadpool-redis v0.20.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0282fc142d18837ae65705dfccb3a734968526164d2d2fc590a5b026da375918 [INFO] running `Command { std: "docker" "start" "-a" "0282fc142d18837ae65705dfccb3a734968526164d2d2fc590a5b026da375918", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0282fc142d18837ae65705dfccb3a734968526164d2d2fc590a5b026da375918", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0282fc142d18837ae65705dfccb3a734968526164d2d2fc590a5b026da375918", kill_on_drop: false }` [INFO] [stdout] 0282fc142d18837ae65705dfccb3a734968526164d2d2fc590a5b026da375918 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b93366d2979fed2b9fc5985e70705d06db860b16034acf76e79cf3d7901a69c0 [INFO] running `Command { std: "docker" "start" "-a" "b93366d2979fed2b9fc5985e70705d06db860b16034acf76e79cf3d7901a69c0", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling time-core v0.1.3 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling time-macros v0.2.20 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling winnow v0.7.4 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling rustix v1.0.2 [INFO] [stderr] Compiling time v0.3.39 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling linux-raw-sys v0.9.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling iana-time-zone v0.1.62 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling tempfile v3.19.0 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling derive_builder v0.20.2 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling deadpool-runtime v0.1.4 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling deadpool v0.12.2 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling toml v0.8.20 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling redis v0.29.5 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling deadpool-redis v0.20.0 [INFO] [stderr] Compiling registration-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::embed::Embed` [INFO] [stdout] --> src/discord/interaction/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use super::embed::Embed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `embed::Embed` and `emoji::Emoji` [INFO] [stdout] --> src/discord/interaction_response/mod.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{embed::Embed, emoji::Emoji, interaction::Interaction}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/interaction_handler/mod.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IRStatus` [INFO] [stdout] --> src/interaction_handler/mod.rs:6:94 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::discord::{interaction::{Interaction, InteractionMetadata}, interaction_response::{IRStatus, InteractionResponse}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `persistence::redis_storage::RedisStorage` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use persistence::redis_storage::RedisStorage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::timestamp::RegistrationTime` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use utils::timestamp::RegistrationTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/utils/timestamp.rs:16:45 [INFO] [stdout] | [INFO] [stdout] 16 | let naive_datetime = NaiveDateTime::from_timestamp_opt(time, 0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BadJson` is never constructed [INFO] [stdout] --> src/discord/interaction/mod.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 88 | BadJson, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PatchFailed` and `PatchSuccess` are never constructed [INFO] [stdout] --> src/discord/interaction_response/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum IRStatus { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 19 | AppIdNotFound, [INFO] [stdout] 20 | PatchFailed, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 21 | PatchSuccess, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IRStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EPOCH` is never used [INFO] [stdout] --> src/utils/snowflake.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const EPOCH: u64 = 1_288_834_974_657; // Twitter Snowflake epoch (Nov 4, 2010) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MACHINE_ID_BITS` is never used [INFO] [stdout] --> src/utils/snowflake.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const MACHINE_ID_BITS: u64 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEQUENCE_BITS` is never used [INFO] [stdout] --> src/utils/snowflake.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const SEQUENCE_BITS: u64 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SEQUENCE` is never used [INFO] [stdout] --> src/utils/snowflake.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const MAX_SEQUENCE: u64 = (1 << SEQUENCE_BITS) - 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TIMESTAMP_SHIFT` is never used [INFO] [stdout] --> src/utils/snowflake.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const TIMESTAMP_SHIFT: u64 = MACHINE_ID_BITS + SEQUENCE_BITS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MACHINE_ID_SHIFT` is never used [INFO] [stdout] --> src/utils/snowflake.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const MACHINE_ID_SHIFT: u64 = SEQUENCE_BITS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SnowflakeGenerator` is never constructed [INFO] [stdout] --> src/utils/snowflake.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct SnowflakeGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `generate`, `current_timestamp`, and `get_next_milisec` are never used [INFO] [stdout] --> src/utils/snowflake.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl SnowflakeGenerator { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn generate(&self) -> Snowflake { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn current_timestamp(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn get_next_milisec(&self, last_timestamp: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NoFileName` is never constructed [INFO] [stdout] --> src/persistence/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum PersistenceError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | NoFileName, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PersistenceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Persistence` is never used [INFO] [stdout] --> src/persistence/mod.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Persistence { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileStorage` is never constructed [INFO] [stdout] --> src/persistence/file_storage.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct FileStorage<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/persistence/file_storage.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> FileStorage<'a> { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 11 | pub fn new(file_name: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 33s [INFO] running `Command { std: "docker" "inspect" "b93366d2979fed2b9fc5985e70705d06db860b16034acf76e79cf3d7901a69c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b93366d2979fed2b9fc5985e70705d06db860b16034acf76e79cf3d7901a69c0", kill_on_drop: false }` [INFO] [stdout] b93366d2979fed2b9fc5985e70705d06db860b16034acf76e79cf3d7901a69c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1732689aaf2a9a7d4c21bcf2a9b1afd9ed2a15c611ed600ae87905ff6d04bc0d [INFO] running `Command { std: "docker" "start" "-a" "1732689aaf2a9a7d4c21bcf2a9b1afd9ed2a15c611ed600ae87905ff6d04bc0d", kill_on_drop: false }` [INFO] [stderr] Compiling registration-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::embed::Embed` [INFO] [stdout] --> src/discord/interaction/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use super::embed::Embed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `embed::Embed` and `emoji::Emoji` [INFO] [stdout] --> src/discord/interaction_response/mod.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{embed::Embed, emoji::Emoji, interaction::Interaction}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/interaction_handler/mod.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IRStatus` [INFO] [stdout] --> src/interaction_handler/mod.rs:6:94 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::discord::{interaction::{Interaction, InteractionMetadata}, interaction_response::{IRStatus, InteractionResponse}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `persistence::redis_storage::RedisStorage` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use persistence::redis_storage::RedisStorage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::timestamp::RegistrationTime` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use utils::timestamp::RegistrationTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/utils/timestamp.rs:16:45 [INFO] [stdout] | [INFO] [stdout] 16 | let naive_datetime = NaiveDateTime::from_timestamp_opt(time, 0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BadJson` is never constructed [INFO] [stdout] --> src/discord/interaction/mod.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 88 | BadJson, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PatchFailed` and `PatchSuccess` are never constructed [INFO] [stdout] --> src/discord/interaction_response/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum IRStatus { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 19 | AppIdNotFound, [INFO] [stdout] 20 | PatchFailed, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 21 | PatchSuccess, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IRStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EPOCH` is never used [INFO] [stdout] --> src/utils/snowflake.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const EPOCH: u64 = 1_288_834_974_657; // Twitter Snowflake epoch (Nov 4, 2010) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MACHINE_ID_BITS` is never used [INFO] [stdout] --> src/utils/snowflake.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const MACHINE_ID_BITS: u64 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEQUENCE_BITS` is never used [INFO] [stdout] --> src/utils/snowflake.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const SEQUENCE_BITS: u64 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SEQUENCE` is never used [INFO] [stdout] --> src/utils/snowflake.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const MAX_SEQUENCE: u64 = (1 << SEQUENCE_BITS) - 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TIMESTAMP_SHIFT` is never used [INFO] [stdout] --> src/utils/snowflake.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const TIMESTAMP_SHIFT: u64 = MACHINE_ID_BITS + SEQUENCE_BITS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MACHINE_ID_SHIFT` is never used [INFO] [stdout] --> src/utils/snowflake.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const MACHINE_ID_SHIFT: u64 = SEQUENCE_BITS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SnowflakeGenerator` is never constructed [INFO] [stdout] --> src/utils/snowflake.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct SnowflakeGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `generate`, `current_timestamp`, and `get_next_milisec` are never used [INFO] [stdout] --> src/utils/snowflake.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl SnowflakeGenerator { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn generate(&self) -> Snowflake { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn current_timestamp(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn get_next_milisec(&self, last_timestamp: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NoFileName` is never constructed [INFO] [stdout] --> src/persistence/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum PersistenceError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | NoFileName, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PersistenceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Persistence` is never used [INFO] [stdout] --> src/persistence/mod.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Persistence { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileStorage` is never constructed [INFO] [stdout] --> src/persistence/file_storage.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct FileStorage<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/persistence/file_storage.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> FileStorage<'a> { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 11 | pub fn new(file_name: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.28s [INFO] running `Command { std: "docker" "inspect" "1732689aaf2a9a7d4c21bcf2a9b1afd9ed2a15c611ed600ae87905ff6d04bc0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1732689aaf2a9a7d4c21bcf2a9b1afd9ed2a15c611ed600ae87905ff6d04bc0d", kill_on_drop: false }` [INFO] [stdout] 1732689aaf2a9a7d4c21bcf2a9b1afd9ed2a15c611ed600ae87905ff6d04bc0d