[INFO] cloning repository https://github.com/airmyxa/voter-tg-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/airmyxa/voter-tg-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fairmyxa%2Fvoter-tg-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fairmyxa%2Fvoter-tg-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e7881409319575dbf4cee824768bcab36786fa00 [INFO] checking airmyxa/voter-tg-bot against try#bac5816c5f3d02cebd0599070af62d1782530294 for pr-150408 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fairmyxa%2Fvoter-tg-bot" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/airmyxa/voter-tg-bot [INFO] finished tweaking git repo https://github.com/airmyxa/voter-tg-bot [INFO] tweaked toml for git repo https://github.com/airmyxa/voter-tg-bot written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/airmyxa/voter-tg-bot on toolchain bac5816c5f3d02cebd0599070af62d1782530294 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bac5816c5f3d02cebd0599070af62d1782530294" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/airmyxa/voter-tg-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" "+bac5816c5f3d02cebd0599070af62d1782530294" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded teloxide-macros v0.7.1 [INFO] [stderr] Downloaded dptree v0.3.0 [INFO] [stderr] Downloaded async-trait v0.1.79 [INFO] [stderr] Downloaded teloxide v0.12.2 [INFO] [stderr] Downloaded teloxide-core v0.9.1 [INFO] [stderr] Downloaded chrono v0.4.35 [INFO] [stderr] Downloaded aquamarine v0.1.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+bac5816c5f3d02cebd0599070af62d1782530294" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 68fb56d4ea878be4cfdb211cd1bdec24f3782f94a6c0fa1bf0109158f9c73e90 [INFO] running `Command { std: "docker" "start" "-a" "68fb56d4ea878be4cfdb211cd1bdec24f3782f94a6c0fa1bf0109158f9c73e90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "68fb56d4ea878be4cfdb211cd1bdec24f3782f94a6c0fa1bf0109158f9c73e90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68fb56d4ea878be4cfdb211cd1bdec24f3782f94a6c0fa1bf0109158f9c73e90", kill_on_drop: false }` [INFO] [stdout] 68fb56d4ea878be4cfdb211cd1bdec24f3782f94a6c0fa1bf0109158f9c73e90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+bac5816c5f3d02cebd0599070af62d1782530294" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8730161267db637cc72b7bccec1a1f9d2d66d75663ff8abf50a17c605d3c3b4d [INFO] running `Command { std: "docker" "start" "-a" "8730161267db637cc72b7bccec1a1f9d2d66d75663ff8abf50a17c605d3c3b4d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling erasable v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking uuid v1.8.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rc-box v1.2.0 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling async-trait v0.1.79 [INFO] [stderr] Checking takecell v0.1.1 [INFO] [stderr] Checking never v0.1.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking chrono v0.4.35 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling openssl-sys v0.9.101 [INFO] [stderr] Compiling libsqlite3-sys v0.26.0 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking pretty_env_logger v0.5.0 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling teloxide-macros v0.7.1 [INFO] [stderr] Compiling aquamarine v0.1.12 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking dptree v0.3.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking h2 v0.3.25 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking rusqlite v0.29.0 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking teloxide-core v0.9.1 [INFO] [stderr] Checking teloxide v0.12.2 [INFO] [stderr] Checking voter-tg-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `views` [INFO] [stdout] --> src/application.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{controllers, views}; [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 import: `std::ops::Deref` [INFO] [stdout] --> src/application.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `commands::command::Command`, `commands::command_dispatcher::CommandDispatcher`, and `components_container::ComponentsContainer` [INFO] [stdout] --> src/components.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | commands::command::Command, commands::command_dispatcher::CommandDispatcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | components_container::ComponentsContainer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/components_container.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::views::callback::point_story` [INFO] [stdout] --> src/controllers/callbacks/point_story.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::views::callback::point_story; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/dependencies.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/tg/requester.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::vote::VoteState` [INFO] [stdout] --> src/views/convertions.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::vote::VoteState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/components_container.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | db: Arc, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 64 + use crate::components_container::Arc; [INFO] [stdout] | [INFO] [stdout] 64 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `views` [INFO] [stdout] --> src/application.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{controllers, views}; [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 import: `std::ops::Deref` [INFO] [stdout] --> src/application.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `commands::command::Command`, `commands::command_dispatcher::CommandDispatcher`, and `components_container::ComponentsContainer` [INFO] [stdout] --> src/components.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | commands::command::Command, commands::command_dispatcher::CommandDispatcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | components_container::ComponentsContainer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/components_container.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::views::callback::point_story` [INFO] [stdout] --> src/controllers/callbacks/point_story.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::views::callback::point_story; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/dependencies.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/tg/requester.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::vote::VoteState` [INFO] [stdout] --> src/views/convertions.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::vote::VoteState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `components` [INFO] [stdout] --> src/commands/command_dispatcher.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | fn create_component(components: &mut crate::components_container::ComponentsContainer) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_components` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/commands/command_dispatcher.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let command = command.unwrap().handle(params, deps); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/components_container.rs:99:33 [INFO] [stdout] | [INFO] [stdout] 99 | container.add_component(db_component); [INFO] [stdout] | ------------- ^^^^^^^^^^^^ expected `&str`, found `DbComponent` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/components_container.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_component(&mut self, name: &'static str) [INFO] [stdout] | ^^^^^^^^^^^^^ ------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/components_container.rs:102:33 [INFO] [stdout] | [INFO] [stdout] 102 | container.add_component(requester_component); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^ expected `&str`, found `RequesterComponent` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/components_container.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_component(&mut self, name: &'static str) [INFO] [stdout] | ^^^^^^^^^^^^^ ------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/components_container.rs:110:33 [INFO] [stdout] | [INFO] [stdout] 110 | container.add_component(requester_component); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^ expected `&str`, found `RequesterComponent` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/components_container.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_component(&mut self, name: &'static str) [INFO] [stdout] | ^^^^^^^^^^^^^ ------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/components_container.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | container.add_component(db_compoenent); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ expected `&str`, found `DbComponent` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/components_container.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_component(&mut self, name: &'static str) [INFO] [stdout] | ^^^^^^^^^^^^^ ------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `components` [INFO] [stdout] --> src/commands/command_dispatcher.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | fn create_component(components: &mut crate::components_container::ComponentsContainer) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_components` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/commands/command_dispatcher.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let command = command.unwrap().handle(params, deps); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `components` [INFO] [stdout] --> src/components_container.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | fn create_component(components: &mut ComponentsContainer) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_components` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `components` [INFO] [stdout] --> src/db/sqlite/database.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | fn create_component(components: &mut ComponentsContainer) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_components` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `components` [INFO] [stdout] --> src/tg/requester.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | fn create_component(components: &mut ComponentsContainer) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_components` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `components` is never read [INFO] [stdout] --> src/application.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Application { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 11 | components: ComponentsContainer, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Command` is never used [INFO] [stdout] --> src/commands/command.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Command: Sync + Send { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CommandFactory` is never used [INFO] [stdout] --> src/commands/command.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait CommandFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommandParams` is never constructed [INFO] [stdout] --> src/commands/command_context.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CommandParams { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommandDependencies` is never constructed [INFO] [stdout] --> src/commands/command_context.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct CommandDependencies<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommandDispatcher` is never constructed [INFO] [stdout] --> src/commands/command_dispatcher.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CommandDispatcher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_command` and `dispatch` are never used [INFO] [stdout] --> src/commands/command_dispatcher.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CommandDispatcher { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 29 | pub fn add_command(&mut self, command_factory: &dyn CommandFactory) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn dispatch(&self, command_str: &str, params: CommandParams, deps: CommandDependencies) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_component` is never used [INFO] [stdout] --> src/components_container.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl ComponentsContainer { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn add_component(&mut self, name: &'static str) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SqlQueryTr` is never used [INFO] [stdout] --> src/db/sql.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait SqlQueryTr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StaticSqlQuery` is never constructed [INFO] [stdout] --> src/db/sql.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct StaticSqlQuery { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/db/sql.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl StaticSqlQuery { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 13 | fn new(name: &'static str, query: &'static str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/db/sqlite/database.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl SQLiteDb { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 76 | pub fn new(settings: SQLiteSettings) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/db/sqlite/requester.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl SQLiteRequester { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 27 | pub fn new(db: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> src/dependencies.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct DependenciesComponent { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 9 | db: Arc, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `DependenciesComponent` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeyboardRow` is never constructed [INFO] [stdout] --> src/models/keyboard.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct KeyboardRow(pub Vec); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Keyboard` is never constructed [INFO] [stdout] --> src/models/keyboard.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Keyboard { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InitText` is never constructed [INFO] [stdout] --> src/models/point_story/text.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct InitText { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Text` is never used [INFO] [stdout] --> src/models/point_story/text.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait Text: ToString {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/models/vote.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct VoteTemplate { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 7 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `chat_id`, `message_id`, and `template_id` are never read [INFO] [stdout] --> src/models/vote.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Vote { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 12 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | pub chat_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub message_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub text: String, [INFO] [stdout] 16 | pub template_id: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `vote_id` are never read [INFO] [stdout] --> src/models/vote.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct UserVote { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 20 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | pub vote_id: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `VoteStorageTr` is never used [INFO] [stdout] --> src/storage/votes_storage.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | trait VoteStorageTr { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InitVoteRequest` is never constructed [INFO] [stdout] --> src/tg/requester.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct InitVoteRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TgRequester` is never constructed [INFO] [stdout] --> src/tg/requester.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct TgRequester { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_vote` is never used [INFO] [stdout] --> src/tg/requester.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 32 | impl TgRequester { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 33 | async fn send_vote(&self, request: InitVoteRequest) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/db/sqlite/database.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get(&self) -> Result, GenericError> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get(&self) -> Result, GenericError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/db/sqlite/database.rs:87:27 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn get_connection(&self) -> Result, GenericError> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 87 | pub fn get_connection(&self) -> Result, GenericError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `components` [INFO] [stdout] --> src/db/sqlite/database.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | fn create_component(components: &mut ComponentsContainer) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_components` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `components` [INFO] [stdout] --> src/tg/requester.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | fn create_component(components: &mut ComponentsContainer) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_components` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `voter-tg-bot` (bin "voter-tg-bot" test) due to 5 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8730161267db637cc72b7bccec1a1f9d2d66d75663ff8abf50a17c605d3c3b4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8730161267db637cc72b7bccec1a1f9d2d66d75663ff8abf50a17c605d3c3b4d", kill_on_drop: false }` [INFO] [stdout] 8730161267db637cc72b7bccec1a1f9d2d66d75663ff8abf50a17c605d3c3b4d