[INFO] cloning repository https://github.com/princess-entrapta/cooking [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/princess-entrapta/cooking" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprincess-entrapta%2Fcooking", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprincess-entrapta%2Fcooking'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 731d1a1d08ce7384fa5241b8ad43549b0e8452ae [INFO] checking princess-entrapta/cooking against try#e90f1ff63e694965281f833819a486da29772bdf for pr-146167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprincess-entrapta%2Fcooking" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/princess-entrapta/cooking [INFO] finished tweaking git repo https://github.com/princess-entrapta/cooking [INFO] tweaked toml for git repo https://github.com/princess-entrapta/cooking written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/princess-entrapta/cooking on toolchain e90f1ff63e694965281f833819a486da29772bdf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/princess-entrapta/cooking 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" "+e90f1ff63e694965281f833819a486da29772bdf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b4167d5f5cb8a379c7bbdf55918d9375e12fd13c70ffa6353c1e58b84de84716 [INFO] running `Command { std: "docker" "start" "-a" "b4167d5f5cb8a379c7bbdf55918d9375e12fd13c70ffa6353c1e58b84de84716", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b4167d5f5cb8a379c7bbdf55918d9375e12fd13c70ffa6353c1e58b84de84716", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4167d5f5cb8a379c7bbdf55918d9375e12fd13c70ffa6353c1e58b84de84716", kill_on_drop: false }` [INFO] [stdout] b4167d5f5cb8a379c7bbdf55918d9375e12fd13c70ffa6353c1e58b84de84716 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71751f123967ddadc4586cdc58bdc67e44ad128d1a4223ee481d422193cd8f90 [INFO] running `Command { std: "docker" "start" "-a" "71751f123967ddadc4586cdc58bdc67e44ad128d1a4223ee481d422193cd8f90", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking bytes v1.7.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.121 [INFO] [stderr] Checking indexmap v2.3.0 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking pipeline v0.5.0 [INFO] [stderr] Checking deunicode v1.6.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking slug v0.1.5 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking markdown v0.3.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking tokio v1.39.2 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling pest v2.7.11 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling pest_meta v2.7.11 [INFO] [stderr] Compiling pest_generator v2.7.11 [INFO] [stderr] Compiling pest_derive v2.7.11 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking tracing-serde v0.1.3 [INFO] [stderr] Checking spow v0.3.0 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking handlebars v6.0.0 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking redis v0.26.1 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking cooking v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Form` [INFO] [stdout] --> src/rest.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use axum::{Form, Json}; [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: `Form` [INFO] [stdout] --> src/rest.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use axum::{Form, Json}; [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 variable: `results` [INFO] [stdout] --> src/search.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | results: Vec, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this function depends on never type fallback being `()` [INFO] [stdout] --> src/searchdb.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | async fn cache_search(&self, search_tags: &str, results: Vec) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/searchdb.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | .sadd(format!("search.{search_tags}"), results.clone()) [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: `#[deny(dependency_on_unit_never_type_fallback)]` (part of `#[deny(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 107 | .sadd::<_, _, ()>(format!("search.{search_tags}"), results.clone()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Lang` is never used [INFO] [stdout] --> src/schemas.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Lang { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Recipe` is never constructed [INFO] [stdout] --> src/schemas.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Recipe { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ingredient` is never constructed [INFO] [stdout] --> src/schemas.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Ingredient { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `translate` is never used [INFO] [stdout] --> src/schemas.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 100 | impl Trad { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 101 | pub fn translate(&self, lang: Lang) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `should_err` is never read [INFO] [stdout] --> src/search.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 160 | struct TestCache { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 163 | pub should_err: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestCache` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `results` [INFO] [stdout] --> src/search.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | results: Vec, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this function depends on never type fallback being `()` [INFO] [stdout] --> src/searchdb.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | async fn cache_search(&self, search_tags: &str, results: Vec) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/searchdb.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | .sadd(format!("search.{search_tags}"), results.clone()) [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: `#[deny(dependency_on_unit_never_type_fallback)]` (part of `#[deny(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 107 | .sadd::<_, _, ()>(format!("search.{search_tags}"), results.clone()) [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/search.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | async fn get_item_refs_for_phrase(&self, phrase: &str) -> 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] = 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] 42 ~ fn get_item_refs_for_phrase(&self, phrase: &str) -> impl std::future::Future, DbError>> + Send {async { [INFO] [stdout] 43 | let tags = self.get_db().get_tags_from_phrase(phrase).await?; [INFO] [stdout] ... [INFO] [stdout] 52 | Ok(hashset.into_iter().collect()) [INFO] [stdout] 53 ~ } } [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/search.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | async fn get_item_refs_search_query( [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] 54 ~ fn get_item_refs_search_query( [INFO] [stdout] 55 | &self, [INFO] [stdout] ... [INFO] [stdout] 58 | phrase_max: usize, [INFO] [stdout] 59 ~ ) -> impl std::future::Future, DbError>> + Send {async { [INFO] [stdout] 60 | let mut counter: HashMap = HashMap::new(); [INFO] [stdout] ... [INFO] [stdout] 115| Ok(results) [INFO] [stdout] 116~ } } [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/search.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | async fn get_items_for_search( [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] 118 ~ fn get_items_for_search( [INFO] [stdout] 119 | &self, [INFO] [stdout] ... [INFO] [stdout] 124 | page_num: usize, [INFO] [stdout] 125 ~ ) -> impl std::future::Future, usize), DbError>> + Send {async { [INFO] [stdout] 126 | let search = self.get_cache().get_cached_search(search_query).await?; [INFO] [stdout] ... [INFO] [stdout] 142 | Ok((try_join_all(futures).await?, total_result)) [INFO] [stdout] 143 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Lang` is never used [INFO] [stdout] --> src/schemas.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Lang { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Recipe` is never constructed [INFO] [stdout] --> src/schemas.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Recipe { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ingredient` is never constructed [INFO] [stdout] --> src/schemas.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Ingredient { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `translate` is never used [INFO] [stdout] --> src/schemas.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 100 | impl Trad { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 101 | pub fn translate(&self, lang: Lang) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SearchCache` is never used [INFO] [stdout] --> src/search.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait SearchCache { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SearchDb` is never used [INFO] [stdout] --> src/search.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait SearchDb { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ItemRepo` is never used [INFO] [stdout] --> src/search.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub trait ItemRepo [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cooking` (bin "cooking") due to 2 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `should_err` is never read [INFO] [stdout] --> src/search.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 160 | struct TestCache { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 163 | pub should_err: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestCache` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/search.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | async fn get_item_refs_for_phrase(&self, phrase: &str) -> 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] = 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] 42 ~ fn get_item_refs_for_phrase(&self, phrase: &str) -> impl std::future::Future, DbError>> + Send {async { [INFO] [stdout] 43 | let tags = self.get_db().get_tags_from_phrase(phrase).await?; [INFO] [stdout] ... [INFO] [stdout] 52 | Ok(hashset.into_iter().collect()) [INFO] [stdout] 53 ~ } } [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/search.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | async fn get_item_refs_search_query( [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] 54 ~ fn get_item_refs_search_query( [INFO] [stdout] 55 | &self, [INFO] [stdout] ... [INFO] [stdout] 58 | phrase_max: usize, [INFO] [stdout] 59 ~ ) -> impl std::future::Future, DbError>> + Send {async { [INFO] [stdout] 60 | let mut counter: HashMap = HashMap::new(); [INFO] [stdout] ... [INFO] [stdout] 115| Ok(results) [INFO] [stdout] 116~ } } [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/search.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | async fn get_items_for_search( [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] 118 ~ fn get_items_for_search( [INFO] [stdout] 119 | &self, [INFO] [stdout] ... [INFO] [stdout] 124 | page_num: usize, [INFO] [stdout] 125 ~ ) -> impl std::future::Future, usize), DbError>> + Send {async { [INFO] [stdout] 126 | let search = self.get_cache().get_cached_search(search_query).await?; [INFO] [stdout] ... [INFO] [stdout] 142 | Ok((try_join_all(futures).await?, total_result)) [INFO] [stdout] 143 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cooking` (bin "cooking" test) due to 2 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "71751f123967ddadc4586cdc58bdc67e44ad128d1a4223ee481d422193cd8f90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71751f123967ddadc4586cdc58bdc67e44ad128d1a4223ee481d422193cd8f90", kill_on_drop: false }` [INFO] [stdout] 71751f123967ddadc4586cdc58bdc67e44ad128d1a4223ee481d422193cd8f90