[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] testing anhphan156/RegistrationBot against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanhphan156%2FRegistrationBot" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-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-4-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] Downloading crates ... [INFO] [stderr] Downloaded time-macros v0.2.20 [INFO] [stderr] Downloaded time-core v0.1.3 [INFO] [stderr] Downloaded tempfile v3.19.0 [INFO] [stderr] Downloaded time v0.3.39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4edb2b6d4112d495986ae839bd84b199e76e2065c4feac4ffdc4210b7c2ef973 [INFO] running `Command { std: "docker" "start" "-a" "4edb2b6d4112d495986ae839bd84b199e76e2065c4feac4ffdc4210b7c2ef973", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4edb2b6d4112d495986ae839bd84b199e76e2065c4feac4ffdc4210b7c2ef973", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4edb2b6d4112d495986ae839bd84b199e76e2065c4feac4ffdc4210b7c2ef973", kill_on_drop: false }` [INFO] [stdout] 4edb2b6d4112d495986ae839bd84b199e76e2065c4feac4ffdc4210b7c2ef973 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d4c27d40c5ab3c88d3780934ad0ff95bccfa17d7a87db62000facf24835cba9 [INFO] running `Command { std: "docker" "start" "-a" "4d4c27d40c5ab3c88d3780934ad0ff95bccfa17d7a87db62000facf24835cba9", kill_on_drop: false }` [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling time-core v0.1.3 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling time-macros v0.2.20 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling futures-task v0.3.31 [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 native-tls v0.2.14 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling rustix v1.0.2 [INFO] [stderr] Compiling winnow v0.7.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling time v0.3.39 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling linux-raw-sys v0.9.3 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling devise v0.4.2 [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 sync_wrapper v1.0.2 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling iana-time-zone v0.1.62 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Compiling tempfile v3.19.0 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling derive_builder v0.20.2 [INFO] [stderr] Compiling toml v0.8.20 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling deadpool-runtime v0.1.4 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling deadpool v0.12.2 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling combine v4.6.7 [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 23s [INFO] running `Command { std: "docker" "inspect" "4d4c27d40c5ab3c88d3780934ad0ff95bccfa17d7a87db62000facf24835cba9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d4c27d40c5ab3c88d3780934ad0ff95bccfa17d7a87db62000facf24835cba9", kill_on_drop: false }` [INFO] [stdout] 4d4c27d40c5ab3c88d3780934ad0ff95bccfa17d7a87db62000facf24835cba9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8770be7b3c3e03e4050266c01a71878ba5dd25d412fc2e2a1653ecb59b6673a [INFO] running `Command { std: "docker" "start" "-a" "f8770be7b3c3e03e4050266c01a71878ba5dd25d412fc2e2a1653ecb59b6673a", 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.05s [INFO] running `Command { std: "docker" "inspect" "f8770be7b3c3e03e4050266c01a71878ba5dd25d412fc2e2a1653ecb59b6673a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8770be7b3c3e03e4050266c01a71878ba5dd25d412fc2e2a1653ecb59b6673a", kill_on_drop: false }` [INFO] [stdout] f8770be7b3c3e03e4050266c01a71878ba5dd25d412fc2e2a1653ecb59b6673a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5129934b4e36df198f722de9c3391ce72a572dab958ce8377b8ac82efd0123d3 [INFO] running `Command { std: "docker" "start" "-a" "5129934b4e36df198f722de9c3391ce72a572dab958ce8377b8ac82efd0123d3", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `super::embed::Embed` [INFO] [stderr] --> src/discord/interaction/mod.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use super::embed::Embed; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `embed::Embed` and `emoji::Emoji` [INFO] [stderr] --> src/discord/interaction_response/mod.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | use super::{embed::Embed, emoji::Emoji, interaction::Interaction}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `collections::HashMap` [INFO] [stderr] --> src/interaction_handler/mod.rs:4:11 [INFO] [stderr] | [INFO] [stderr] 4 | use std::{collections::HashMap, sync::Arc}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `IRStatus` [INFO] [stderr] --> src/interaction_handler/mod.rs:6:94 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::discord::{interaction::{Interaction, InteractionMetadata}, interaction_response::{IRStatus, InteractionResponse}}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `persistence::redis_storage::RedisStorage` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use persistence::redis_storage::RedisStorage; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `utils::timestamp::RegistrationTime` [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use utils::timestamp::RegistrationTime; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stderr] --> src/utils/timestamp.rs:16:45 [INFO] [stderr] | [INFO] [stderr] 16 | let naive_datetime = NaiveDateTime::from_timestamp_opt(time, 0).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `BadJson` is never constructed [INFO] [stderr] --> src/discord/interaction/mod.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 85 | pub enum Error { [INFO] [stderr] | ----- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 88 | BadJson, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variants `PatchFailed` and `PatchSuccess` are never constructed [INFO] [stderr] --> src/discord/interaction_response/mod.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub enum IRStatus { [INFO] [stderr] | -------- variants in this enum [INFO] [stderr] 19 | AppIdNotFound, [INFO] [stderr] 20 | PatchFailed, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 21 | PatchSuccess, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `IRStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: constant `EPOCH` is never used [INFO] [stderr] --> src/utils/snowflake.rs:3:7 [INFO] [stderr] | [INFO] [stderr] 3 | const EPOCH: u64 = 1_288_834_974_657; // Twitter Snowflake epoch (Nov 4, 2010) [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `MACHINE_ID_BITS` is never used [INFO] [stderr] --> src/utils/snowflake.rs:4:7 [INFO] [stderr] | [INFO] [stderr] 4 | const MACHINE_ID_BITS: u64 = 10; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `SEQUENCE_BITS` is never used [INFO] [stderr] --> src/utils/snowflake.rs:5:7 [INFO] [stderr] | [INFO] [stderr] 5 | const SEQUENCE_BITS: u64 = 12; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `MAX_SEQUENCE` is never used [INFO] [stderr] --> src/utils/snowflake.rs:7:7 [INFO] [stderr] | [INFO] [stderr] 7 | const MAX_SEQUENCE: u64 = (1 << SEQUENCE_BITS) - 1; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `TIMESTAMP_SHIFT` is never used [INFO] [stderr] --> src/utils/snowflake.rs:8:7 [INFO] [stderr] | [INFO] [stderr] 8 | const TIMESTAMP_SHIFT: u64 = MACHINE_ID_BITS + SEQUENCE_BITS; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `MACHINE_ID_SHIFT` is never used [INFO] [stderr] --> src/utils/snowflake.rs:9:7 [INFO] [stderr] | [INFO] [stderr] 9 | const MACHINE_ID_SHIFT: u64 = SEQUENCE_BITS; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SnowflakeGenerator` is never constructed [INFO] [stderr] --> src/utils/snowflake.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct SnowflakeGenerator { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `generate`, `current_timestamp`, and `get_next_milisec` are never used [INFO] [stderr] --> src/utils/snowflake.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 19 | impl SnowflakeGenerator { [INFO] [stderr] | ----------------------- associated items in this implementation [INFO] [stderr] 20 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | pub fn generate(&self) -> Snowflake { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | fn current_timestamp(&self) -> u64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | fn get_next_milisec(&self, last_timestamp: u64) -> u64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `NoFileName` is never constructed [INFO] [stderr] --> src/persistence/mod.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 7 | pub enum PersistenceError { [INFO] [stderr] | ---------------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 10 | NoFileName, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PersistenceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: trait `Persistence` is never used [INFO] [stderr] --> src/persistence/mod.rs:19:11 [INFO] [stderr] | [INFO] [stderr] 19 | pub trait Persistence { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `FileStorage` is never constructed [INFO] [stderr] --> src/persistence/file_storage.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct FileStorage<'a> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/persistence/file_storage.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl<'a> FileStorage<'a> { [INFO] [stderr] | ------------------------ associated function in this implementation [INFO] [stderr] 11 | pub fn new(file_name: &'a str) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `registration-bot` (bin "registration-bot" test) generated 21 warnings (run `cargo fix --bin "registration-bot" --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/registration_bot-b5ae86cfd5b28fb8) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5129934b4e36df198f722de9c3391ce72a572dab958ce8377b8ac82efd0123d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5129934b4e36df198f722de9c3391ce72a572dab958ce8377b8ac82efd0123d3", kill_on_drop: false }` [INFO] [stdout] 5129934b4e36df198f722de9c3391ce72a572dab958ce8377b8ac82efd0123d3