[INFO] fetching crate inferlet 0.1.0... [INFO] checking inferlet-0.1.0 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate inferlet 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate inferlet 0.1.0 [INFO] finished tweaking crates.io crate inferlet 0.1.0 [INFO] tweaked toml for crates.io crate inferlet 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate inferlet 0.1.0 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate inferlet 0.1.0 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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: version requirement `0.14.2+wasi-0.2.4` for dependency `wasi` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wit-bindgen-rust-macro v0.43.0 [INFO] [stderr] Downloaded wit-bindgen-core v0.43.0 [INFO] [stderr] Downloaded inferlet-macros v0.1.0 [INFO] [stderr] Downloaded wit-bindgen-rt v0.43.0 [INFO] [stderr] Downloaded wit-bindgen-rust v0.43.0 [INFO] [stderr] Downloaded wstd-macro v0.5.3 [INFO] [stderr] Downloaded wit-bindgen v0.43.0 [INFO] [stderr] Downloaded wstd v0.5.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12292548e45feeab0c69d331afa56ac6d0393d5063e9c9e1a1fd372cc9b480fe [INFO] running `Command { std: "docker" "start" "-a" "12292548e45feeab0c69d331afa56ac6d0393d5063e9c9e1a1fd372cc9b480fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12292548e45feeab0c69d331afa56ac6d0393d5063e9c9e1a1fd372cc9b480fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12292548e45feeab0c69d331afa56ac6d0393d5063e9c9e1a1fd372cc9b480fe", kill_on_drop: false }` [INFO] [stdout] 12292548e45feeab0c69d331afa56ac6d0393d5063e9c9e1a1fd372cc9b480fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01721fd09fa9f88b059793a9da6d0442bbaca0599646c5f05962f8fbdac51bfa [INFO] running `Command { std: "docker" "start" "-a" "01721fd09fa9f88b059793a9da6d0442bbaca0599646c5f05962f8fbdac51bfa", kill_on_drop: false }` [INFO] [stderr] warning: version requirement `0.14.2+wasi-0.2.4` for dependency `wasi` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling wasmparser v0.235.0 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling prettyplease v0.2.35 [INFO] [stderr] Compiling wasm-encoder v0.235.0 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling leb128fmt v0.1.0 [INFO] [stderr] Compiling id-arena v2.2.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling wit-bindgen-rt v0.39.0 [INFO] [stderr] Compiling wit-bindgen-rust v0.43.0 [INFO] [stderr] Compiling wit-bindgen-rust-macro v0.43.0 [INFO] [stderr] Compiling wit-bindgen-rt v0.43.0 [INFO] [stderr] Checking serde_json v1.0.141 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling wstd-macro v0.5.3 [INFO] [stderr] Compiling trait-variant v0.1.2 [INFO] [stderr] Compiling inferlet-macros v0.1.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking wasi v0.14.2+wasi-0.2.4 [INFO] [stderr] Checking wstd v0.5.3 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling wit-parser v0.235.0 [INFO] [stderr] Compiling wasm-metadata v0.235.0 [INFO] [stderr] Compiling wit-component v0.235.0 [INFO] [stderr] Compiling wit-bindgen-core v0.43.0 [INFO] [stderr] Checking wit-bindgen v0.43.0 [INFO] [stderr] Checking inferlet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `forward_text` [INFO] [stdout] --> src/lib.rs:62:30 [INFO] [stdout] | [INFO] [stdout] 62 | allocate, core, forward, forward_text, input_image, input_text, output_text, tokenize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `forward_text` [INFO] [stdout] --> src/lib.rs:62:30 [INFO] [stdout] | [INFO] [stdout] 62 | allocate, core, forward, forward_text, input_image, input_text, output_text, tokenize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/context.rs:624:19 [INFO] [stdout] | [INFO] [stdout] 624 | for ((mut beam, generated, score), next_dist) in beams.into_iter().zip(next_dists) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/context.rs:624:19 [INFO] [stdout] | [INFO] [stdout] 624 | for ((mut beam, generated, score), next_dist) in beams.into_iter().zip(next_dists) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/traits/allocate.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 142 | panic!("Embeds cannot be imported"); [INFO] [stdout] | ----------------------------------- any code following this expression is unreachable [INFO] [stdout] 143 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/traits/allocate.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 142 | panic!("Embeds cannot be imported"); [INFO] [stdout] | ----------------------------------- any code following this expression is unreachable [INFO] [stdout] 143 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `queue` [INFO] [stdout] --> src/traits/allocate.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | queue: &core::Queue, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_queue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ids` [INFO] [stdout] --> src/traits/allocate.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | ids: &[u32], [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ids` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/traits/allocate.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `queue` [INFO] [stdout] --> src/traits/allocate.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | queue: &core::Queue, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_queue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ids` [INFO] [stdout] --> src/traits/allocate.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | ids: &[u32], [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ids` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/traits/allocate.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CapacityTooSmall` is never constructed [INFO] [stdout] --> src/pool.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ResourcePoolError { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] 8 | /// The new capacity is smaller than the number of already allocated IDs. [INFO] [stdout] 9 | CapacityTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourcePoolError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_capacity`, `acquire`, and `release` are never used [INFO] [stdout] --> src/pool.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 53 | / impl ResourcePool [INFO] [stdout] 54 | | where [INFO] [stdout] 55 | | T: Allocator, [INFO] [stdout] | |_________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn set_capacity(&mut self, capacity: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn acquire(&mut self, queue: &core::Queue) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn release(&mut self, queue: &core::Queue, id: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_capacity`, `acquire`, and `release` are never used [INFO] [stdout] --> src/pool.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 270 | / impl RcResourcePool [INFO] [stdout] 271 | | where [INFO] [stdout] 272 | | T: Allocator, [INFO] [stdout] | |_________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn set_capacity(&mut self, capacity: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | pub fn acquire(&mut self, queue: &core::Queue) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn release(&mut self, queue: &core::Queue, id: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `causal_mask` is never used [INFO] [stdout] --> src/traits/forward_text.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn causal_mask(num_total_tokens: u32, num_input_tokens: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/brle.rs:348:22 [INFO] [stdout] | [INFO] [stdout] 348 | pub fn iter_runs(&self) -> RunIterator { [INFO] [stdout] | ^^^^^ ----------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 348 | pub fn iter_runs(&self) -> RunIterator<'_> { [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/traits/forward_text.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | async fn forward_text( [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] 17 ~ fn forward_text( [INFO] [stdout] 18 | &self, [INFO] [stdout] ... [INFO] [stdout] 24 | output_indices: &[u32], [INFO] [stdout] 25 ~ ) -> 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/traits/output_text.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | async fn get_next_token_distribution(&self, embed_ids: &[u32]) -> Vec; [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] 25 - async fn get_next_token_distribution(&self, embed_ids: &[u32]) -> Vec; [INFO] [stdout] 25 + fn get_next_token_distribution(&self, embed_ids: &[u32]) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CapacityTooSmall` is never constructed [INFO] [stdout] --> src/pool.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ResourcePoolError { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] 8 | /// The new capacity is smaller than the number of already allocated IDs. [INFO] [stdout] 9 | CapacityTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourcePoolError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_capacity`, `acquire`, and `release` are never used [INFO] [stdout] --> src/pool.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 53 | / impl ResourcePool [INFO] [stdout] 54 | | where [INFO] [stdout] 55 | | T: Allocator, [INFO] [stdout] | |_________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn set_capacity(&mut self, capacity: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn acquire(&mut self, queue: &core::Queue) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn release(&mut self, queue: &core::Queue, id: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_capacity`, `acquire`, and `release` are never used [INFO] [stdout] --> src/pool.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 270 | / impl RcResourcePool [INFO] [stdout] 271 | | where [INFO] [stdout] 272 | | T: Allocator, [INFO] [stdout] | |_________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn set_capacity(&mut self, capacity: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | pub fn acquire(&mut self, queue: &core::Queue) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn release(&mut self, queue: &core::Queue, id: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `causal_mask` is never used [INFO] [stdout] --> src/traits/forward_text.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn causal_mask(num_total_tokens: u32, num_input_tokens: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/brle.rs:348:22 [INFO] [stdout] | [INFO] [stdout] 348 | pub fn iter_runs(&self) -> RunIterator { [INFO] [stdout] | ^^^^^ ----------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 348 | pub fn iter_runs(&self) -> RunIterator<'_> { [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/traits/forward_text.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | async fn forward_text( [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] 17 ~ fn forward_text( [INFO] [stdout] 18 | &self, [INFO] [stdout] ... [INFO] [stdout] 24 | output_indices: &[u32], [INFO] [stdout] 25 ~ ) -> 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/traits/output_text.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | async fn get_next_token_distribution(&self, embed_ids: &[u32]) -> Vec; [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] 25 - async fn get_next_token_distribution(&self, embed_ids: &[u32]) -> Vec; [INFO] [stdout] 25 + fn get_next_token_distribution(&self, embed_ids: &[u32]) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.44s [INFO] running `Command { std: "docker" "inspect" "01721fd09fa9f88b059793a9da6d0442bbaca0599646c5f05962f8fbdac51bfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01721fd09fa9f88b059793a9da6d0442bbaca0599646c5f05962f8fbdac51bfa", kill_on_drop: false }` [INFO] [stdout] 01721fd09fa9f88b059793a9da6d0442bbaca0599646c5f05962f8fbdac51bfa