[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#6cbf54b1453b438241487f195740266bb9d8c8ba for pr-139587-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprincess-entrapta%2Fcooking" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/princess-entrapta/cooking on toolchain 6cbf54b1453b438241487f195740266bb9d8c8ba [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6cbf54b1453b438241487f195740266bb9d8c8ba" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc2/source/Cargo.toml [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" "+6cbf54b1453b438241487f195740266bb9d8c8ba" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6cbf54b1453b438241487f195740266bb9d8c8ba" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 496762ef53c75c82f25a4694ea43a4bab8ab43431ca5f31e6640aeffa34f5f65 [INFO] running `Command { std: "docker" "start" "-a" "496762ef53c75c82f25a4694ea43a4bab8ab43431ca5f31e6640aeffa34f5f65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "496762ef53c75c82f25a4694ea43a4bab8ab43431ca5f31e6640aeffa34f5f65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "496762ef53c75c82f25a4694ea43a4bab8ab43431ca5f31e6640aeffa34f5f65", kill_on_drop: false }` [INFO] [stdout] 496762ef53c75c82f25a4694ea43a4bab8ab43431ca5f31e6640aeffa34f5f65 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6cbf54b1453b438241487f195740266bb9d8c8ba" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a26a4a19ff399a43e066d93db47f81380ab58beb1c9fe575fb5055c5127434b1 [INFO] running `Command { std: "docker" "start" "-a" "a26a4a19ff399a43e066d93db47f81380ab58beb1c9fe575fb5055c5127434b1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking bytes v1.7.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling serde_json v1.0.121 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Checking indexmap v2.3.0 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking pipeline v0.5.0 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking deunicode v1.6.0 [INFO] [stderr] Checking idna v0.5.0 [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 num-integer v0.1.46 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.8 [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 tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Checking tokio v1.39.2 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling pest v2.7.11 [INFO] [stderr] Compiling pest_meta v2.7.11 [INFO] [stderr] Compiling pest_generator v2.7.11 [INFO] [stderr] Checking tokio-util v0.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 tower v0.4.13 [INFO] [stderr] Checking multer v3.1.0 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking tracing-serde v0.1.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking spow v0.3.0 [INFO] [stderr] Checking handlebars v6.0.0 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [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)]` 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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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: `#[warn(dependency_on_unit_never_type_fallback)]` 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: 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: `#[warn(dependency_on_unit_never_type_fallback)]` 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: 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] = note: `#[warn(dead_code)]` on by default [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] [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] = note: `#[warn(dead_code)]` on by default [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: 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: 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)]` 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] Finished `dev` profile [unoptimized + debuginfo] target(s) in 49.76s [INFO] running `Command { std: "docker" "inspect" "a26a4a19ff399a43e066d93db47f81380ab58beb1c9fe575fb5055c5127434b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a26a4a19ff399a43e066d93db47f81380ab58beb1c9fe575fb5055c5127434b1", kill_on_drop: false }` [INFO] [stdout] a26a4a19ff399a43e066d93db47f81380ab58beb1c9fe575fb5055c5127434b1