[INFO] cloning repository https://github.com/K4RU3/ShiritoriV3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/K4RU3/ShiritoriV3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FK4RU3%2FShiritoriV3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FK4RU3%2FShiritoriV3'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 260660679a121edcd7cfbb3d2a4c7a12868d7cfd [INFO] testing K4RU3/ShiritoriV3 against try#a7ee93192a766fb0dafa23def7154fc03cfcfc3e for pr-146989 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FK4RU3%2FShiritoriV3" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/K4RU3/ShiritoriV3 [INFO] finished tweaking git repo https://github.com/K4RU3/ShiritoriV3 [INFO] tweaked toml for git repo https://github.com/K4RU3/ShiritoriV3 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/K4RU3/ShiritoriV3 on toolchain a7ee93192a766fb0dafa23def7154fc03cfcfc3e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/K4RU3/ShiritoriV3 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" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 242a8f8b1380321f12947dfff0cd440ff1748a82e3a28e8e3b72600937d82855 [INFO] running `Command { std: "docker" "start" "-a" "242a8f8b1380321f12947dfff0cd440ff1748a82e3a28e8e3b72600937d82855", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "242a8f8b1380321f12947dfff0cd440ff1748a82e3a28e8e3b72600937d82855", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "242a8f8b1380321f12947dfff0cd440ff1748a82e3a28e8e3b72600937d82855", kill_on_drop: false }` [INFO] [stdout] 242a8f8b1380321f12947dfff0cd440ff1748a82e3a28e8e3b72600937d82855 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35e92a021dce8d8aca2ece02fe8ffcaa4c579dfc985c3d14a00afbfe38facc64 [INFO] running `Command { std: "docker" "start" "-a" "35e92a021dce8d8aca2ece02fe8ffcaa4c579dfc985c3d14a00afbfe38facc64", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling serenity v0.12.4 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling cc v1.2.36 [INFO] [stderr] Compiling uwl v0.6.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling levenshtein v1.0.5 [INFO] [stderr] Compiling typemap_rev v0.3.0 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling webpki-roots v1.0.3 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling libsqlite3-sys v0.35.0 [INFO] [stderr] Compiling command_attr v0.5.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling secrecy v0.8.0 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling serde_cow v0.1.2 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-rustls v0.25.0 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling rusqlite v0.37.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling Shiritori v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rusqlite::ffi` [INFO] [stdout] --> src/macros/error.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use rusqlite::ffi; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/repository.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | let count = db_to_repo!(result, {})?; [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::ffi` [INFO] [stdout] --> src/macros/error.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use rusqlite::ffi; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/repository.rs:179:20 [INFO] [stdout] | [INFO] [stdout] 179 | let list = db_to_repo!(result, {})?; [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::ffi` [INFO] [stdout] --> src/macros/error.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use rusqlite::ffi; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/repository.rs:215:42 [INFO] [stdout] | [INFO] [stdout] 215 | Err(TxError::Database(e)) => db_to_repo!(Err(e), {}), [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::ffi` [INFO] [stdout] --> src/macros/error.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use rusqlite::ffi; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/repository.rs:243:38 [INFO] [stdout] | [INFO] [stdout] 243 | Err(e) => return Err(db_to_repo!(Err(e), {})?) [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `database::db::DataBase::query_map`: query_map is deprecated, please use QueryExecutor::query instead [INFO] [stdout] --> src/database/repository.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | .query_map("SELECT id FROM rooms", [], |row| { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 25 | / loop { [INFO] [stdout] 26 | | [INFO] [stdout] 27 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 28 | [INFO] [stdout] 29 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clear_result` [INFO] [stdout] --> src/database/repository.rs:367:17 [INFO] [stdout] | [INFO] [stdout] 367 | let clear_result = tx.execute( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clear_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `update_result` [INFO] [stdout] --> src/database/repository.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | let update_result = tx.execute( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_update_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/database/repository.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | let result = self.db.exclusive_transaction(move |tx| -> Result<(), RepoError> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let config = match BotConfig::from_env() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_shutdown` is never used [INFO] [stdout] --> src/main.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn safe_shutdown() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `shutdown` are never used [INFO] [stdout] --> src/bot/shiritori_bot.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl Bot { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 15 | pub async fn new(config: BotConfig) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn shutdown(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query` is never used [INFO] [stdout] --> src/database/db.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait QueryExecutor { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 23 | async fn execute(&self, sql: &str, params: impl Send + Params + 'static) -> Result; [INFO] [stdout] 24 | async fn query(&self, sql: &str, params: P, f: F) -> Result> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transaction` is never used [INFO] [stdout] --> src/database/db.rs:275:18 [INFO] [stdout] | [INFO] [stdout] 273 | impl DataBase { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 274 | /// トランザクションを開始します。 [INFO] [stdout] 275 | pub async fn transaction(&self, mut f: F) -> Result [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryTransaction` is never constructed [INFO] [stdout] --> src/database/db.rs:301:12 [INFO] [stdout] | [INFO] [stdout] 301 | pub struct QueryTransaction<'conn> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `rollback`, and `commit` are never used [INFO] [stdout] --> src/database/db.rs:306:12 [INFO] [stdout] | [INFO] [stdout] 305 | impl<'conn> QueryTransaction<'conn> { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 306 | pub fn new(tx: rusqlite::Transaction<'conn>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub fn rollback(self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn commit(self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_room_not_found` is never used [INFO] [stdout] --> src/macros/test.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn assert_room_not_found(result: Result) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 53s [INFO] running `Command { std: "docker" "inspect" "35e92a021dce8d8aca2ece02fe8ffcaa4c579dfc985c3d14a00afbfe38facc64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35e92a021dce8d8aca2ece02fe8ffcaa4c579dfc985c3d14a00afbfe38facc64", kill_on_drop: false }` [INFO] [stdout] 35e92a021dce8d8aca2ece02fe8ffcaa4c579dfc985c3d14a00afbfe38facc64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc97fe7ed25d1beb5a0a4f9418d475cd98d3a3d0ab54b264381468e6880e0afb [INFO] running `Command { std: "docker" "start" "-a" "dc97fe7ed25d1beb5a0a4f9418d475cd98d3a3d0ab54b264381468e6880e0afb", kill_on_drop: false }` [INFO] [stderr] Compiling Shiritori v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rusqlite::ffi` [INFO] [stdout] --> src/macros/error.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use rusqlite::ffi; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/repository.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | let count = db_to_repo!(result, {})?; [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::ffi` [INFO] [stdout] --> src/macros/error.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use rusqlite::ffi; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/repository.rs:179:20 [INFO] [stdout] | [INFO] [stdout] 179 | let list = db_to_repo!(result, {})?; [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::ffi` [INFO] [stdout] --> src/macros/error.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use rusqlite::ffi; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/repository.rs:215:42 [INFO] [stdout] | [INFO] [stdout] 215 | Err(TxError::Database(e)) => db_to_repo!(Err(e), {}), [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::ffi` [INFO] [stdout] --> src/macros/error.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use rusqlite::ffi; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/repository.rs:243:38 [INFO] [stdout] | [INFO] [stdout] 243 | Err(e) => return Err(db_to_repo!(Err(e), {})?) [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/database/repository.rs:525:19 [INFO] [stdout] | [INFO] [stdout] 525 | use std::{fs, result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `database::db::DataBase::query_map`: query_map is deprecated, please use QueryExecutor::query instead [INFO] [stdout] --> src/database/repository.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | .query_map("SELECT id FROM rooms", [], |row| { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 25 | / loop { [INFO] [stdout] 26 | | [INFO] [stdout] 27 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 28 | [INFO] [stdout] 29 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clear_result` [INFO] [stdout] --> src/database/repository.rs:367:17 [INFO] [stdout] | [INFO] [stdout] 367 | let clear_result = tx.execute( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clear_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `update_result` [INFO] [stdout] --> src/database/repository.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | let update_result = tx.execute( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_update_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/database/repository.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | let result = self.db.exclusive_transaction(move |tx| -> Result<(), RepoError> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let config = match BotConfig::from_env() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_shutdown` is never used [INFO] [stdout] --> src/main.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn safe_shutdown() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `shutdown` are never used [INFO] [stdout] --> src/bot/shiritori_bot.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl Bot { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 15 | pub async fn new(config: BotConfig) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn shutdown(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query` is never used [INFO] [stdout] --> src/database/db.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait QueryExecutor { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 23 | async fn execute(&self, sql: &str, params: impl Send + Params + 'static) -> Result; [INFO] [stdout] 24 | async fn query(&self, sql: &str, params: P, f: F) -> Result> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transaction` is never used [INFO] [stdout] --> src/database/db.rs:275:18 [INFO] [stdout] | [INFO] [stdout] 273 | impl DataBase { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 274 | /// トランザクションを開始します。 [INFO] [stdout] 275 | pub async fn transaction(&self, mut f: F) -> Result [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryTransaction` is never constructed [INFO] [stdout] --> src/database/db.rs:301:12 [INFO] [stdout] | [INFO] [stdout] 301 | pub struct QueryTransaction<'conn> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `rollback`, and `commit` are never used [INFO] [stdout] --> src/database/db.rs:306:12 [INFO] [stdout] | [INFO] [stdout] 305 | impl<'conn> QueryTransaction<'conn> { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 306 | pub fn new(tx: rusqlite::Transaction<'conn>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub fn rollback(self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn commit(self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_room_not_found` is never used [INFO] [stdout] --> src/macros/test.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn assert_room_not_found(result: Result) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.12s [INFO] running `Command { std: "docker" "inspect" "dc97fe7ed25d1beb5a0a4f9418d475cd98d3a3d0ab54b264381468e6880e0afb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc97fe7ed25d1beb5a0a4f9418d475cd98d3a3d0ab54b264381468e6880e0afb", kill_on_drop: false }` [INFO] [stdout] dc97fe7ed25d1beb5a0a4f9418d475cd98d3a3d0ab54b264381468e6880e0afb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4a56b482f02a1e8532c5551354fe83fa273f16fea192540f9a76e0baa87ca84b [INFO] running `Command { std: "docker" "start" "-a" "4a56b482f02a1e8532c5551354fe83fa273f16fea192540f9a76e0baa87ca84b", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `rusqlite::ffi` [INFO] [stderr] --> src/macros/error.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | use rusqlite::ffi; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/database/repository.rs:124:21 [INFO] [stderr] | [INFO] [stderr] 124 | let count = db_to_repo!(result, {})?; [INFO] [stderr] | ----------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `rusqlite::ffi` [INFO] [stderr] --> src/macros/error.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | use rusqlite::ffi; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/database/repository.rs:179:20 [INFO] [stderr] | [INFO] [stderr] 179 | let list = db_to_repo!(result, {})?; [INFO] [stderr] | ----------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `rusqlite::ffi` [INFO] [stderr] --> src/macros/error.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | use rusqlite::ffi; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/database/repository.rs:215:42 [INFO] [stderr] | [INFO] [stderr] 215 | Err(TxError::Database(e)) => db_to_repo!(Err(e), {}), [INFO] [stderr] | ----------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `rusqlite::ffi` [INFO] [stderr] --> src/macros/error.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | use rusqlite::ffi; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/database/repository.rs:243:38 [INFO] [stderr] | [INFO] [stderr] 243 | Err(e) => return Err(db_to_repo!(Err(e), {})?) [INFO] [stderr] | ----------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `db_to_repo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `result` [INFO] [stderr] --> src/database/repository.rs:525:19 [INFO] [stderr] | [INFO] [stderr] 525 | use std::{fs, result}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `database::db::DataBase::query_map`: query_map is deprecated, please use QueryExecutor::query instead [INFO] [stderr] --> src/database/repository.rs:173:14 [INFO] [stderr] | [INFO] [stderr] 173 | .query_map("SELECT id FROM rooms", [], |row| { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/main.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 25 | / loop { [INFO] [stderr] 26 | | [INFO] [stderr] 27 | | } [INFO] [stderr] | |_____- any code following this expression is unreachable [INFO] [stderr] 28 | [INFO] [stderr] 29 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `clear_result` [INFO] [stderr] --> src/database/repository.rs:367:17 [INFO] [stderr] | [INFO] [stderr] 367 | let clear_result = tx.execute( [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clear_result` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `update_result` [INFO] [stderr] --> src/database/repository.rs:382:21 [INFO] [stderr] | [INFO] [stderr] 382 | let update_result = tx.execute( [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_update_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/database/repository.rs:347:13 [INFO] [stderr] | [INFO] [stderr] 347 | let result = self.db.exclusive_transaction(move |tx| -> Result<(), RepoError> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/main.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | let config = match BotConfig::from_env() { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: function `safe_shutdown` is never used [INFO] [stderr] --> src/main.rs:32:4 [INFO] [stderr] | [INFO] [stderr] 32 | fn safe_shutdown() { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `shutdown` are never used [INFO] [stderr] --> src/bot/shiritori_bot.rs:15:18 [INFO] [stderr] | [INFO] [stderr] 14 | impl Bot { [INFO] [stderr] | -------- associated items in this implementation [INFO] [stderr] 15 | pub async fn new(config: BotConfig) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 43 | fn shutdown(&self) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `query` is never used [INFO] [stderr] --> src/database/db.rs:24:14 [INFO] [stderr] | [INFO] [stderr] 22 | pub trait QueryExecutor { [INFO] [stderr] | ------------- method in this trait [INFO] [stderr] 23 | async fn execute(&self, sql: &str, params: impl Send + Params + 'static) -> Result; [INFO] [stderr] 24 | async fn query(&self, sql: &str, params: P, f: F) -> Result> [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `transaction` is never used [INFO] [stderr] --> src/database/db.rs:275:18 [INFO] [stderr] | [INFO] [stderr] 273 | impl DataBase { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] 274 | /// トランザクションを開始します。 [INFO] [stderr] 275 | pub async fn transaction(&self, mut f: F) -> Result [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `QueryTransaction` is never constructed [INFO] [stderr] --> src/database/db.rs:301:12 [INFO] [stderr] | [INFO] [stderr] 301 | pub struct QueryTransaction<'conn> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `rollback`, and `commit` are never used [INFO] [stderr] --> src/database/db.rs:306:12 [INFO] [stderr] | [INFO] [stderr] 305 | impl<'conn> QueryTransaction<'conn> { [INFO] [stderr] | ----------------------------------- associated items in this implementation [INFO] [stderr] 306 | pub fn new(tx: rusqlite::Transaction<'conn>) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 310 | pub fn rollback(self) -> rusqlite::Result<()> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 314 | pub fn commit(self) -> rusqlite::Result<()> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `assert_room_not_found` is never used [INFO] [stderr] --> src/macros/test.rs:55:8 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn assert_room_not_found(result: Result) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `Shiritori` (bin "Shiritori" test) generated 18 warnings (run `cargo fix --bin "Shiritori" -p Shiritori --tests` to apply 9 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/Shiritori-919240065f836d21) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test database::repository::tests::test_initial_repository ... ok [INFO] [stdout] test database::repository::tests::test_insert_word ... ok [INFO] [stdout] test database::repository::tests::test_create_room ... ok [INFO] [stdout] test database::repository::tests::test_get_rooms ... ok [INFO] [stdout] test database::repository::tests::test_get_words ... ok [INFO] [stdout] test database::repository::tests::test_vote ... ok [INFO] [stdout] test database::repository::tests::test_delete_room ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4a56b482f02a1e8532c5551354fe83fa273f16fea192540f9a76e0baa87ca84b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a56b482f02a1e8532c5551354fe83fa273f16fea192540f9a76e0baa87ca84b", kill_on_drop: false }` [INFO] [stdout] 4a56b482f02a1e8532c5551354fe83fa273f16fea192540f9a76e0baa87ca84b