[INFO] cloning repository https://github.com/BenjaminHaaseT/question_answer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BenjaminHaaseT/question_answer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenjaminHaaseT%2Fquestion_answer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenjaminHaaseT%2Fquestion_answer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3e93ad4c3e55aa14440b679026519481ee43ac30 [INFO] checking BenjaminHaaseT/question_answer against master#ceab6128fa48a616bfd3e3adf4bc80133b8ee223 for no-never-type-fallback [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenjaminHaaseT%2Fquestion_answer" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BenjaminHaaseT/question_answer on toolchain ceab6128fa48a616bfd3e3adf4bc80133b8ee223 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BenjaminHaaseT/question_answer [INFO] finished tweaking git repo https://github.com/BenjaminHaaseT/question_answer [INFO] tweaked toml for git repo https://github.com/BenjaminHaaseT/question_answer written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/BenjaminHaaseT/question_answer 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" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded base64 v0.21.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdf7ea8eef61f78268400bdf0531b17ab715489bdc2de166c69575fd54b99301 [INFO] running `Command { std: "docker" "start" "-a" "bdf7ea8eef61f78268400bdf0531b17ab715489bdc2de166c69575fd54b99301", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdf7ea8eef61f78268400bdf0531b17ab715489bdc2de166c69575fd54b99301", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdf7ea8eef61f78268400bdf0531b17ab715489bdc2de166c69575fd54b99301", kill_on_drop: false }` [INFO] [stdout] bdf7ea8eef61f78268400bdf0531b17ab715489bdc2de166c69575fd54b99301 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d4e5cdd0d73d03cedfdbbc5fe43a1683dab1cce83b38d294459dffe179a7637 [INFO] running `Command { std: "docker" "start" "-a" "0d4e5cdd0d73d03cedfdbbc5fe43a1683dab1cce83b38d294459dffe179a7637", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling unicode-bidi v0.3.14 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling iana-time-zone v0.1.59 [INFO] [stderr] Compiling base64 v0.21.6 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling crc v3.0.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling webpki-roots v0.25.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling uuid v1.6.1 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling time v0.3.31 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling whoami v1.4.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling ring v0.17.7 [INFO] [stderr] Compiling atomic-write-file v0.1.2 [INFO] [stderr] Compiling tempfile v3.9.0 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Checking sqlformat v0.2.3 [INFO] [stderr] Checking sqlx-core v0.7.3 [INFO] [stderr] Checking sqlx-postgres v0.7.3 [INFO] [stderr] Compiling sqlx-macros-core v0.7.3 [INFO] [stderr] Compiling sqlx-macros v0.7.3 [INFO] [stderr] Checking sqlx v0.7.3 [INFO] [stderr] Checking question_answer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/models/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/ceab6128fa48a616bfd3e3adf4bc80133b8ee223/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::ser::Formatter` [INFO] [stdout] --> src/models/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::ser::Formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/persistence/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/ceab6128fa48a616bfd3e3adf4bc80133b8ee223/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/models/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/ceab6128fa48a616bfd3e3adf4bc80133b8ee223/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::ser::Formatter` [INFO] [stdout] --> src/models/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::ser::Formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/persistence/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/ceab6128fa48a616bfd3e3adf4bc80133b8ee223/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::test` [INFO] [stdout] --> src/persistence/test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::test; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::types::Uuid` [INFO] [stdout] --> src/persistence/test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::types::Uuid; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::prelude::*` [INFO] [stdout] --> src/persistence/test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::prelude::*` [INFO] [stdout] --> src/persistence/test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EntityId` [INFO] [stdout] --> src/persistence/test.rs:163:34 [INFO] [stdout] | [INFO] [stdout] 163 | use crate::models::{DbError, EntityId, NewAnswer, NewQuestion}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/persistence/test.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | let Err(DbError::Creation(e)) = question_res else {panic!("result should be a creation error")}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/persistence/test.rs:68:38 [INFO] [stdout] | [INFO] [stdout] 68 | let Err(DbError::InvalidUuid(s)) = get_res else {panic!("Error should be a `InvalidUuid`")}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/persistence/test.rs:118:35 [INFO] [stdout] | [INFO] [stdout] 118 | let Err(DbError::NotFound(e)) = del_res else {panic!("error should be `Deletion`")}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/persistence/test.rs:144:35 [INFO] [stdout] | [INFO] [stdout] 144 | let Err(DbError::NotFound(e)) = inc_res else { panic!("Error should be `NotFound` variant") }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/persistence/test.rs:177:38 [INFO] [stdout] | [INFO] [stdout] 177 | let Err(DbError::InvalidUuid(s)) = res else { panic!("Error should be `InvalidUuid` variant") }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/persistence/test.rs:188:33 [INFO] [stdout] | [INFO] [stdout] 188 | let Err(DbError::Access(e)) = res else { panic!("Error should be `Creation` variant") }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/persistence/test.rs:198:35 [INFO] [stdout] | [INFO] [stdout] 198 | let Err(DbError::NotFound(e)) = res else { panic!("Error should be `NotFound` variant.")}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `title`, `question`, `likes`, and `created_at` are never read [INFO] [stdout] --> src/models/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct QuestionBuilder { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 63 | id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 64 | title: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 65 | question: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 66 | likes: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 67 | created_at: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/persistence/mod.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 139 | impl QuestionDaoImpl { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 140 | fn new(pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/persistence/mod.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 231 | impl AnswerDaoImpl { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 232 | fn new(pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | async fn create_question(&self, new_question: NewQuestion) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 30 - async fn create_question(&self, new_question: NewQuestion) -> Result; [INFO] [stdout] 30 + fn create_question(&self, new_question: NewQuestion) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | async fn get_question(&self, question_id: EntityId) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 40 - async fn get_question(&self, question_id: EntityId) -> Result; [INFO] [stdout] 40 + fn get_question(&self, question_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | async fn get_questions(&self, ) -> Result, DbError>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 47 - async fn get_questions(&self, ) -> Result, DbError>; [INFO] [stdout] 47 + fn get_questions(&self, ) -> impl std::future::Future, DbError>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | async fn delete_question(&self, question_id: EntityId) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 58 - async fn delete_question(&self, question_id: EntityId) -> Result; [INFO] [stdout] 58 + fn delete_question(&self, question_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | async fn increment_question_likes(&self, question_id: EntityId) -> Result<(), DbError>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 69 - async fn increment_question_likes(&self, question_id: EntityId) -> Result<(), DbError>; [INFO] [stdout] 69 + fn increment_question_likes(&self, question_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | async fn create_answer(&self, new_answer: NewAnswer) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 83 - async fn create_answer(&self, new_answer: NewAnswer) -> Result; [INFO] [stdout] 83 + fn create_answer(&self, new_answer: NewAnswer) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | async fn get_answer(&self, answer_id: EntityId) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 93 - async fn get_answer(&self, answer_id: EntityId) -> Result; [INFO] [stdout] 93 + fn get_answer(&self, answer_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | async fn get_answers(&self, question_id: EntityId) -> Result, DbError>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 103 - async fn get_answers(&self, question_id: EntityId) -> Result, DbError>; [INFO] [stdout] 103 + fn get_answers(&self, question_id: EntityId) -> impl std::future::Future, DbError>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | async fn get_all_answers(&self) -> Result, DbError>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 110 - async fn get_all_answers(&self) -> Result, DbError>; [INFO] [stdout] 110 + fn get_all_answers(&self) -> impl std::future::Future, DbError>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | async fn delete_answer(&self, answer_id: EntityId) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 121 - async fn delete_answer(&self, answer_id: EntityId) -> Result; [INFO] [stdout] 121 + fn delete_answer(&self, answer_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | async fn increment_answer_likes(&self, answer_id: EntityId) -> Result<(), DbError>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 132 - async fn increment_answer_likes(&self, answer_id: EntityId) -> Result<(), DbError>; [INFO] [stdout] 132 + fn increment_answer_likes(&self, answer_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `title`, `question`, `likes`, and `created_at` are never read [INFO] [stdout] --> src/models/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct QuestionBuilder { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 63 | id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 64 | title: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 65 | question: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 66 | likes: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 67 | created_at: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | async fn create_question(&self, new_question: NewQuestion) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 30 - async fn create_question(&self, new_question: NewQuestion) -> Result; [INFO] [stdout] 30 + fn create_question(&self, new_question: NewQuestion) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | async fn get_question(&self, question_id: EntityId) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 40 - async fn get_question(&self, question_id: EntityId) -> Result; [INFO] [stdout] 40 + fn get_question(&self, question_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | async fn get_questions(&self, ) -> Result, DbError>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 47 - async fn get_questions(&self, ) -> Result, DbError>; [INFO] [stdout] 47 + fn get_questions(&self, ) -> impl std::future::Future, DbError>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | async fn delete_question(&self, question_id: EntityId) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 58 - async fn delete_question(&self, question_id: EntityId) -> Result; [INFO] [stdout] 58 + fn delete_question(&self, question_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | async fn increment_question_likes(&self, question_id: EntityId) -> Result<(), DbError>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 69 - async fn increment_question_likes(&self, question_id: EntityId) -> Result<(), DbError>; [INFO] [stdout] 69 + fn increment_question_likes(&self, question_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | async fn create_answer(&self, new_answer: NewAnswer) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 83 - async fn create_answer(&self, new_answer: NewAnswer) -> Result; [INFO] [stdout] 83 + fn create_answer(&self, new_answer: NewAnswer) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | async fn get_answer(&self, answer_id: EntityId) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 93 - async fn get_answer(&self, answer_id: EntityId) -> Result; [INFO] [stdout] 93 + fn get_answer(&self, answer_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | async fn get_answers(&self, question_id: EntityId) -> Result, DbError>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 103 - async fn get_answers(&self, question_id: EntityId) -> Result, DbError>; [INFO] [stdout] 103 + fn get_answers(&self, question_id: EntityId) -> impl std::future::Future, DbError>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | async fn get_all_answers(&self) -> Result, DbError>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 110 - async fn get_all_answers(&self) -> Result, DbError>; [INFO] [stdout] 110 + fn get_all_answers(&self) -> impl std::future::Future, DbError>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | async fn delete_answer(&self, answer_id: EntityId) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 121 - async fn delete_answer(&self, answer_id: EntityId) -> Result; [INFO] [stdout] 121 + fn delete_answer(&self, answer_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/persistence/mod.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | async fn increment_answer_likes(&self, answer_id: EntityId) -> Result<(), DbError>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 132 - async fn increment_answer_likes(&self, answer_id: EntityId) -> Result<(), DbError>; [INFO] [stdout] 132 + fn increment_answer_likes(&self, answer_id: EntityId) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.15s [INFO] running `Command { std: "docker" "inspect" "0d4e5cdd0d73d03cedfdbbc5fe43a1683dab1cce83b38d294459dffe179a7637", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d4e5cdd0d73d03cedfdbbc5fe43a1683dab1cce83b38d294459dffe179a7637", kill_on_drop: false }` [INFO] [stdout] 0d4e5cdd0d73d03cedfdbbc5fe43a1683dab1cce83b38d294459dffe179a7637